Lines Matching defs:batch
113 /* prevent >1 _updater_ of zone percpu pageset ->high and ->batch fields */
1405 * prefetch buddy for the first pcp->batch nr of pages.
1407 if (prefetch_nr++ < pcp->batch)
2099 * so the pcpu batch and high limits needs to be updated or the limits
2971 int to_drain, batch;
2974 batch = READ_ONCE(pcp->batch);
2975 to_drain = min(pcp->count, batch);
3229 unsigned long batch = READ_ONCE(pcp->batch);
3230 free_pcppages_bulk(zone, batch, pcp);
3417 pcp->batch, list,
6052 static void setup_pageset(struct per_cpu_pageset *p, unsigned long batch);
6472 int batch;
6478 batch = zone_managed_pages(zone) / 1024;
6480 if (batch * PAGE_SIZE > 1024 * 1024)
6481 batch = (1024 * 1024) / PAGE_SIZE;
6482 batch /= 4; /* We effectively *= 4 below */
6483 if (batch < 1)
6484 batch = 1;
6487 * Clamp the batch to a 2^n - 1 value. Having a power
6496 batch = rounddown_pow_of_two(batch + batch/2) - 1;
6498 return batch;
6519 * pcp->high and pcp->batch values are related and dependent on one another:
6520 * ->batch must never be higher then ->high.
6524 * Any new users of pcp->batch and pcp->high should ensure they can cope with
6532 unsigned long batch)
6534 /* start with a fail safe value for batch */
6535 pcp->batch = 1;
6538 /* Update high, then batch, in order */
6542 pcp->batch = batch;
6546 static void pageset_set_batch(struct per_cpu_pageset *p, unsigned long batch)
6548 pageset_update(&p->pcp, 6 * batch, max(1UL, 1 * batch));
6563 static void setup_pageset(struct per_cpu_pageset *p, unsigned long batch)
6566 pageset_set_batch(p, batch);
6576 unsigned long batch = max(1UL, high / 4);
6578 batch = PAGE_SHIFT * 8;
6580 pageset_update(&p->pcp, high, batch);
6652 printk(KERN_DEBUG " %s zone: %lu pages, LIFO batch:%u\n",
8908 * The zone indicated has a new number of managed_pages; batch sizes and percpu