> >it should free for each notification received, that is, its part? > > > >Its easier if there is a goal, a hint of how many pages the process > >should release. > > I have to agree. > Still, the amount of memory that an app should free per memory-pressure-level can be best calculated inside the application (based on comfortable_free_pages relative to process RSS, as you suggested). It is easier if the kernel calculates the target (the application is free to ignore the hint, of course), because it depends on information not readily available in userspace. > Fairness is also an issue. > And, if in the meantime the memory pressure ended, would you recommend that the application will continue with its work? There appears to be interest in an event to notify that higher levels of memory are available (see Leonid's email). -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>