lkml.org 
[lkml]   [2011]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] pidns: Make pid_max per namespace
    On Thu, 03 Mar 2011 11:39:17 +0300
    Pavel Emelyanov <xemul@parallels.com> wrote:

    > Rationale:
    >
    > On x86_64 with big ram people running containers set pid_max on host to
    > large values to be able to launch more containers. At the same time
    > containers running 32-bit software experience problems with large pids - ps
    > calls readdir/stat on proc entries and inode's i_ino happen to be too big
    > for the 32-bit API.
    >
    > Thus, the ability to limit the pid value inside container is required.
    >

    This is a behavioural change, isn't it? In current kernels a write to
    /proc/sys/kernel/pid_max will change the max pid on all processes.
    After this change, that write will only affect processes in the current
    namespace. Anyone who was depending on the old behaviour might run
    into problems?

    Also: documentation. Documentation/sysctl/kernel.txt would like an
    update. And perhaps also the pidns documentation which we forgot to
    create :(




    \
     
     \ /
      Last update: 2011-03-08 01:01    [W:0.021 / U:123.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site