From: Ben Gras Date: Mon, 29 Aug 2005 20:00:14 +0000 (+0000) Subject: NR_BUFS forced low if a small minix symbol is defined X-Git-Tag: v3.1.0~247 X-Git-Url: http://zhaoyanbai.com/repos/addsub.png?a=commitdiff_plain;h=c7b2e60af8a93d7b7ad1238f9f1a48158a224650;p=minix.git NR_BUFS forced low if a small minix symbol is defined --- diff --git a/include/minix/config.h b/include/minix/config.h index 62eddf0e8..8b8e087e5 100755 --- a/include/minix/config.h +++ b/include/minix/config.h @@ -39,6 +39,11 @@ #define NR_PROCS _NR_PROCS #define NR_SYS_PROCS _NR_SYS_PROCS +#if _MINIX_SMALL + +#define NR_BUFS 20 +#define NR_BUF_HASH 32 +#else /* The buffer cache should be made as large as you can afford. */ #if (MACHINE == IBM_PC && _WORD_SIZE == 2) #define NR_BUFS 40 /* # blocks in the buffer cache */ @@ -55,6 +60,8 @@ #define NR_BUF_HASH 512 /* size of buf hash table; MUST BE POWER OF 2*/ #endif +#endif /* _MINIX_SMALL */ + /* Number of controller tasks (/dev/cN device classes). */ #define NR_CTRLRS 2