Aix pid issue


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Aix pid issue
# 1  
Old 09-16-2009
Aix pid issue

Hi
I have an IBM AIX 5.3 64Bit running with 64bit application (Kernel runs on 64bit also).
I changed the maximum proccesses per user to the maximum.
Currently the pids of proccesses in the system using 5 digits (<100000).
Is it possible to make the system use pids bigger then 4500000? I need it for some debug issues (need to simulate a problem of a customer).
In other words : i need to make the system give a pid of 4500000 to one proccess.

Thanks for any help
# 2  
Old 09-16-2009
what problem are you seeing? You cannot assign a PID. This is done by the kernel. The actual PID number should not matter nor cause any issues.
# 3  
Old 09-17-2009
pids

They are having some issues with oracle when the pid is high (6 digits) on the same version of AIX.
the support guys in my company want to simulate the problem but we are not getting pid higher then 5 digits on our machine...
# 4  
Old 09-17-2009
I do not think you can do that. You may need to change the PL/SQL code.
# 5  
Old 09-17-2009
Re

no way to fake the pid? what if i will open 4.5 million processes (from 40 different users)? will i eventually get a process with 4500000 pid?
# 6  
Old 09-17-2009
I have found this thread, which might help you and contains pointers to some additional sources.

I have never encountered a problem like the one you describe because there is a certain data type in C (pid_t) in the system header files. There should be no range problems if you use it. If someone wouldn't use it this would be extremely bad programming style and i wouldn't expect such a hack in a standard software (you mentioned Oracle).

Of course, nothing is really impossible, so maybe you have a point here, however unlikely. I'd appreciate it if you could tell us your findings once your investigation is completed.

I hope this helps.

bakunin
# 7  
Old 09-17-2009
Quote:
Originally Posted by idana
no way to fake the pid? what if i will open 4.5 million processes (from 40 different users)? will i eventually get a process with 4500000 pid?
I think your focusing on the wrong thing. Having a larger number for a PID does not cause problems. Please explain what problem your having.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to grep PID and program name from netstat in AIX?

Hi All, I am using netstat on AIX to grep info on all open connections. However, unlike on Linux(Centos), I do not get the PID and program name using netstat on AIX. I need this info to be clubbed along with the information retrieved using netstat version of AIX. Is there a way this can be... (1 Reply)
Discussion started by: Vipin Batra
1 Replies

2. AIX

Process, PID and total memory consumed on AIX.

Hi, Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:- top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7 {print date","ip","$12,","$1,","$10}' Any idea how the same can be retrieved on an AIX host? This... (1 Reply)
Discussion started by: Vipin Batra
1 Replies

3. AIX

AIX PID Recycling

Had a bizzare problem last night with one of our tools running on an AIX server that has not come up before. The tool has been in use for over a year without this problem showing up.The tool basically does this: -Kick off a background task and record the PIDGo and do a bunch of other taskswait for... (4 Replies)
Discussion started by: steadyonabix
4 Replies

4. AIX

AIX: PID 0 Process

Hi All, I searched other threads and could not find any relevant post about this. I searched for process 0 in SUN OS and could find the sched/swapper process listed. root 0 0 0 Apr 25 ? 0:06 sched but i couldnt not find the swapper process (PID 0) in AIX. Is that... (4 Replies)
Discussion started by: quintet
4 Replies

5. UNIX for Dummies Questions & Answers

pid from port number in AIX

Hello guys, How to shut down a port number in AIX. May be first I need to find out what is the process ID of that process that listens to this particular port.. Is there any command to find a process ID from the port number other than "lsof". thanks (1 Reply)
Discussion started by: solaix14
1 Replies

6. AIX

pid number creation rules on aix

Hello, On a AIX 5.3.5.0 server, we have PID exceeding 999999. This cause some troubles in our programms. I would like to know the process creation rules on aix : - what is the maximum pid number ? - what is the wrap limit on aix, and where to find it, how to configure pid wrap limit ? -... (3 Replies)
Discussion started by: astjen
3 Replies

7. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

8. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

9. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

10. UNIX for Dummies Questions & Answers

display went awkwards after issue kill pid

hi, i kill a process which is topas. then i do a fg of the process itself and got this Signal 15 received.finally, the display went as belows.... root@myhost:/]ksh: ^L^L^Lps: not found. root@myhost:/] PID TTY TIME CMD ... (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question