Topic
  • 3 replies
  • Latest Post - ‏2012-11-16T14:16:14Z by SystemAdmin
tech100
tech100
109 Posts

Pinned topic AIX 6.1 and PID length

‏2011-01-26T11:55:20Z |
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??
Updated on 2012-11-16T14:16:14Z at 2012-11-16T14:16:14Z by SystemAdmin
  • tech100
    tech100
    109 Posts

    Re: AIX 6.1 and PID length

    ‏2011-01-26T12:25:32Z  
    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
    Kosala
    141 Posts

    Re: AIX 6.1 and PID length

    ‏2011-01-26T14:26:00Z  
    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.

    Have fun,
    Kosala
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: AIX 6.1 and PID length

    ‏2012-11-16T14:16:14Z  
    please so the comments here for a better understanding:
    http://unix.derkeiler.com/Mailing-Lists/AIX-L/2010-08/msg00008.html