Re: [RFC v2 0/2] vmevent: A bit reworked pressure attribute + docs + man page
From: Anton Vorontsov <hidden>
Date: 2012-10-25 09:26:07
Also in:
linux-man, lkml
From: Anton Vorontsov <hidden>
Date: 2012-10-25 09:26:07
Also in:
linux-man, lkml
On Thu, Oct 25, 2012 at 02:08:14AM -0700, Anton Vorontsov wrote: [...]
Maybe it makes sense to implement something like PRESSURE_MILD with an additional nr_pages threshold, which basically hits the kernel about how many easily reclaimable pages userland has (that would be a part of our definition for the mild pressure level). So, essentially it will be if (pressure_index >= oom_level) return PRESSURE_OOM; else if (pressure_index >= med_level) return PRESSURE_MEDIUM; else if (userland_reclaimable_pages >= nr_reclaimable_pages) return PRESSURE_MILD;
...or we can call it PRESSURE_BALANCE, just to be precise and clear. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>