Waiting time of Process


 
Thread Tools Search this Thread
Operating Systems AIX Waiting time of Process
# 1  
Old 09-18-2007
Waiting time of Process

Hi all,

I am trying to find out the process wait time on Unix(AIX/SOLARIS) machine( only sh/ksh/csh):

Like

EXAMPLE 1 :
$ vmstat 2

System configuration: lcpu=16 mem=32000MB

kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
0 0 2172424 3312438 0 0 0 0 0 0 9 1187 158 0 0 99 0
0 0 2172426 3312436 0 0 0 0 0 0 3 1042 112 0 0 99 0
1 0 2172426 3312431 0 0 0 0 0 0 6 1413 120 9 0 91 0

The last column here shows the cpu wait.


We can find out which process is waiting using ps -el , but it gives the event address in the system
EXAMPLE 2 :

ps -el
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
200003 A 0 1 0 0 60 20 18001400 688 - 3:11 init
240001 A 0 147682 1 0 60 20 4828b400 520 * - 242:01 syncd
240001 A 0 274448 258308 0 60 20 380272400 1404 - 229:46 dtgreet
240001 A 0 299146 331868 0 60 20 b8395400 284 f100060000437420 8 - 0:00 writesrv
240001 A 1 311410 331868 0 60 20 1283a7400 1380 - 0:00 rpc.statd

(Event Address in Red coloured letters shows event Address in system)
But I want to know the process wait time. Any help in this regard is appreciated.
# 2  
Old 09-19-2007
I thought the last column was "Wait I/O"
# 3  
Old 09-21-2007
Your vmstat shows no wait for I/O; I don't understand either.
# 4  
Old 09-21-2007
The last 4 columns show the way the cpu / cpus are being sliced. User / Sys / idle / wait. With the idle at 99% this machine is not working to hard! A high figure in the wait column would be the machine is usually I/O bound either memory or disk.
# 5  
Old 09-25-2007
Waiting time

Hiiii Johnf & Zaxxon...

I want waiting time of any user defined process i dont want CPU's waiting time.
If you have any idea, pl. let me know.
Bye,
Chandra
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Subprocess.popen() should write to log without waiting for process to complete

Here is my test code process = sp.Popen( + , bufsize=1, universal_newlines=True, stdout=sp.PIPE, stderr=sp.STDOUT, cwd=src_home) output, _ =... (2 Replies)
Discussion started by: ezee
2 Replies

2. Shell Programming and Scripting

How to detect that foreground process is waiting for input?

Hi, I have to create a script (ksh or perl) that starts certain number of parallel jobs (another scripts), each of them runs as a foreground process in a separate session. Plus I start monitoring job that has to determine if any of those scripts is expecting input from operator, and switch to... (4 Replies)
Discussion started by: andyh80
4 Replies

3. Shell Programming and Scripting

Waiting for a process to complete in shell script

Hi, I need to initiate a process script which will start and do some processing and then shuts down. Then i need to other verifications. But the the process takes around 25 to 3o minutes. One thing i can monitor the nohup.out file for this process where i can wait for shutting down statement to... (3 Replies)
Discussion started by: Prashanth19
3 Replies

4. AIX

How to measure waiting time in run queue?

Hello guys, I am doing a performance analysis on one of our psystem. Most of time I am using Nmon analyser to do my trend graph. But I can't find any help with it. We are interesting in the time spend by tasks in Aix run queue. After looking the Aix documentation, I am pessimist to find any... (3 Replies)
Discussion started by: GiiGii
3 Replies

5. Shell Programming and Scripting

waiting on jobs in bash, allowing limited parallel jobs at one time, and then for all to finish

Hello, I am running GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu). I have a specific question pertaining to waiting on jobs run in sub-shells, based on the max number of parallel processes I want to allow, and then wait... (1 Reply)
Discussion started by: srao
1 Replies

6. Shell Programming and Scripting

Waiting for the background process to finish

Hi, I have on shell script which internally calls more than one scripts which run in background. These scripts cannot be modified to run in foreground. eg. myscript.sh -> bulk_launcher.sh -> acq_launcher.sh -> bulk_loader.sh I want the calling shell script myscript.sh to wait till the... (7 Replies)
Discussion started by: AB10
7 Replies

7. Shell Programming and Scripting

Waiting for an arbitrary background process (limiting number of jobs running)

Hi, I'm trying to write a script to decompress a directory full of files. The decompression commands can run in the background, so that many can run at once. But I want to limit the number running at any one time, so that I don't overload the machine. Something like this: n=0 for i in *.gz... (15 Replies)
Discussion started by: p.f.moore
15 Replies

8. Shell Programming and Scripting

Waiting for a background process to finish

Hello, I am a novice shell script programmer. And facing this problem any help is appreciated. I m writing a shell script and running few commands in it background as I have to run them simultaneously. Sample code : sql_prog & sql_prog & sql_prog & echo "Process Completed" Here... (2 Replies)
Discussion started by: vineetbhati
2 Replies

9. UNIX for Advanced & Expert Users

Process(s) ID waiting on IO?

Hello Experts!! My CPU is waiting a lot (around 33%) on I/O. I would like to find out what process(s) are waiting on the i/o. Below is my real time output of vmstat and sar. Thanks for you help !!!! Regards Citrus OS: AIX - 5L : /u2/oracle >oslevel 5.3.0.0 : /u2/oracle... (9 Replies)
Discussion started by: Citrus143
9 Replies

10. Linux

waiting process

how to know the information of the waiting process how to calculate the time of the process that it has taken to execute i want to make a program that Should be able to keep a log of the processes expired(The log should contain the starting time, expiry time, time slices used, total execution... (2 Replies)
Discussion started by: shukla_chanchal
2 Replies
Login or Register to Ask a Question