On Fri, 22 Jul 2011 08:56:52 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote: > On Thu, 21 Jul 2011 14:30:12 +0200 > Michal Hocko <mhocko@xxxxxxx> wrote: > Please wait until "background reclaim" stuff. I don't stop it and it will > make this cpu-caching stuff better because we can drain before hitting > limit. > > If you cannot wait.... > > One idea is to have a threshold to call async "drain". For example, > > threshould = limit_of_memory - nr_online_cpu() * (BATCH_SIZE + 1) > > if (usage > threshould) > drain_all_stock_async(). > > Then, situation will be much better. > Of course, frequency of this call can be controlled by event counter. Thanks, -Kame -- 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>