Re: [CentOS] Finding wich files a writen to

2011-05-09 Thread John Doe
From: Nicolas Ross > With iostat, I find that it's almost a write i/o problem. How can I find to > which files the OS writes ? On OSX boxes, there is a utility called fs_usage > that can reports any disk activity for a particular process or all > processes. Is there any utility like this on

Re: [CentOS] Finding wich files a writen to

2011-05-08 Thread Rajagopal Swaminathan
Greetings, On Thu, May 5, 2011 at 2:21 PM, wrote: > On Wed, May 04, 2011 at 12:17:15PM -0400, Nicolas Ross wrote: >> Hi ! >> >> With iostat, I find that it's almost a write i/o problem. How can I find to >> which files the OS writes ? On OSX boxes, there is a utility called fs_usage >> that can

Re: [CentOS] Finding wich files a writen to

2011-05-05 Thread przemolicc
On Wed, May 04, 2011 at 12:17:15PM -0400, Nicolas Ross wrote: > Hi ! > > I have a server (Centos 5) that is using a pair of SAS drives to store the > data. (Mail server) They are on an adaptec raid controler with a battery > backup and write back cache active. > > >From time to time, I have sev

Re: [CentOS] Finding wich files a writen to

2011-05-04 Thread Marian Marinov
On Thursday 05 May 2011 05:24:10 Marcelo Beckmann wrote: > 2011/5/4 Nicolas Ross : > > Hi ! > > > > I have a server (Centos 5) that is using a pair of SAS drives to store > > the data. (Mail server) They are on an adaptec raid controler with a > > battery backup and write back cache active. > > >

Re: [CentOS] Finding wich files a writen to

2011-05-04 Thread Nicolas Ross
(...) > This is excellent, and sooo clever... Except that I don't have the > /proc/*/fdinfo directories. It seems that theses directories appeared in > 2.6.22, and, since I am in centos5, I only have 2.6.18... > > I tested it on SL6 machine, and it works perfectly... Upgrade is not an > option for

Re: [CentOS] Finding wich files a writen to

2011-05-04 Thread Marcelo Beckmann
2011/5/4 Nicolas Ross : > Hi ! > > I have a server (Centos 5) that is using a pair of SAS drives to store the > data. (Mail server) They are on an adaptec raid controler with a battery > backup and write back cache active. > > >From time to time, I have sever peak io to those data disks (> 400 to 5

Re: [CentOS] Finding wich files a writen to

2011-05-04 Thread Nicolas Ross
> Just out of curiosity I decided to write a simple script which checks all the > files from all pids on the system. > > Here is what I got: >http://hydra.azilian.net/scripts/read_fds.pl > > The idea is to read all the /proc/PID/fdinfo/ files and check the difference > in > the pos lines (the

Re: [CentOS] Finding wich files a writen to

2011-05-04 Thread Marian Marinov
On Wednesday 04 May 2011 21:01:03 Jorge Fábregas wrote: > On 05/04/2011 12:17 PM, Nicolas Ross wrote: > > iotop can points me to wich process, but that doesn't points me to what > > files are the culprits... > > A rough way would be to change to the top-level directory where you > suspect the file

Re: [CentOS] Finding wich files a writen to

2011-05-04 Thread Jorge Fábregas
On 05/04/2011 12:17 PM, Nicolas Ross wrote: > iotop can points me to wich process, but that doesn't points me to what > files are the culprits... A rough way would be to change to the top-level directory where you suspect the files are being written and perform: find . -type f -mmin -1 (tha

[CentOS] Finding wich files a writen to

2011-05-04 Thread Nicolas Ross
Hi ! I have a server (Centos 5) that is using a pair of SAS drives to store the data. (Mail server) They are on an adaptec raid controler with a battery backup and write back cache active. >From time to time, I have sever peak io to those data disks (> 400 to 500 iops, > 70 to 100 megs/sec).