From c7b2e60af8a93d7b7ad1238f9f1a48158a224650 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 29 Aug 2005 20:00:14 +0000 Subject: [PATCH] NR_BUFS forced low if a small minix symbol is defined --- include/minix/config.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.44.0