iostat - will show you what sort of IO operations are going on<br>vmstat - will show you whats happening in the memory management of the system<br>top - will show you cpu activity broken down by processes<br><br>There is some overlap in the data from these tools but those are a good place to start.<br>
<br>Other things that may be interesting to look into is what IO schedulers you're using. Deadline may be better for your workload than the default CFQ.<br><p>To list the available io schedulers use this command.</p>
<p>cat /sys/block/sdb/queue/scheduler<br>
This should return "noop anticipatory deadline [cfq]"</p>
<p>To change your scheduler to deadline use the following command on the appropriate device.</p>
<p>sudo echo "deadline" > /sys/block/sdb/queue/scheduler</p>--<br>David<br><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 9:14 AM, Mark van Harmelen <span dir="ltr"><<a href="mailto:markvanharmelen@gmail.com">markvanharmelen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi everyone<br><br>I've never done this before so all hints would be gratefully received. <br>
<br>We are running a 9.04 server, with a single unthreaded process that is of interest, basically one that is busy transforming the contents of a mysql db. I want to find out if we can improve the performance of this process. <br>
<br>Seems potential limitations are <br><br>- limited by CPU speed<br>- limited by access to mysql data on disc<br>- limited by memory size, and therefore spending its time paging<br><br>I'm wondering if anyone has any great commands and/or command options for me to start my investigations with, please. <br>
<br>Or any strategies, words of advice, or (instructional) sources that you found useful in tuning your own systems.<br><br>thanks<br><font color="#888888">mark<br><br><br><br><br><br><br>
</font><br>--<br>
ubuntu-server mailing list<br>
<a href="mailto:ubuntu-server@lists.ubuntu.com">ubuntu-server@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-server" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-server</a><br>
More info: <a href="https://wiki.ubuntu.com/ServerTeam" target="_blank">https://wiki.ubuntu.com/ServerTeam</a><br></blockquote></div><br>