Andi Kleen a écrit :
David, do you think we could place file->private_data in the same cache
line than file->f_count and file->f_op, so that sockfd_lookup() can access
all the needed information (f_count, f_op, private_data) using one
L1_CACHE_LINE only ?
You mean for 32byte cache lines? Not sure if there are that many SMP systems
with that small a cache line left. Most now should have 64byte or 32byte.
-Andi
No no, the private_data is actually far beyond, even for a L1_CACHE_LINE of 128
bytes
(because of the insane struct file_ra_state f_ra. I wish this structure were
dynamically allocated only for files that really use it)
offsetof(private_data) was 0xc8 last time I checked it on my x86_64 platform.
Eric
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html