Re: PID Wrap <strangeness>

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Wed Feb 23 2000 - 08:58:06 EST


On Wed, 23 Feb 2000, Mathijs Mohlmann wrote:

> "Richard B. Johnson" wrote:
> > A hard-coded number of 300 is an eye-opener.
>
> I'm starting to think, that 300 isn't even low enough. My redhat sysinit
> scripts use so many pids, that my first daemon has pid 340. 600 would be
> a saner value on my system.
>
> me
>

Well this sure looks strange after 32,xxx network connections and
subsequent disconnects. This is an embeded system.

Script started on Wed Feb 23 08:45:48 2000
# telnet sparks
Trying 204.178.40.137...
Connected to sparks.analogic.com.
Escape character is '^]'.

                 MDC Platinum(tm) Control System Version 2.00
                 Copyright(c) 1999-2000, Analogic Corporation

  Enter "help" for commands

PLATINUM> sho sys
PID Name Stat CPU Mem Exe Command line
1 (init) S 0.01 820 4 Platinum
2 (kswapd) S 0.00 820 4
3 (kflushd) S 0.00 820 4
4 (kupdate) S 0.00 820 4
12 (monitor) S 0.00 748 12 /sbin/monitor Console
14 (monitor) S 0.00 748 12 /sbin/monitor RS-232C
16 (timestr) S 0.01 724 4 /sbin/timestr
17 (gpib) S 0.00 724 4 GPIB secretary
19 (timestr) S 0.01 724 4 /sbin/timestr
20 (server) S 0.00 744 8 /sbin/server Netserver
22 (control) S 0.01 748 12 /sbin/control GPIB
23 (discard) S 0.00 740 8 /sbin/discard Netserver
69 (server) R 0.00 744 8 Client 204.178.40.224
70 (monitor) S 0.01 764 12 /sbin/monitor
71 (server) S 0.00 744 8 Client 204.178.40.224
72 (status) R 0.02 704 4 /sbin/status
PLATINUM> exit
        Exit

Connection closed by foreign host.
# exit
exit
Script done on Wed Feb 23 08:46:13 2000

I think 300 should be changed to the 'lowest next-available'.
There really isn't any 'daemon-area'. Many/most daemons spawn
children to do their work. The 'kids' that are actually doing
the work can have any pid, except 1 and less than max.

Cheers,
Dick Johnson

Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).

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



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:33 EST