> On Mon, 21 Jun 2010, KOSAKI Motohiro wrote: > > > > It was in the changelog (recall that the badness() function represents a > > > proportion of available memory used by a task, so subtracting 30 is the > > > equivalent of 3% of available memory): > > > > > > Root tasks are given 3% extra memory just like __vm_enough_memory() > > > provides in LSMs. In the event of two tasks consuming similar amounts of > > > memory, it is generally better to save root's task. > > > > LSMs have obvious reason to tend to priotize admin's operation than root > > privilege daemon. otherwise admins can't restore troubles. > > > > But in this case, why do need priotize admin shell than daemons? > > > > For the same reason. We want to slightly bias admin shells and their > processes from being oom killed because they are typically in the business > of administering the machine and resolving issues that may arise. It > would be irresponsible to consider them to have the same killing > preference as user tasks in the case of a tie. Not same. Administrator freely login again. typically killing login process makes to kill some processes in the same session. thus now they have much memory. rest very few case, they can press SysRq+F as a last resort. In the other hand, system daemon crash can makes all of system crash. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>