Skip to contentSkip to conversation

pid_max madness

DISCUSSION Grzegorz Piotr Jaskiewicz 4 participants 6 messages Nov 17, 2004 – Nov 18, 2004

lore
Share & tools
lore
#0 lore raw

Let's do:
#echo "-1" >/proc/sys/kernel/pid_max
#cat /proc/sys/kernel/pid_max
-1
#

Madness, isn't ?

I guess that isn't what author ment it to behave like.
Anyway, does it mean that after max unsigned value is reached pids are going to be negative in value ??

--
GJ

#1 lore raw
Quoted 2 lines · Grzegorz Piotr Jaskiewicz

Anyway, does it mean that after max unsigned value is reached pids are going to be negative in value ??

No, because something in the /proc drivers will die of indigestion *much* sooner (I think it's some very low value like 64K or 128K on i386?)

#2 lore raw
In reply to Grzegorz Piotr Jaskiewicz
Quoted 9 lines · Grzegorz Piotr Jaskiewicz

Let's do:
#echo "-1" >/proc/sys/kernel/pid_max
#cat /proc/sys/kernel/pid_max
-1
#
Madness, isn't ?
I guess that isn't what author ment it to behave like. Anyway, does it mean that after max unsigned value is reached pids are going to be negative in value ??

Kernel version please?

-- wli

#3 lore raw
Quoted 12 lines · William Lee Irwin III
Quoted 8 lines · Grzegorz Piotr Jaskiewicz

Let's do:
#echo "-1" >/proc/sys/kernel/pid_max
#cat /proc/sys/kernel/pid_max
-1
#
Madness, isn't ?
I guess that isn't what author ment it to behave like.
Anyway, does it mean that after max unsigned value is reached pids are going to be negative in value ??

Quoted 1 line

Kernel version please?

all 2.6.x on intel86, this exact one is 2.6.9.
on 2.6.10-rc1-mm4 it doesn't change it anymore.

--
GJ

-rwxr-xr-x 1 root 5.89824e37 Oct 22 1990 /usr/bin/emacs

#4 lore raw
Quoted 1 line · William Lee Irwin III
Quoted 1 line

Kernel version please?

Quoted 2 lines · Grzegorz Piotr Jaskiewicz

all 2.6.x on intel86, this exact one is 2.6.9.
on 2.6.10-rc1-mm4 it doesn't change it anymore.

Okay, good to hear I didn't miss this piece of the fixes.

Thanks.

-- wli

#5 lore raw
In reply to Grzegorz Piotr Jaskiewicz
Quoted 6 lines · Grzegorz Piotr Jaskiewicz

Let's do:
#echo "-1" >/proc/sys/kernel/pid_max
#cat /proc/sys/kernel/pid_max
-1
#

Quoted 8 lines

Madness, isn't ?

I guess that isn't what author ment it to behave like.
Anyway, does it mean that after max unsigned value is reached pids are going to be negative in value ??

--
GJ
-

Seems to set them back to 300 on this system Linux-2.6.9. That's an interesting side-effect. I like it! They never get much over 300 either!

Cheers,
Dick Johnson
Penguin : Linux version 2.6.9 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by John Ashcroft.
98.36% of all statistics are fiction.