[<prev] [next>] [day] [month] [year] [list]
Message-ID: <b0b0b0000905290615j1a4c1f97q1452bd74d04ec66b@mail.gmail.com>
Date: Fri, 29 May 2009 16:15:30 +0300
From: Iliya <vnsavage@...il.com>
To: linux-kernel@...r.kernel.org
Subject: Fwd: per user memory limit and LSM module
---------- Forwarded message ----------
From: Iliya <vnsavage@...il.com>
Date: Fri, May 29, 2009 at 4:11 PM
Subject: Re: per user memory limit and LSM module
To: Alan Cox <alan@...rguk.ukuu.org.uk>
On Fri, May 29, 2009 at 3:57 PM, Alan Cox <alan@...rguk.ukuu.org.uk> wrote:
>> Any suggestions on how can I quickly get or maintain a list of all the
>> running tasks per user(or just the memory usage), without patching the
>> kernel would be greatly appreciated.
>
> Even if you could what would you do with it, large parts of memory don't
> have a single owner and even if they did you would have to traverse tens
> of thousands of objects so it would be incredibly slow.
Thank you for your reply.
If I can quickly sum, let's say the tsk->mm->total_vm (although this
would not count the overcommiting) for all tasks owned by a user, I
can limit that.
What I really need is to make sure that none of the users would eat
all the memory or get the system in OOM state.
>
> Take a look at the containers work and OpenVZ as I suspect that is what
> you need to work from.
The containers will probably do the job but the module is
multi-purpose and I would rather have everything at one place if
possible..
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists