pahole - Finding holes in kernel structs
Ed Schouten
ed at 80386.nl
Thu Feb 12 08:33:46 PST 2009
* Max Laier <max at love2party.net> wrote:
> So to answer your first question, submitting 101 patches to rearrange 101
> structs is certainly a wasted effort. However, if you take a good look at the
> 2000 holes, identify an interesting subset and submit a patch to fix that
> subset ... that would be a worthwhile effort ... IMHO.
I guess it's also a wasted effort to reduce struct tty from 8xx to 7xx
bytes, because it still allocates 1024 bytes of memory using malloc(9).
I guess we should mainly focus on structures that are allocated using
uma(9) or are slightly bigger than 2^n.
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090212/6826b83d/attachment.pgp
More information about the freebsd-hackers
mailing list