Date: Mon, 5 Dec 2005 15:52:46 -0500 From: John Baldwin <jhb@freebsd.org> To: src-committers@freebsd.org Cc: cvs-src@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern subr_witness.c src/sys/sys _lock.h lock.h Message-ID: <200512051552.47724.jhb@freebsd.org> In-Reply-To: <200512052045.jB5KjOQv050836@repoman.freebsd.org> References: <200512052045.jB5KjOQv050836@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 05 December 2005 03:45 pm, John Baldwin wrote: > jhb 2005-12-05 20:45:24 UTC > > FreeBSD src repository > > Modified files: > sys/kern subr_witness.c > sys/sys _lock.h lock.h > Log: > Tweak witness handling of lock object to shave 2 pointers off of each > lock object (and thus off of each mutex and sx lock): > > ... > > With these changes, struct mtx shrinks from 36 to 28 bytes on 32-bit > platforms and from 72 to 56 bytes on 64-bit platforms. Note that this > commit will completely and utterly destroy the kernel ABI, so no MFC. > > Tested on: alpha, amd64, i386, sparc64 andre@ reported a 5% perf increase from this change on at least one network benchmark. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512051552.47724.jhb>