Hi Nicolas,<div><br></div><div>While this doesn't exactly answer your question, I was wondering what scheduler you were using on your GFS2 (Note: I have not used this file system before) block. You can find this by issuing 'cat /sys/block/<insert block device>/queue/scheduler' ?</div>
<div><br></div><div>By default the system uses cfq, which will show up as [cfq] when catting the scheduler as I showed above. This is not the most optimal scheduler for a webserver. In most cases you'd be better off with deadline or noop. Not being familiar with GFS2 myself, I did skim this article, which makes me think noop would be the better choice:</div>
<div><br></div><div><a href="http://www.redhat.com/archives/linux-cluster/2010-June/msg00027.html">http://www.redhat.com/archives/linux-cluster/2010-June/msg00027.html</a></div><div><br></div><div> This could be why you are seeing the processes waiting on I/O.</div>
<div><br></div><div><br></div><div>Chad M. Gross<br>
<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 2:55 PM, Nicolas Ross <span dir="ltr"><<a href="mailto:rossnick-lists@cybercat.ca">rossnick-lists@cybercat.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi list !<br>
<br>
We have a very busy webserver hosted in a clustered environment where the<br>
document root and data is on a GFS2 partition off a fiber-attached disk<br>
array.<br>
<br>
Now on busy moments, I can see in htop, nmon that there is a fair percentage<br>
of cpu that is waiting for I/O. In nmon, I can spot that the most busy block<br>
device correspond to our gfs2 partition where many times, it shows that it's<br>
100% busy and is read all along.<br>
<br>
Now, I want to know what files are being waited for. With lsof I can get a<br>
listing of open files, but it doesn't gives me if a file is just opended in<br>
ram or if it's being waited for...<br>
<br>
What tools besides lsof, nmon, htop, atop can help me find that info ?<br>
<br>
I am under RHEL/CentOS 6.1.<br>
<br>
Thanks<br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br></div>