Fight bloat, save some bytes here and there

Since I’ve wrote pahole & friends I’ve just announced it, posting some results to lkml Andrew Morton has made good use of it uninlining some big functions, but I was sidetracked with all sort of things, life, Real Work(tm) and whatnot, not many people got interested tho, so I thought about doing myself a witch hunt, looking for structs with holes, DaveM has picked all the ones I’ve submitted on net/, now I’ve been working on reducing netfilter struct holes (note that due to utter slowness in the http://www.kernel.org mirroring process not all of the csets where at this URL as of this blog entry time), and got out of my shyness to post at least one for non networking stuff, struct inode and will go, in the next days, attack other things such as struct task_struct that has some holes too, so lets see how people react to such patches, that of course have to be taken with a grain of salt, as moving things around in such core structures is not a straigthforward mission, locality of reference may well justify some of the holes, that is why I implemented –cacheline(_size) on pahole 🙂

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: