tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: g.j.hilbrands () kpn ! com
To: tru64-unix-managers
Subject: [SUMMARY]: maximum length of PID under Tru64 Unix v5.1
Date: Fri, 23 Mar 2001 15:25:15 +0000	[thread overview]
Message-ID: <98536115610770.tru64-unix-managers.marc@archive.invalid> (raw)

Original Question:

Hello Managers,

I am wondering what the maximum lenght of a process ID within Tru64 v5.1 is.
I have seen PID's consisting of  6 positions  and wonder if a pid can grow
behind this length.Any ideas, or ways to find out  ? 

Summary:

The pid in V5.1 is defined in /usr/include/sys/types.h as an int
(32-bits).Although there is a reference to PID_MAX in the cpid_t structure
used by thecluster software, that translates to INT_MAX that translates to
2147483647 (or 31-bits).

Now in a TruCluster Server environment, the pid is actually a structure
(cpid_t) that is split into four fields:

        pid = 19-bits
     nodeid =  8-bits
     seqnum =  4-bits
       sign =  1-bit   (this is unused)

This is done to ensure that each member in a cluster has a unique pid
range(524288 unique pids/member) based on the ID of cluster member.

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. PIDs for member 1 begin at 524,288 (2**19), and PIDs
for member 2 begin at 1,048,578, and so on.


Thanks to following people:
Scott Fafrak
Dr. Thomas Blinn
John P Speno
Alex Harkema


Met vriendelijke groet, 

Gert-Jan Hilbrands
Support Unix Datacenter
> 050 - 5882781   
> 06 - 51584767
> PBG 3701
> g.j.hilbrands@kpn.com
> 
> 
> 
> 

                 reply	other threads:[~2001-03-23 15:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox