diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 1999-10-24 03:27:28 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 1999-10-24 03:27:28 +0000 |
commit | 9782fb62094879e38d2601b84f8eb9d4218dcfe7 (patch) | |
tree | 72e1a7d1f432c9b2855a490d2a9fac11dd1dd356 /sys/sys/buf.h | |
parent | b130e2d2dcfe896345d5bb720e2c4542454dc8c7 (diff) | |
download | src-9782fb62094879e38d2601b84f8eb9d4218dcfe7.tar.gz src-9782fb62094879e38d2601b84f8eb9d4218dcfe7.zip |
Adjust the buffer cache to better handle small-memory machines. A
slightly older version of this code was tested by BDE and I.
Also fixes a lockup situation when kva gets too fragmented.
Remove the maxvmiobufspace variable and sysctl, they are no longer
used. Also cleanup (remove) #if 0 sections from prior commits.
This code is more of a hack, but presumably the whole buffer cache
implementation is going to be rewritten in the next year so it's no
big deal.
Notes
Notes:
svn path=/head/; revision=52452
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r-- | sys/sys/buf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 05e9863776a9..f4426d1aa288 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -439,6 +439,7 @@ bufq_first(struct buf_queue_head *head) #ifdef KERNEL extern int nbuf; /* The number of buffer headers */ +extern int buf_maxio; /* nominal maximum I/O for buffer */ extern struct buf *buf; /* The buffer headers. */ extern char *buffers; /* The buffer contents. */ extern int bufpages; /* Number of memory pages in the buffer pool. */ |