Re: [Server-devel] logging performance

2009-07-16 Thread Dave Bauer
On Wed, Jul 15, 2009 at 3:23 PM, Sameer Vermasve...@sfsu.edu wrote:
 Any suggestions on how to log data on RAM and CPU usage on the XS? I've
 looked at mem.py and top variants, but I want something that logs at x
 intervals to a file that I can pull into a spreadsheet. I have munin running
 on the xs, but it is not fine-grained enough to show variations, say every
 10 seconds or so.

 Suggestions?

We are using SAR on jabber.sugarlabs.org http://linux.die.net/man/1/sar
I modied a cron job to log every minute, you can adjust as necessary.

It is in /etc/cron.d/sysstat
# Run system activity accounting tool every 10 minutes
*/1 * * * * root /usr/lib/sa/sa1 -d 1 1

Dave

 --
 Dr. Sameer Verma, Ph.D.
 Associate Professor of Information Systems
 San Francisco State University
 San Francisco CA 94132 USA
 http://verma.sfsu.edu/
 http://opensource.sfsu.edu/

 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel





-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] logging performance

2009-07-15 Thread Sameer Verma
Any suggestions on how to log data on RAM and CPU usage on the XS? I've
looked at mem.py and top variants, but I want something that logs at x
intervals to a file that I can pull into a spreadsheet. I have munin running
on the xs, but it is not fine-grained enough to show variations, say every
10 seconds or so.

Suggestions?

-- 
Dr. Sameer Verma, Ph.D.
Associate Professor of Information Systems
San Francisco State University
San Francisco CA 94132 USA
http://verma.sfsu.edu/
http://opensource.sfsu.edu/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] logging performance

2009-07-15 Thread Martin Langhoff
On Thu, Jul 16, 2009 at 7:23 AM, Sameer Vermasve...@sfsu.edu wrote:
 Any suggestions on how to log data on RAM and CPU usage on the XS? I've
 looked at mem.py and top variants, but I want something that logs at x
 intervals to a file that I can pull into a spreadsheet. I have munin running
 on the xs, but it is not fine-grained enough to show variations, say every
 10 seconds or so.

Probably worth a small patch to ps_mem.py (which is more accurate
per-process than other methods) to make it run continuosly and give
you CSV output. Or a cron on ps_mem.py  /var/log/mem.log

(I'd patch this myself now, but I'm about to hit the road, so packing.)



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] logging performance

2009-07-15 Thread rihowa...@gmail.com

Sameer,

Have you looked at RRDtool ? It is my understanding it can log at 1  
second intervals.
You can find it at http://oss.oetiker.ch/rrdtool/index.en.html along  
with tutorials.


Some good example scripts using RRDtool can be found at http:// 
computingplugs.com/index.php/SheevaPlug_Real_time_Statistics#Scripts


Scroll up on that page to see live graphical output from the scripts.

rihowa...@gmail.com

linux - the best things in life are free





On Jul 15, 2009, at 12:23 PM, Sameer Verma wrote:

Any suggestions on how to log data on RAM and CPU usage on the XS?  
I've looked at mem.py and top variants, but I want something that  
logs at x intervals to a file that I can pull into a spreadsheet. I  
have munin running on the xs, but it is not fine-grained enough to  
show variations, say every 10 seconds or so.


Suggestions?

--
Dr. Sameer Verma, Ph.D.
Associate Professor of Information Systems
San Francisco State University
San Francisco CA 94132 USA
http://verma.sfsu.edu/
http://opensource.sfsu.edu/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel