LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2010, 07:04 PM   #1
i.you
Member
 
Registered: Oct 2006
Posts: 46

Rep: Reputation: 15
System activity monitoring tools


Hi

System activity monitoring tools - top, iotop, ntop, sar, collectl, etc - may be a good reference to judge the system activity when the system transitions to sleep state.
But if I make the system transition to sleep state when i/o activity is zero during 15 minutes, for example, it won't sleep forever because slight i/o by daemons, etc occurs continuously even if no user i/o.
So how can I judge the system activity to change the state by using those tools?

Thanks in advance.
 
Old 02-08-2010, 08:07 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Normally you're not going to be performing detailed system monitoring on a machine that you expect to enter a "sleep state" (which to me implies a laptop or desktop). Can you talk more about the specifics of what you are trying to accomplish?
 
Old 02-08-2010, 09:41 PM   #3
i.you
Member
 
Registered: Oct 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for your reply.

I'm going to write a power saving tool which change a machine (laptop or desktop) to sleep state.
The state will be changed automatically when no system activity during some periods, and a problem is how to judge the system activity.
What I'm thinking are
cpu/memory activity
i/o activity
and network activity
,and there are several monitoring tools for each.
So I'm trying to judge the system activity through such a tool, that is, if both i/o read and i/o write are zero during some periods that results from "sar", for example, the power saving tool judge the system is inactive and change it to a sleep state.
But output from "sar" says that both i/o read and i/o write are always not zero. This is because slight i/o by daemons, etc occurs continuously even if no user i/o.

Cpu/memory and network activity are also similar.

I wonder how can I determine the system activity by using such a tool.

Last edited by i.you; 02-08-2010 at 09:46 PM.
 
Old 02-10-2010, 09:22 AM   #4
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
This is indeed a tricky one because if your tool is running on the system IT will be generating system activity. Running something like collectl would let you look at a lot of things but it too would generate activity. I'm wondering if looking at the interrupts might help? Of course there are always clock interrupts even on an idle system and other things would also generate noise as well, so this may prove to be an impossible task, or at least a very complex one.
-mark
 
Old 02-10-2010, 09:49 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by markseger View Post
This is indeed a tricky one because if your tool is running on the system IT will be generating system activity.
Good one. To make it even worse not all system activity is equally important that it should keep a machine from entering ACPI sleep state, right?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 9 of the Best Free Linux System Monitoring Tools LXer Syndicated Linux News 0 07-12-2009 12:01 AM
Understanding System Performance Monitoring Tools Output SentiBlue Linux - Newbie 3 09-12-2008 04:35 PM
Tools for system monitoring Mleahy Linux - Software 1 03-11-2008 11:37 PM
PC monitoring activity ariosma Linux - Networking 2 10-18-2006 11:20 PM
System Monitoring Tools Better Than Top LinuxGeek Linux - Software 2 07-29-2005 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration