NR_BUFS forced low if a small minix symbol is defined

This commit is contained in:
Ben Gras 2005-08-29 20:00:14 +00:00
parent 61a7f45a99
commit c7b2e60af8

View file

@ -39,6 +39,11 @@
#define NR_PROCS _NR_PROCS #define NR_PROCS _NR_PROCS
#define NR_SYS_PROCS _NR_SYS_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. */ /* The buffer cache should be made as large as you can afford. */
#if (MACHINE == IBM_PC && _WORD_SIZE == 2) #if (MACHINE == IBM_PC && _WORD_SIZE == 2)
#define NR_BUFS 40 /* # blocks in the buffer cache */ #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*/ #define NR_BUF_HASH 512 /* size of buf hash table; MUST BE POWER OF 2*/
#endif #endif
#endif /* _MINIX_SMALL */
/* Number of controller tasks (/dev/cN device classes). */ /* Number of controller tasks (/dev/cN device classes). */
#define NR_CTRLRS 2 #define NR_CTRLRS 2