customer asked it the PID length can be somehow limited to max 7 digits in AIX 6.1.
is there any systems parameter for it??
tech100 2700032J22109 Posts
Re: AIX 6.1 and PID length2011-01-26T12:25:32ZThis is the accepted answer. This is the accepted answer.additional info:
some AIX 6.1 have PIDs with length exact 7 digits and some with exact 8 digits (of course except init=1)
how it is possible? where it comes from?
Kosala 060000KTYR141 Posts
Re: AIX 6.1 and PID length2011-01-26T14:26:00ZThis is the accepted answer. This is the accepted answer.Interesting question, had a quick look and it seems pid_t (pid type) defined as in sys/types.h says it is a int32 or long64. And most of the Unix systems used signed types for pid_t, so this means it can be 16 Mil or more???? I suppose.
types.h:typedef int32long64_t pid_t;
Linux define a nproc in the ulimit but that's not applicable to AIX (at least on 5.3)... but that restricts the number of total processes, not the MAX pid numbet.