lkml.org 
[lkml]   [2005]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] Additions to .data.read_mostly section
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-25 00:40    [W:0.066 / U:13.316 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site