[lkml]   [2000]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectPIDs limited to 15 significant bits

looking at my process list after a week or so of uptime I discoverd that PIDs
seem to wrap arround at 32767 (aka. 2^15 - 1).

I found the relevant code doing this in kernel/fork.c:get_pid() where a mask
(0xffff8000) is used to limit the PID of a new process to 15 significant bits.
(I am running 2.4.0-test6 currently)

I find this "feature" annoying, since I like to view my process list sorted by
PID, which gives a nice overview about recently started processes vs. age-old

So, I would like to ask if someone could please explain the reason for this. If
there is no compelling reason I would like to propose to remove this limit. I
recall this was not present in 2.2.x

After all, UIDs have just been changes to 32bits, why limit PIDs?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.028 / U:1.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site