From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sheldon Lee Wen Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Tru Cluster [PID's ] Date: Thu, 14 Nov 2002 11:44:19 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <002701c28bfd$16026e40$750da50a@CGIBLAIR.CA> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1037292248 10915 80.91.224.249 (14 Nov 2002 16:44:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2002 16:44:08 +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 18CN66-0002pt-00 for ; Thu, 14 Nov 2002 17:44:06 +0100 Original-Received: (qmail 1275 invoked by uid 5); 14 Nov 2002 16:45:39 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 1265 invoked by uid 49493); 14 Nov 2002 16:45:39 -0000 Original-Received: from sheldon.leewen@cgi.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(1.8/5.0):. Processed in 0.460111 secs); 14 Nov 2002 16:45:39 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 14 Nov 2002 16:45:39 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5K00M87RW2T2@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 14 Nov 2002 11:45:38 -0500 (EST) Original-Received: from whms0094.cwshs.com (mx1.god.cgi.ca [64.86.141.6]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5K0033DRVQ2D@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 14 Nov 2002 11:45:28 -0500 (EST) Original-Received: from whml0344.cgi.com ([10.254.251.20]) by whms0094.cwshs.com (Netscape Messaging Server 4.15 whms0094 Jul 22 2001 13:33:35) with SMTP id H5KRUU01.O1T for ; Thu, 14 Nov 2002 11:44:54 -0500 Original-Received: from whms0335.wshs(10.254.245.207) by whml0344.cgi.com via csmap id 32130; Thu, 14 Nov 2002 11:40:17 -0500 (EST) Original-Received: from tormak ([10.165.13.117]) by whms0335.cwshs.com (Netscape Messaging Server 4.15 whms0335 Jan 17 2002 00:23:08) with ESMTP id H5KRP902.33O for ; Thu, 14 Nov 2002 11:41:33 -0500 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:2441 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2441 Many thanks for the quick responses. Here is my original question: Hi, Does anyone know, or know where I can find out how tru cluster handles PID's? Does it allow two instances of the same process on different machines to have the same pid? Thx. Sheldon. --------------------------- Here are the responses. ---------------------------- No it will not allow that. I cut and pasted a section from the Cluster Application Migration section from one of the online guides - Section 4.6 Expanded PIDs In TruCluster Server, process identifiers (PIDs) are expanded to a full 32-bit value. The data type PID_MAX is increased to 2147483647 (0x7fffffff); therefore, any applications that test for PID <= PID_MAX must be recompiled. To ensure that PIDs are unique across a cluster, PIDs for each cluster member are based on the member ID and are allocated from a range of numbers unique to that member. The formula for available PIDs in a cluster is: PID = (memberid * (2**19)) + 2 Typically, the first two values are reserved for the kernel idle process and /sbin/init. For example, PIDs 524,288 and 524,289 are assigned to kernel idle and init, respectively. Use PIDs to uniquely identify log and temporary files. If an application does store a PID in a file, make sure that that file is member-specific. Hope this helps... Alay. -------------------------- Sheldon, http://www.tru64unix.compaq.com/docs/base_doc/DOCUMENTATION/V51A_HTML/AR HH0DTE/CHPSSSXX.HTM No, you would not be able to have two instances of the same processes on different machines to have the same PIDs as the PIDs on *each* node running 5.1A (cluster) have unique PID values. Dan Price ----------------------------- I've seen documentation on this - maybe in the Cluster Management book? I just looked on my two-node cluster and the PIDs on one node are 524xxx and on the other are 1048xxx. I seem to remember reading that the first part is calculated such that they should never overlap in numbers. Jenny Butler.