From e52644252dd53741bbce43f6781a29359d315619 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 16 Oct 2002 17:15:29 +0000 Subject: [PATCH] Reduce the number of NBUFS slightly for small machines, so that you can load 2 OSTs into a 64MB UML. The upper limit is exactly the same as before. --- lustre/include/linux/lustre_net.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lustre/include/linux/lustre_net.h b/lustre/include/linux/lustre_net.h index 41e1b16..b6098e2 100644 --- a/lustre/include/linux/lustre_net.h +++ b/lustre/include/linux/lustre_net.h @@ -56,18 +56,10 @@ #define MDS_BUFSIZE (64 * 1024) #define MDS_MAXREQSIZE 1024 -//#ifdef __arch_um__ -#if 0 -#define OST_NEVENTS 1024 -#define OST_NBUFS 10 -#define OST_BUFSIZE (64 * 1024) -#define OST_MAXREQSIZE (8 * 1024) -#else #define OST_NEVENTS min(num_physpages / 16, 32768UL) -#define OST_NBUFS min(OST_NEVENTS / 100, 256UL) +#define OST_NBUFS min(OST_NEVENTS / 128, 256UL) #define OST_BUFSIZE ((OST_NEVENTS > 4096UL ? 128 : 64) * 1024) #define OST_MAXREQSIZE (8 * 1024) -#endif #define CONN_INVALID 1 -- 1.8.3.1