[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS: cvs.openbsd.org: src



One thing to add.

This might grow your buffer cache if you have lots of memory, since the
amount of physical memory used is no longer limited by the amount of
kernel virtual space.

//art

Bob Beck <beck_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org> writes:

> CVSROOT:	/cvs
> Module name:	src
> Changes by:	beck_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2008/06/10 14:14:37
>
> Modified files:
> 	sys/conf       : files 
> 	sys/isofs/udf  : udf_subr.c 
> 	sys/kern       : kern_sched.c subr_disk.c vfs_bio.c vfs_subr.c 
> 	sys/miscfs/specfs: spec_vnops.c 
> 	sys/nfs        : nfs_syscalls.c nfs_vnops.c 
> 	sys/scsi       : cd.c 
> 	sys/sys        : buf.h mount.h 
> 	sys/ufs/ext2fs : ext2fs_bmap.c ext2fs_inode.c 
> 	sys/ufs/ffs    : ffs_inode.c ffs_softdep.c ffs_vnops.c 
> 	sys/ufs/ufs    : ufs_bmap.c ufs_dirhash.c 
> Added files:
> 	sys/kern       : vfs_biomem.c 
>
> Log message:
> Buffer cache revamp
>
> 1) remove multiple size queues, introduced as a stopgap.
> 2) decouple pages containing data from their mappings
> 3) only keep buffers mapped when they actually have to be mapped
> (right now, this is when buffers are B_BUSY)
> 4) New functions to make a buffer busy, and release the busy flag
> (buf_acquire and buf_release)
> 5) Move high/low water marks and statistics counters into a structure
> 6) Add a sysctl to retrieve buffer cache statistics
>
> Tested in several variants and beat upon by bob and art for a year. run
> accidentally on henning's nfs server for a few months...
>
> ok deraadt@, krw@, art@ - who promises to be around to deal with any fallout