Re: pid_max ?

From: William Lee Irwin III (wli_at_holomorphy.com)
Date: 07/31/03

  • Next message: Benjamin Herrenschmidt: "Re: [linux-usb-devel] Re: OHCI problems with suspend/resume"
    Date:	Thu, 31 Jul 2003 14:23:42 -0700
    To: "Frederick, Fabian" <Fabian.Frederick@prov-liege.be>
    
    

    On Wed, Jul 30, 2003 at 09:53:12AM +0200, Frederick, Fabian wrote:
    > I was looking at pid.c file and can't understand pid_max usage.
    > It's defined as integer (signed) =PID_MAX_DEFAULT (which is 0x8000 (on old
    > arch, integer max positive value isn't 32767 ? so 0x8000 -> -32768).
    > In alloc_pidmap, 'if (pid>=pid_max)' should be in that case always
    > true so pid=RESERVED_PIDS which is 300 (?).Why not use pid>PID_MAX_DEFAULT
    > there and forget the pid_max definition ? and why do we have that '300'
    > value ?

    It's to avoid trying to allocate from the range of pid's typically used
    by kernel threads and system daemons after bootup. There are no hard
    dependencies on it, it's merely "traditional pidspace layout".

    -- wli
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Benjamin Herrenschmidt: "Re: [linux-usb-devel] Re: OHCI problems with suspend/resume"

    Relevant Pages

    • Re: forkbombing Linux distributions
      ... > small forkbomb, I saw that either the forkbomb process, or the parent ... > would be chosen to kill? ... > processes are killed (like kernel threads or other daemons), ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
      ... I bet that somebody who really really cares (hint hint) could ... and then dynamically tweak the divisor at bootup ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Clock resolution / RT preemption
      ... > I understand the POSIX 1003.1b Clocks and Timers system calls are not ... On the HRT web site there is a CVS repository. ... > timers/interrupt handlers within kernel threads, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] [request for inclusion] Realtime LSM
      ... Ingo Molnar writes: ... >> Hmm, I wonder if this could have anything to do with it. ... i forgot about kernel threads. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] RCU for low latency (experimental)
      ... No particular reason other than that I wanted to experiment with ... the priority of the kernel threads when we test it under heavy load. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)