lkml.org 
[lkml]   [2012]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] Re: [RFC PATCH] namespaces: fix leak on fork() failure
    From
    Date
    Namespaces have something in common with cgroups.  synchronize_rcu()
    makes them somewhat less than wonderful for dynamic use.

    default flags = SIGCHLD

    -namespace: flag |= CLONE_NEWPID
    -all: flags |= CLONE_NEWIPC | CLONE_NEWNET | CLONE_NEWUSER

    marge:/usr/local/tmp/starvation # ./hackbench
    Running with 10*40 (== 400) tasks.
    Time: 2.636
    marge:/usr/local/tmp/starvation # ./hackbench -namespace
    Running with 10*40 (== 400) tasks.
    Time: 11.624
    marge:/usr/local/tmp/starvation # ./hackbench -namespace -all
    Running with 10*40 (== 400) tasks.
    Time: 51.474

    You can create trash quickly, but you have to haul it away.

    -Mike



    \
     
     \ /
      Last update: 2012-05-04 07:04    [W:0.024 / U:59.864 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site