Thanks Tim (off list) David and Joe<br><br>regards<br>mark<br><br><br>
<br><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 7:14 PM, Joseph Salisbury <span dir="ltr"><<a href="mailto:josephtsalisbury@gmail.com">josephtsalisbury@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;">
<div class="im">On Fri, Nov 13, 2009 at 2:12 PM, Joseph Salisbury<br>
<<a href="mailto:josephtsalisbury@gmail.com">josephtsalisbury@gmail.com</a>> wrote:<br>
> On Fri, Nov 13, 2009 at 9:14 AM, Mark van Harmelen<br>
> <<a href="mailto:markvanharmelen@gmail.com">markvanharmelen@gmail.com</a>> wrote:<br>
>> 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<br>
>> interest, basically one that is busy transforming the contents of a mysql<br>
>> 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<br>
>> me to start my investigations with, please.<br>
><br>
> If you haven't already, install the sysstat package:<br>
><br>
> sudo apt-get install sysstat<br>
><br>
> This will give you some tools to gather performance statistics.  To<br>
> start you need to identify where the bottleneck is.  Use cpustat to<br>
> see if you are cpu bound, iostat to see if you are disk bound, vmstat<br>
> for pageing / memory stats, etc.<br>
<br>
</div>Woops: s/cpustat/mpstat/g :-)<br>
<div><div></div><div class="h5"><br>
><br>
> For more detailed analysis, you can install and use profiling tools<br>
> such as oprofile or systemtap.<br>
><br>
>><br>
>> Or any strategies, words of advice, or (instructional) sources that you<br>
>> found useful in tuning your own systems.<br>
><br>
> This can be an open ended question when it comes to performance<br>
> tuning.  The very simple answer is find your bottleneck and fix it.<br>
> There will always be a bottleneck and it will always move to another<br>
> resource once you fix it.  The goal is to have your cpu become the<br>
> bottleneck(Then continue to tune your application).<br>
><br>
> It is best to try and tune your application first to use the available<br>
> resource most efficiently.  Don't just add more memory because your<br>
> swapping.  First identify why the process is consuming so much memory<br>
> in the first place.<br>
><br>
> Hope this helps,<br>
><br>
> Joe<br>
><br>
>><br>
>> thanks<br>
>> mark<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><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>
>><br>
><br>
</div></div></blockquote></div><br>