set_memory_reserve — set number of pages reserved in the first zone
void set_memory_reserve ( | unsigned long nr_reserve, |
bool inc) ; |
nr_reserve
The number of pages to mark reserved
inc
true increment to existing value; false set new value.
The per-cpu batchsize and zone watermarks are determined by managed_pages. In the DMA zone, a significant percentage may be consumed by kernel image and other unfreeable allocations which can skew the watermarks badly. This function may optionally be used to account for unfreeable pages in the first zone (e.g., ZONE_DMA). The effect will be lower watermarks and smaller per-cpu batchsize.