From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Maglinger, Paul" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Range of PIDs generated on Tru64 Unix cluster Date: Fri, 09 Aug 2002 11:57:40 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <64E3EF472A96B048B9147D40BB0031A814CCC0@indyexchange.scvl.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: main.gmane.org 1028912268 6748 127.0.0.1 (9 Aug 2002 16:57:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2002 16:57:48 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17dD57-0001kb-00 for ; Fri, 09 Aug 2002 18:57:45 +0200 Original-Received: (qmail 7004 invoked by uid 5); 9 Aug 2002 16:58:29 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6996 invoked from network); 9 Aug 2002 16:58:29 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 9 Aug 2002 16:58:29 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0L0048C5TGGN@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Aug 2002 12:58:28 -0400 (EDT) Original-Received: from indyexchange.scvl.com (scvl.com [12.28.0.30]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0L00G8B5T7JZ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Aug 2002 12:58:19 -0400 (EDT) Original-Received: by indyexchange.scvl.com with Internet Mail Service (5.5.2653.19) id ; Fri, 09 Aug 2002 11:57:40 -0500 Content-return: allowed Original-To: 'Tru64 Unix Managers list' X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:1311 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1311 My deepest appreciation to Bluejay Adametz, Dan Price, and Dr. Tom for their replies. The answer I was looking for appears below. > But what is the numerical range of values for PIDs (zero through ??????) > for each node and at what point do they start over? Beats me. I'm not even sure it's predictable -- after all, there are some security exploits that depend on PID number being very predictable -- I think we deliberately randomize them, but I'd have to go read things like process creation code to be sure. You can assume a PID will fit in an "int" (32 bits) and I believe the representation assures that the value never exceeds 31 bits, and you can infer that from the definition I pointed you to. So I believe the upper bound is 2 to the 32nd power less 1. Tom