The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 13 03-06-2009 07:33 AM
Script - How to automatically start another process when the previous process ends? luna_soleil Shell Programming and Scripting 10 02-18-2009 12:26 PM
What process is writing to disk? otheus UNIX for Advanced & Expert Users 26 10-30-2008 05:57 AM
Killing of a process and send a mail if the process doesnot come up within 2 minutes Prince89 Shell Programming and Scripting 1 02-15-2008 07:10 PM
Which Process is writing this Log file!! Mohammed Shell Programming and Scripting 2 11-06-2006 08:08 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-01-2009
idwalton72 idwalton72 is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 2
Which process is doing all the writing

Hi

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?

Thanks
  #2 (permalink)  
Old 09-01-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,577
Could be swap space...
To check:

Code:
lsps -a

What is on that lvol?
to see who is using (open files...) the filesystem use the fuser command
  #3 (permalink)  
Old 09-01-2009
idwalton72 idwalton72 is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 2
Quote:
Originally Posted by vbe View Post
Could be swap space...
To check:

Code:
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 (permalink)  
Old 09-01-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,577
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.

Code:
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
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 (permalink)  
Old 09-02-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Staff  
Moderator
  
 

Join Date: May 2008
Location: /etc/objrepos
Posts: 303
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

Code:
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
zxmaus
Reply

Bookmarks

Tags
aix, disk, io, process, unidata

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0