Re: [PATCH 4/8][for -mm] mem_notify v6: memory_pressure_notify() caller
From: KOSAKI Motohiro
Date: Wed Feb 13 2008 - 19:32:28 EST
Hi Andi,
> > to be honest, I don't think at mem-cgroup until now.
>
> There is not only mem-cgroup BTW, but also NUMA node restrictons from
> NUMA memory policy. So this means a process might not be able to access
> all memory.
you are right.
good point out.
current implementation may cause wake up the no relate process of
memory shortage zone ;-)
but unfortunately, we can't know per zone rss.
(/proc/[pid]/numa_maps is very slow, we can't use it
at memory shortage emergency)
I think we need develop per zone rss.
it become not only improve mem_notify, but also improve
oom killer of more intelligent process choice.
but it is a bit difficult. (at least for me ;-)
may be, I will implement it a bit later...
Thanks again!
your good opnion may improve my patch.
- kosaki
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/