lkml.org 
[lkml]   [2009]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH mmotm 1/2] memcg: add interface to reset limits
    Daisuke Nishimura wrote:
    > Setting mem.limit or memsw.limit to 0 has no meaning
    > in actual use(no process can run in such condition).
    >

    I wrote a test program that set mem.limit to 0 to test
    oom in memcg, and now it is in LTP, though I can modify
    it accordingly.

    > We don't have interface to reset mem.limit or memsw.limit now,
    > so let's reset the mem.limit or memsw.limit to default(unlimited)
    > when they are being set to 0.
    >

    The idea of having a way to set the limit to unlimited is good,
    but how about allow this by writing -1 to mem.limit?




    \
     
     \ /
      Last update: 2009-06-03 07:17    [W:3.115 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site