Object file section efficiency
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Mon Feb 24 16:09:39 EST 2014
On Mon, 24 Feb 2014 12:44:33 -0800, Matt Davis said:
> Are there any memory efficiencies with how the kernel loads the .data
> vs the .rodata sections into memory? Will the information stored in
> .rodata have better cache performance than that stored in .data?
Yes/no/maybe. It's mostly going to depend on whether there's any *other*
hot data in the same cache line. There's been a number of patches that
re-organize various structs that are larger than a cache line so that all
the hot data is in the same line. There's also been patches to *split*
data across 2 cache lines to avoid ping-ponging (where CPU 1 is beating up
on variable A, and CPU 2 is beating up on not-very-related variable B, and
they just keep shooting down the cache line).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140224/b2df2704/attachment.bin
More information about the Kernelnewbies
mailing list