PERFORCE change 126497 for review

Kip Macy kmacy at FreeBSD.org
Sun Sep 16 19:50:14 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=126497

Change 126497 by kmacy at kmacy_home:ethng on 2007/09/17 02:50:04

	add MINCLSIZE so that users can reduce the system's propensity
	to put data into the mbuf as freeing an mbuf that has left the cache 
	is expensive as a result of the following:
	
	
	static void
	mb_dtor_mbuf(void *mem, int size, void *arg)
	{
		struct mbuf *m;
	
		m = (struct mbuf *)mem;
		if ((m->m_flags & M_PKTHDR) != 0)       <- have to touch the mbuf
			m_tag_delete_chain(m, NULL);
	
	...
	eventually this should be a sysctl

Affected files ...

.. //depot/projects/ethng/src/sys/conf/options#4 edit

Differences ...

==== //depot/projects/ethng/src/sys/conf/options#4 (text+ko) ====

@@ -535,6 +535,7 @@
 INVARIANT_SUPPORT	opt_global.h
 INVARIANTS		opt_global.h
 MCLSHIFT		opt_global.h
+MINCLSIZE		opt_global.h
 MUTEX_DEBUG		opt_global.h
 MUTEX_NOINLINE		opt_global.h
 LOCK_PROFILING		opt_global.h


More information about the p4-projects mailing list