pipe structure and KVM caching patch

Hiten Pandya hmp at backplane.com
Tue Feb 17 11:34:08 PST 2004

Matthew Dillon wrote:

    I've done a first pass at improving pipe creation and teardown latencies
    and reducing kmem operations (which are nasty on SMP systems).  I added
    a per-cpu cache of pipe structures and I retain VM object and kmem
    mappings in the cached pipe structures.  Everything can be monitored
    and some params modified via the kern.pipe sysctl.  It is untuned but
    still represents a good first-order solution.  The cache eats around 1MB
    of KVM (virtual, not real memory) per cpu under heavy load.
    I haven't had any problems testing it so far but more testing can't
    hurt.  The patch can be retrieved at:
	fetch http://apollo.backplane.com/DFlyMisc/pipe01.patch

	The change to sys/pipe.h seems cosmetic, right?  Shouldn't those
	be made separately?
		-- Hiten

More information about the Kernel mailing list