Linux block layer
 help / color / mirror / Atom feed
* random call_single_data alignment
@ 2017-12-20 19:10 Jens Axboe
  2017-12-20 19:40 ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2017-12-20 19:10 UTC (permalink / raw)
  To: linux-block@vger.kernel.org; +Cc: Huang Ying, Ingo Molnar, Peter Zijlstra

For some reason, commit 966a967116e6 was added to the tree without
CC'ing relevant maintainers, even though it's touching random subsystems.
One example is struct request, a core structure in the block layer.
After this change, struct request grows from 296 to 320 bytes on my
setup.

Why are we blindly aligning to 32 bytes? The comment says to avoid
it spanning two cache lines - but if that's the case, look at the
actual use case and see if that's actually a problem. For struct
request, it is not.

Seems to me, this should have been applied in the specific area
where it was needed. Keep struct call_single_data (instead of some
__ version), and just manually align it where it matters.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-20 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20 19:10 random call_single_data alignment Jens Axboe
2017-12-20 19:40 ` Jens Axboe
2017-12-20 20:18   ` Peter Zijlstra
2017-12-20 20:23     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox