LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 06-15-2009, 12:10 AM   #1
mike11
Member
 
Registered: Apr 2009
Posts: 222

Rep: Reputation: 17
Reducing harddisk usage (Debian Lenny)


Hi All,

It seems the harddisk (HD) is being accessed every 4-5 seconds, which seems too frequent.

Doing sysctl vm.block_dump=1 to log HD access shows it is mainly accessed by kjournald, rsyslog and pdflush. Are there better settings for these applications to reduce their HD access?.

I've looked at:
-laptop-mode-tools
-mounting partitions with the `relatime' option.
but they don't seem to make a difference.

Cheers,
Mike.
 
Old 06-15-2009, 04:57 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I don't think it's what you are looking for, but you chould check the debian wiki under Aspire One. but that is for reducing disk access when using SSD (Solid State Disk Drives)

also look at the swappiness setting.

What are you doing when you see this activity ? or is this when the system is sitting idle ?
 
1 members found this post helpful.
Old 06-15-2009, 05:36 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
I believe that the kernel runs "sync" every 5 seconds. But, that shouldn't cause an access unless you are actually doing something. So, do you have a DVD inserted, or do you not have DMA enabled on your hard drive?
 
1 members found this post helpful.
Old 06-16-2009, 05:35 AM   #4
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
Thanks farslayer and Quakeboy02.

I've added the `noatime' option to fstab.
This is another link:
http://bulma.net/body.phtml?nIdNoticia=1511

Most of the read/writes are something like:
[ 609.767532] kjournald(1059): WRITE block 309611264 on sda1
[ 609.767534] kjournald(1059): WRITE block 309611272 on sda1
[ 609.767536] kjournald(1059): WRITE block 309611280 on sda1
[ 609.767538] kjournald(1059): WRITE block 309611288 on sda1
[ 609.767540] kjournald(1059): WRITE block 309611296 on sda1
[ 609.767541] kjournald(1059): WRITE block 309611304 on sda1
[ 609.767543] kjournald(1059): WRITE block 309611312 on sda1
[ 609.767545] kjournald(1059): WRITE block 309611320 on sda1
[ 609.767547] kjournald(1059): WRITE block 309611328 on sda1
[ 609.767549] kjournald(1059): WRITE block 309611336 on sda1
[ 609.767551] kjournald(1059): WRITE block 309611344 on sda1
[ 609.768934] kjournald(1059): WRITE block 309611352 on sda1
[ 612.146205] pdflush(179): WRITE block 344987712 on sda1
[ 612.146218] pdflush(179): WRITE block 344987760 on sda1
[ 612.146230] pdflush(179): WRITE block 344035864 on sda1
[ 612.146236] pdflush(179): WRITE block 344035872 on sda1
[ 612.146250] pdflush(179): WRITE block 344041152 on sda1
[ 612.146176] rsyslogd(2499): dirtied inode 10724218 (syslog) on sda1
[ 612.146176] rsyslogd(2499): dirtied inode 10724218 (syslog) on sda1

so the main culprits kjournald, pdflush and rsyslogd. I don't see a big difference with the noatime option, though.

Quakeboy02: I don't a CD/DVD inserted. How do I check/set DMA access for the HD?.

Cheers,
Mike.

Last edited by mike11; 06-16-2009 at 05:37 AM.
 
1 members found this post helpful.
Old 06-17-2009, 04:01 PM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,617

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
Quote:
Originally Posted by mike11 View Post
Thanks farslayer and Quakeboy02.

so the main culprits kjournald, pdflush and rsyslogd. I don't see a big difference with the noatime option, though.

Quakeboy02: I don't a CD/DVD inserted. How do I check/set DMA access for the HD?.

Cheers,
Mike.
http://www.lesswatts.org has a good discussion of this stuff. I read it and added these to rc.local

echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo 5 > /proc/sys/vm/laptop_mode
/usr/bin/hal-disable-polling --device /dev/hda
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings

Don't ask me to explain it now! The last line, btw, throws an error.
 
1 members found this post helpful.
  


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: Reducing Your Memory Usage in Firefox LXer Syndicated Linux News 1 04-12-2006 11:42 PM
My harddisk usage is 91% but I cannot figure out what occupies so much space... Niceman2005 Linux - General 6 11-01-2005 03:02 AM
harddisk usage woodland56 Debian 3 09-19-2005 09:16 PM
Reducing Debian Installation Size??? kushalkoolwal Debian 18 08-15-2005 02:58 PM
reducing RAM usage Furlinastis Slackware 21 04-02-2005 01:53 PM


All times are GMT -5. The time now is 03:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration