Re: [patch] Additions to .data.read_mostly section

From: Eric Dumazet
Date: Wed Aug 24 2005 - 17:39:00 EST


Ravikiran G Thirumalai a écrit :
Following patch moves a few static 'read mostly' variables to the .data.read_mostly section. Typically these are vector - irq tables,
boot_cpu_data, node_maps etc., which are initialized once and read from often and rarely written to. Please include.


Good candidates for read_mostly are all the 'kmem_cache_t *xxx_cache'

slab was carefuly designed to eliminate cache line ping pongs on SMP, but if the initial pointer to slab sits in a heavily modified cache line, we loose.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/