* maximum PID value in TU5.0A
@ 2000-10-03 21:10 Charles Vachon
0 siblings, 0 replies; only message in thread
From: Charles Vachon @ 2000-10-03 21:10 UTC (permalink / raw)
To: tru64-unix-managers
Hello managers,
I'm trying to find a way to limit the maximum PID value used in Tru64
UNIX v5.0A. By declarations in header files one can find the following
about v5.0A:
in /usr/include/limits.h:
#define PID_MAX INT_MAX /* max value for process ID
*/
and in /usr/include/machine/machlimits.h:
#define INT_MAX 2147483647 /* max value for an int
*/
So this means that on TU5.0A, PID numbers could (in theory at least)
climb to 10-digit values. My concern is that various sysadmin utilities
(like top, for instance) are not able to handle such long PID numbers. I
would like to make TU5.0A behave like older 4.x versions, which BTW have
these values defined:
in /usr/include/limits.h:
#define PID_MAX SHRT_MAX /* max value for a process
ID, >=3D30000 */
and in /usr/include/machine/machlimits.h:
#define SHRT_MAX 32767 /* max value for a short */
The obvious answer is to modify /usr/include/limits.h so that the define
for PID_MAX resembles that of versions 4.x., and to recompile the
kernel. Alas, this does not seem to work. After a reboot using the new
kernel, PID numbers still climb above SHRT_MAX. Could the contents of
/usr/include/limits.h have no effect on the compilation? Or maybe I'm
just dead wrong and I miss something important here...
I've also tried to shim the same #define into the
/sys/YOUR_HOSTNAME/param.c file, just in case it would take effect
there, but it too did not work.
Any suggestions? This issue was previously discussed in the mailing list
for a 4.x host. see
http://www.ornl.gov/its/archives/mailing-lists/tru64-unix-managers/2000/0=
2/msg00341.html
for the summary.
TIA/will summarize
--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Charles Vachon tel: (418) 627-6355 x2760
email: cvachon2@mrn.gouv.qc.ca
Administrateur de syst=E8me
FRCQ/Minist=E8re des Ressources
Naturelles du Qu=E9bec
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-10-03 21:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-03 21:10 maximum PID value in TU5.0A Charles Vachon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox