AIX: PID 0 Process


 
Thread Tools Search this Thread
Operating Systems AIX AIX: PID 0 Process
# 1  
Old 07-16-2009
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 process not required in AIX? What job does SWAPPER process do apart from starting the init service?

In AIX:
Code:
$ ps -ef|sort -nk2 |head
     UID      PID     PPID   C    STIME    TTY  TIME CMD
    root        1        0   0   Apr 01      - 24:23 /etc/init

Regards...

Next time use CODE-tags when posting code, data or logs for better readability and to keep formatting/indention etc., ty.

Last edited by zaxxon; 07-17-2009 at 01:16 AM.. Reason: code tags
# 2  
Old 07-16-2009
Solaris uses swap. AIX utilizes paging space. /usr/sbin/syncd does the appropriate task in AIX.

Swapper/syncd do not start the init service. They are responsible for cleaning/recovering virtual memory.

Here is a link that explains why paging is better than swap: http://www.xent.com/FoRK-archive/may98/0300.html

Last edited by Padow; 07-16-2009 at 03:13 PM.. Reason: Added link
Padow
# 3  
Old 07-16-2009
Hi,

Hi Quintet,

ps -ef would not show you the process anyway since its a kernel- not a userprocess - but ps -k shows you the kernel processes.

At least on my box pid0 is swapper, pid1 is init and pid3 is sched Smilie

Kind regards
zxmaus
# 4  
Old 07-17-2009
Hi Guys,

Thanks for your answers. It really helped. And yes ps -k did list the swapper process.

Is there any command to know whether the system supports SWAP or PAGING?

Regards..
# 5  
Old 07-17-2009
Hi,

what do you mean with 'if the system supports paging'? We tend to try avoid paging as good as we can Smilie

AIX uses paging space as virtual memory ... usually hdisk6 but you can define further paging areas.

lsps -a shows you details about your paging areas, eg number, location, size, usage and anything else.

AIX cannot run without a paging area - it will not start at all, so you need to have at least a small one small paging area in your rootvg - further paging areas can be defined as you like.

You can tune the virtual memory manager how to use this paging area - eg to page out only noncomputational memory in case of need but whenever you are drastically exhaust the amount of real memory in your box, the system will use the paging area for everything - fighting for survival. And once the paging space is full, the box will either start forking and killing processes randomly - or restart itself.

Hope that helps
kind regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. AIX

How to get process name from PID?

HI, i used ps -ef | grep 3539052 | grep -v grep and i got a output like ths root 3539052 3407918 0 May 07 - 709:31 /usr/sbin/syslogd but what i need is instead of full path /usr/sbin/syslogd i want only the process name that is 'syslogd' here. (3 Replies)
Discussion started by: sumanthupar
3 Replies

3. HP-UX

PID Process Resources

Hi all. I need to get detailed information about a PID. I have an app called Reflection X and it shows many things like Total CPU percent, User CPU (Nice) percent, FS Reads, etc. My question is how can I get all that information on console? Is there an archive with the detailed... (9 Replies)
Discussion started by: the0m3n
9 Replies

4. Programming

[C] Process pid by name

Hi I use linux OS. I've already written a function that allow me to get the process name by pid. (searching in /proc). Now I'd like to perform the inverse task.I mean get the process pid by its name. I could write a function that search in every folder in /proc for the process name, but i... (2 Replies)
Discussion started by: Dedalus
2 Replies

5. Programming

Need the PID of a process in a thread

How do I run a process from a C++ p_thread and obtain its PID? Right now I am doing in a p_thread: system("ampl method.run"); and into the main function (after running the thread mentioned before): sleep(5); //Just to be sure that the thread is executing the ampl command system("ps... (1 Reply)
Discussion started by: riccollado
1 Replies

6. Shell Programming and Scripting

getting pid from a process

Hi all, i was able to redirect pid of process to a file in the following way ps aux|awk '$11 == "/Applications/ProjectX/DServer" >> /Applications/ProjectX/DServer.pid it works fine but if one folder name caontains space its not working like below ps aux|awk '$11 == "/Applications/Project\... (1 Reply)
Discussion started by: kirankumars
1 Replies

7. Shell Programming and Scripting

Get an PID of particular process

Hi I have written a shell script to find and kill the particular process. Here in shell script i have written the code like cnt = $(ps -ef | grep Shree) echo $cnt I am getting the output root 2326 2317 0 14:39:46 pts/1 0:28 Shree -f fdc.fbconf FDCapp.fbapp Here I want to... (2 Replies)
Discussion started by: Shreedhar Naik
2 Replies

8. 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

9. Solaris

getting pid of process

hi all, Is there a simple script anyone could through out to me, to find the pid of a process given the name. I actually need to bind this pid to a processor set. I would probably put these comamns in a shell script which would have. a) kick start the executable b) get the pid c) bind it to a... (10 Replies)
Discussion started by: Naanu
10 Replies

10. Shell Programming and Scripting

Process PID

Hi Friends :p I have a little problem please help me out. I have a Unix based OS Sun Server having oracle 8i as database on it. The server has one client with windows OS. The client uses developer 2000 (GUI) to run query and run processes. I want to know how can I know the PID of a process run... (3 Replies)
Discussion started by: vanand420
3 Replies
Login or Register to Ask a Question