Home
last modified time | relevance | path

Searched refs:batch (Results 1 – 9 of 9) sorted by relevance

/mm/
Dmmu_gather.c18 struct mmu_gather_batch *batch; in tlb_next_batch() local
20 batch = tlb->active; in tlb_next_batch()
21 if (batch->next) { in tlb_next_batch()
22 tlb->active = batch->next; in tlb_next_batch()
29 batch = (void *)__get_free_pages(GFP_NOWAIT | __GFP_NOWARN, 0); in tlb_next_batch()
30 if (!batch) in tlb_next_batch()
34 batch->next = NULL; in tlb_next_batch()
35 batch->nr = 0; in tlb_next_batch()
36 batch->max = MAX_GATHER_BATCH; in tlb_next_batch()
38 tlb->active->next = batch; in tlb_next_batch()
[all …]
Dpage_alloc.c1312 if (prefetch_nr++ < pcp->batch) in free_pcppages_bulk()
2802 int to_drain, batch; in drain_zone_pages() local
2805 batch = READ_ONCE(pcp->batch); in drain_zone_pages()
2806 to_drain = min(pcp->count, batch); in drain_zone_pages()
3059 unsigned long batch = READ_ONCE(pcp->batch); in free_unref_page_commit() local
3060 free_pcppages_bulk(zone, batch, pcp); in free_unref_page_commit()
3226 pcp->batch, list, in __rmqueue_pcplist()
5747 static void setup_pageset(struct per_cpu_pageset *p, unsigned long batch);
6046 int batch; in zone_batchsize() local
6052 batch = zone_managed_pages(zone) / 1024; in zone_batchsize()
[all …]
Dmm_init.c147 s32 batch = max_t(s32, nr*2, 32); in mm_compute_batch() local
152 vm_committed_as_batch = max_t(s32, memsized_batch, batch); in mm_compute_batch()
Dmemcontrol.c2505 unsigned int batch = max(MEMCG_CHARGE_BATCH, nr_pages); in try_charge() local
2521 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge()
2522 if (page_counter_try_charge(&memcg->memory, batch, &counter)) in try_charge()
2525 page_counter_uncharge(&memcg->memsw, batch); in try_charge()
2532 if (batch > nr_pages) { in try_charge()
2533 batch = nr_pages; in try_charge()
2649 css_get_many(&memcg->css, batch); in try_charge()
2650 if (batch > nr_pages) in try_charge()
2651 refill_stock(memcg, batch - nr_pages); in try_charge()
2669 current->memcg_nr_pages_over_high += batch; in try_charge()
Dslab.c522 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
527 ac->batchcount = batch; in init_arraycache()
634 int batch, gfp_t gfp) in __alloc_alien_cache() argument
642 init_arraycache(&alc->ac, entries, batch); in __alloc_alien_cache()
Dvmscan.c472 long batch_size = shrinker->batch ? shrinker->batch in do_shrink_slab()
Dvmstat.c1629 pageset->pcp.batch); in zoneinfo_show_print()
Dshmem.c468 unsigned long batch = sc ? sc->nr_to_scan : 128; in shmem_unused_huge_shrink() local
498 if (!--batch) in shmem_unused_huge_shrink()
Dzsmalloc.c2385 pool->shrinker.batch = 0; in zs_register_shrinker()