Which process is doing all the writing

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Which process is doing all the writing
# 1  
Old 09-01-2009
Which process is doing all the writing


We are running an IBM P570 with AIX and Unidata.

The disk monitor in nmon is showing that one of our logical volumes is hitting 100% most of the time, and that 98% of it is write.

I am trying to identify the top processes in terms of disk IO, obviously particularly write so that we can get the developers to look at the code.

Can anybody help me?

# 2  
Old 09-01-2009
Could be swap space...
To check:
lsps -a

What is on that lvol?
to see who is using (open files...) the filesystem use the fuser command
# 3  
Old 09-01-2009
Originally Posted by vbe
Could be swap space...
To check:
lsps -a

What is on that lvol?
to see who is using (open files...) the filesystem use the fuser command

Thanks - Done this and the swap space in hdisk0...

The hdisk2 volume contains our unidata database files.
# 4  
Old 09-01-2009
The hdisk2 is not a logical volume but a physical volume (LUN probably...)
to see what it holds (in term of logical volume / filesystem ): e.g.
on4:/home/vbe $ lspv hdisk2
PHYSICAL VOLUME:    hdisk2                   VOLUME GROUP:     vg01
PV IDENTIFIER:      00cb574e8531bb48 VG IDENTIFIER     00cb574e00004c000000011589f89af3
PV STATE:           active                                     
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            64 megabyte(s)           LOGICAL VOLUMES:  7
TOTAL PPs:          945 (60480 megabytes)    VG DESCRIPTORS:   1
FREE PPs:           0 (0 megabytes)          HOT SPARE:        no
USED PPs:           945 (60480 megabytes)    MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION:  00..00..00..00..00                         
USED DISTRIBUTION:  189..189..189..189..189                    
on4:/home/vbe $ lspv -l hdisk2
LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT
lv106                 8     8     00..00..00..00..08    /data/systeme
lv105                 2     2     00..00..00..00..02    /var/opt/ofa/pof1
lv102                 2     2     00..00..00..00..02    /data/ofa/pof1/cm/admin/pof1/int-pbdg
lv101                 2     2     00..00..00..00..02    /data/ofa/pof1/cm/admin/pof1/out
lv104                 11    11    00..00..00..00..11    /opt/ofa
lv103                 10    10    00..00..00..00..10    /data/ofa/export
lv100                 910   910   189..189..189..189..154 /data/ofa/pof1

Then you can use the fuser command, do a man of lsps, lspv, lslv, lsvg, fuser

all the best
# 5  
Old 09-02-2009
I assume that is where journaling is done - I don't know much about unidata but as far as I understand this is a bit like the redo-logs. If you have a bad distribution of your filesystems, this can easily produce a hot disk.

filemon and fileplace commands could give you more information about what is on the disk - and if you have nmon on your box, you can sort by IO or you can use
ps vx | head -1; ps vx | grep -v PID | sort -rn +4 | head -10

to find your top IO consumer processes.

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

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies

2. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

3. Open Source

Help with writing Shell Script to automate process using multiple commands

Hello! Need help to write a Linux script that can be run from windows using command/Cygwin/any other way. I am new to scripting, actually i am trying to automate server health check like free disk space, memory along with few services status, if any services is not running then start services ,... (7 Replies)
Discussion started by: Sayed Ibrahim
7 Replies

4. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

5. UNIX for Dummies Questions & Answers

Writing a loop to process multiple input files by a shell script

I have multiple input files that I want to manipulate using a shell script. The files are called 250.1 through 250.1000 but I only want the script to manipulate 250.300 through 250.1000. Before I was using the following script to manipulate the text files: for i in 250.*; do || awk... (4 Replies)
Discussion started by: evelibertine
4 Replies

6. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

7. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

8. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

9. UNIX for Advanced & Expert Users

What process is writing to disk?

What program can I use to determine what process is writing to disk? I've got a Linux server and iostat reports something is writing to the system drive: Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda 0.00 169.83 ... (26 Replies)
Discussion started by: otheus
26 Replies

10. Shell Programming and Scripting

Which Process is writing this Log file!!

Hello , Well I have some /tmp files which are growing very quickly..Can anyone suggest me a way to find which process is logging into this file :confused: ? Thanks very much in Advance!! Mohammed (2 Replies)
Discussion started by: Mohammed
2 Replies
Login or Register to Ask a Question