search for: extra_cpus_mask

Displaying 1 result from an estimated 1 matches for "extra_cpus_mask".

2012 Oct 11
14
alloc_heap_pages is low efficient with more CPUs
...t page_info *alloc_heap_pages( unsigned int zone_lo, unsigned int zone_hi, unsigned int node, unsigned int order, unsigned int memflags) { if ( pg[i].u.free.need_tlbflush ) { /* Add in extra CPUs that need flushing because of this page. */ cpus_andnot(extra_cpus_mask, cpu_online_map, mask); tlbflush_filter(extra_cpus_mask, pg[i].tlbflush_timestamp); cpus_or(mask, mask, extra_cpus_mask); } } 1 in the first starting, most of need_tlbflush=NULL, so cost little; in the second one, most of RAM have been used thus makes need_tlbfl...