LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-29-2007, 05:41 AM   #1
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Rep: Reputation: 16
Why does GKrellM or lm_sensors write to disk?


On my system I had ~400k disk writes every three seconds and this was really starting to annoy me, so today I decided to find out where they came from.

I have now tracked them to the "nVidia GPU Core" sensor in my GKrellM setup. Once I removed that one, the writes stopped.

Does anyone know why either GKrellM or lm_sensors would need to write that much to disk? I thought it was supposed to be a monitor?
 
Old 03-29-2007, 10:13 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
No idea I use Gkrellm myself, and lm_sensors runs on bootup, and I've never seen that. I also use an nVidia card, though I don't recall off the top of my head whether my gKrell has a provision for monitoring the AGP card..
My guess would be merely the way 'something' is configured, making it log stuff on an extremely regular basis .
What exactly was the contents of the files/logs being written? What sort of stuff was it saving?
 
Old 03-29-2007, 11:54 AM   #3
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by GrapefruiTgirl
My guess would be merely the way 'something' is configured, making it log stuff on an extremely regular basis .
Yes I was thinking that as well, but 400k is a pretty big log file isn't it? Besides, I didn't see any option regarding the log frequency in the gkrellm setup. Does lm_sensors do logs as well?
Quote:
Originally Posted by GrapefruiTgirl
What exactly was the contents of the files/logs being written? What sort of stuff was it saving?
No idea. Is there any way to find out? I only found out that it was GKrellM by deleting one process at a time until the writing stopped. (And of course since I was looking at GKrellM to notice if the disk writing changed, it was one of the last processes to kill. )

Edit: Just some additional information: there's no log file in the .gkrellm directory, and none of the log files in the /var/log directory have been modified that recently.

Last edited by galle; 03-29-2007 at 12:00 PM.
 
Old 03-29-2007, 12:04 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hmm..
Well, I guess the logsize is relative, though I suppose 400k is pretty large to be written every 3 seconds definitely!
I don't know if lm_sensors itself actually logs anything, at least my installation does not, however it's possible though unlikely that maybe the syslog daemon is doing the logging..
Perhaps adding a line like this:
*.* /dev/tty12
to the syslog.conf file *might* give an indication of what's going on every 3 seconds.
To use this addition to syslog, add it to the file, save it, and restart the syslogger daemon. Then CTRL-ALT-F12 to see tty12 where everything syslog catches will be logged to the screen.
It might help identify what's doing what.

As to finding out what's being saved to what file, of course it will help to know where to locate the file first. But a place to start would be /var/log/ or /var/adm/.
 
Old 03-29-2007, 12:23 PM   #5
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 16
Well, nothing changes in the /var/log/ directory. /var/adm/ doesn't exist on my system. Also syslog is not involved, because it was one of the first processes I killed, and the disk writing continued.
 
Old 03-29-2007, 01:25 PM   #6
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 16
To try and locate the file that is written, I activated the sensor again, let it write a couple of times, and then ran
Code:
panter:/# ls -l -R | grep "2007-03-29 20:16"
but apparently nothing was created or modified at that time even though that was the time when the sensor was active...
 
Old 03-29-2007, 03:35 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Interesting, and good try!
I don't know what to suggest, other than *maybe* checking the nVidia Forum at www.nvidia.com or seeing if there's any contact address or developer site for gkrellm where you could pose the question? Maybe indirectly through Sourceforge or wherever gkrellm comes from?
 
Old 03-29-2007, 03:48 PM   #8
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 16
Yes, I'll ask around a bit, perhaps also in the debian forum. Luckily it's not something I can't live without

Thanks a lot for your help and suggestions, I really appreciate it!
 
  


Reply



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
getting lm_sensors to work in gkrellm PennyroyalFrog Linux - Software 3 02-27-2006 11:05 AM
Monitor disk space without gkrellm BroX Slackware 3 02-24-2006 03:21 PM
monitoring disk activity in GKrellM ScottReed Linux - Software 1 02-04-2006 04:18 PM
Cant write to disk joff Linux - Newbie 11 04-16-2005 03:05 AM
Can't get lm_sensors to work with GKrellM Ducl Debian 7 06-29-2004 11:27 PM

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

All times are GMT -5. The time now is 04:02 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