Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: None <source@NetBSD.ORG>
List: source-changes
Date: 01/30/1997 04:10:01
thorpej
Wed Jan 29 20:00:54 PST 1997
Update of /cvsroot/src/sys/dev
In directory netbsd1:/var/slash-tmp/cvs-serv1760

Modified Files:
	ccd.c ccdvar.h 
Log Message:
A performance optimization, inspired by a conversation with Thor Simon:

	- Keep a freelist of component buffer headers, defaulting
	  to 8 headers per component (tunable with the CCDNBUF
	  kernel compile option).
	- When allocating a component buffer, try to pull a header
	  off the freelist first, falling back on MALLOC() if the
	  freelist is empty.  Use MALLOC() rather than malloc(),
	  because it will attempt to short-cut the allocation before
	  actually making a full-blown malloc() call.
	- Keep statistics on how many component buffer headers have
	  been allocated and how many of those allocations have
	  resulted in freelist misses.

With these changes, I observed measurable decreases in system and
wall clock time on operations on an 8G ccd, as well as a measurable
drop in the time spent in ccdbuffer() (measured with kernel profiling).


thorpej
Wed Jan 29 20:02:09 PST 1997
Update of /cvsroot/src/sbin/ccdconfig
In directory netbsd1:/var/slash-tmp/cvs-serv2496

Modified Files:
	ccdconfig.8 ccdconfig.c 
Log Message:
Add support to display the ccd-specific statistics kept by the ccd
driver.


thorpej
Wed Jan 29 20:04:08 PST 1997
Update of /cvsroot/doc
In directory netbsd1:/var/slash-tmp/cvs-serv2662

Modified Files:
	CHANGES 
Log Message:
Note ccd component buffer freelist changes.