[lkml]   [2002]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Linux-2.5 fix/improve get_pid()
    Followup to:  <>
    By author: Linus Torvalds <>
    In newsgroup:
    > Guys, this discussion is getting ridiculous.
    > Doing a bit allocator should be trivial, but it's hard to know when a bit
    > is to be free'd. You can't just do it at "exit()" time, because even if
    > pid X exits, that doesn't mean that X can be re-used: it may still be used
    > as a pgid or a tid by some other process Y.
    > So if you really want to take this approach, you need to count the uses of
    > "pid X", and free the bitmap entry only when that count goes to zero. I
    > see no such logic in Bill Irwin's code, only a comment about last use
    > (which doesn't explain how to notice that last use).

    Even so, we need to maintain Not Recently Used semantic. A discussion
    on #kernel seems to have ended up with recommending a design target of
    "no pid reuse within 30 seconds", with 1 second being an absolute

    <> at work, <> in private!
    "Unix gives you enough rope to shoot yourself in the foot." <>
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:27    [W:0.025 / U:55.792 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site