From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97060759929963.tru64-unix-managers.marc@archive.invalid> From: Charles Vachon Date: Tue, 03 Oct 2000 21:10:54 +0000 To: tru64-unix-managers Subject: maximum PID value in TU5.0A X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97060759929963 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