diff options
author | dillon <dillon@FreeBSD.org> | 1999-10-24 03:27:28 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-10-24 03:27:28 +0000 |
commit | 16d1a2d1fdb76b9b3453b09697adbe3e18254169 (patch) | |
tree | 72e1a7d1f432c9b2855a490d2a9fac11dd1dd356 /sys/sys/bio.h | |
parent | 00d0ab1ce12d08a727e62d85486f2b05ece388b3 (diff) | |
download | FreeBSD-src-16d1a2d1fdb76b9b3453b09697adbe3e18254169.zip FreeBSD-src-16d1a2d1fdb76b9b3453b09697adbe3e18254169.tar.gz |
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.
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r-- | sys/sys/bio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h index 05e9863..f4426d1 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.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. */ |