cancel
Showing results for 
Search instead for 
Did you mean: 

process status

 
SOLVED
Go to solution
himacs
Super Advisor

process status

our backup team have a script which zip dumpfiles and runs automatically every midnite.

NOw i can see that gzip process is running but its not showing in top output.When i checked the path where dump file is zipped,from last 10 minutes the file size is constant,not varrying.

Please tell me the gzip process is running or hung state? Because of this file system usage crossed 95% which is very critical.


Regards
himacs
10 REPLIES
Raj D.
Honored Contributor

Re: process status

himacs,

Check with ps command if the prcess still running, if it is using gzip you will see the gzip processes :
# ps -ef | grep -i gzip


You can track it from there.

or check if the scrip has been executed:
Check the crontab log file: (look for the script name)
in /var/adm/cron/log

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: process status

Als once you find out the process pid :run a tusc session on the pid and see if it is doing read write or in a sleeping state . A sleeping state represents the process is not doing anything at that moment.:

# ps -ef | grep gzip
# tusc

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: process status

Himacs, you can also check the script if there is any logfile it is maintaining by appending its activity of gzipping the dump files to the logfile.

If you are running 11.31 you can trace th child process by # ptree and you will have a clear visibility.
gzip takes lot of system resources and usually it is seen in the top of the top screen. If not may be process finished or not enough resource or in the queue.
Also check the syste load with # uptime .

Hth,

" If u think u can , If u think u cannot , - You are always Right . "
Steven E. Protter
Exalted Contributor

Re: process status

Shalom himacs,

The obvious conclusion from the initial post is that the gzip process is running but is not doing anything.

It could however be waiting for I/O and therefore not showing on top.

It should show up on any one of the previous ps commands provided above in this thread.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
himacs
Super Advisor

Re: process status

Hi Raj,

Thanx for the response..

Actually zipping is happening.NOw FS usage is fine.But gzip process not shown in top output.Since the same FS is related to cluster,its critical one.
and man tusc shows no manual entry.
Is there any other command to show process status,whether its running or hung


regards
himacs
himacs
Super Advisor

Re: process status

Hi SEP,

Thanx for the response.

Actually ps -ef|grep gzip shows the process details.The same i missed to mention in my initial post.

regards
himacs
Raj D.
Honored Contributor

Re: process status

do you see anything with: # top -s2 -d2 | grep gzip
" If u think u can , If u think u cannot , - You are always Right . "
himacs
Super Advisor

Re: process status

Yes Raj,

Its showing list of processes with gzip on top.

Regards
himacs
Raj D.
Honored Contributor

Re: process status

Himacs,
Another way to trace:,

If you know the dump file locaton:
- cd /dumpfile_location
- do fuser -u *.dmp // or # fuser -u filename.dmp
- look at the pid associated with it. (It will show the pid if the dump file is in use by gzip)
- grep the pid in ( ps -ef | grep )
- Then you will be able to trace it if the dump file is in use by the gzip script.

Hth,
" If u think u can , If u think u cannot , - You are always Right . "
Michael Steele_2
Honored Contributor
Solution

Re: process status

Hi

This is probably more like how to check state of a process

ps -ef -o state,pid,ppid,wchan,comm | grep -i zip

states of a process:

0 Nonexistent
S Sleeping
W Waiting
R Running
I Intermediate
Z Terminated
T Stopped
X Growing

WCHAN
The event for which the process is waiting or sleeping; if there is none, a hyphen (-) is displayed.

ppid - parent process

comm - command in execution
Support Fatherhood - Stop Family Law