* potential for buffer_head shrinkage.
@ 2006-12-30 2:45 Dave Jones
2006-12-30 2:50 ` Dave Jones
0 siblings, 1 reply; 2+ messages in thread
From: Dave Jones @ 2006-12-30 2:45 UTC (permalink / raw)
To: Linux Kernel
Looking at struct buffer_head, it seems that b_state
uses at most 15 bits, where it's defined as a 64bit entity
due to it being used by bit_spin_lock and friends.
Given it's not uncommon for a few hundred thousand of these
to be present, I wonder if it's worth the effort of folding
b_count into the upper bits of b_state, thus shrinking
buffer_head by 16 bits? This would still leave 32 bits
'wasted' for further bh_state_bits expansion if necessary.
Opinions?
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: potential for buffer_head shrinkage.
2006-12-30 2:45 potential for buffer_head shrinkage Dave Jones
@ 2006-12-30 2:50 ` Dave Jones
0 siblings, 0 replies; 2+ messages in thread
From: Dave Jones @ 2006-12-30 2:50 UTC (permalink / raw)
To: Linux Kernel
On Fri, Dec 29, 2006 at 09:45:54PM -0500, Dave Jones wrote:
> Looking at struct buffer_head, it seems that b_state
> uses at most 15 bits, where it's defined as a 64bit entity
> due to it being used by bit_spin_lock and friends.
>
> Given it's not uncommon for a few hundred thousand of these
> to be present, I wonder if it's worth the effort of folding
> b_count into the upper bits of b_state, thus shrinking
> buffer_head by 16 bits? This would still leave 32 bits
> 'wasted' for further bh_state_bits expansion if necessary.
My math here based on a 64 bit compile btw in case that wasn't obvious.
32 bit wouldn't leave room for expansion.
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-30 2:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-30 2:45 potential for buffer_head shrinkage Dave Jones
2006-12-30 2:50 ` Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox