On Mon, 22 Oct 2012, Anton Vorontsov wrote: > This patch introduces VMEVENT_ATTR_PRESSURE, the attribute reports Linux > virtual memory management pressure. There are three discrete levels: > > VMEVENT_PRESSURE_LOW: Notifies that the system is reclaiming memory for > new allocations. Monitoring reclaiming activity might be useful for > maintaining overall system's cache level. > > VMEVENT_PRESSURE_MED: The system is experiencing medium memory pressure, > there is some mild swapping activity. Upon this event applications may > decide to free any resources that can be easily reconstructed or re-read > from a disk. Nit: s/VMEVENT_PRESSURE_MED/VMEVENT_PRESSUDE_MEDIUM/ Other than that, I'm OK with this. Mel and others, what are your thoughts on this? Anton, have you tested this with real world scenarios? How does it stack up against Android's low memory killer, for example? Pekka -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>