* [SUMMARY]: maximum length of PID under Tru64 Unix v5.1
@ 2001-03-23 15:25 g.j.hilbrands
0 siblings, 0 replies; only message in thread
From: g.j.hilbrands @ 2001-03-23 15:25 UTC (permalink / raw)
To: tru64-unix-managers
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
>
>
>
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-23 15:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-23 15:25 [SUMMARY]: maximum length of PID under Tru64 Unix v5.1 g.j.hilbrands
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox