![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Desktop Environments Support for your Ubuntu desktop. Including Gnome, KDE and XFCE. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2005
Location: Leander, TX
Beans: 15
Ubuntu Breezy 5.10
|
Q ~ Tuning ext3 reads down
Hello,
I'm using the ext3 file system and it schedules a "read" from my disk every 5 seconds, which is annoying. How do you adjust this to something like once every minute. Will tune2fs do this? TIA. |
|
|
|
|
|
#2 |
|
Just Give Me the Beans!
![]() Join Date: Mar 2006
Location: Germany
Beans: 58
Ubuntu 7.10 Gutsy Gibbon
|
Re: Q ~ Tuning ext3 reads down
you could try adding the "noatime"-Option to your /etc/fstab.
before: Code:
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/hdc8 UUID=e8980666-9087-478a-89bb-710a00186e25 / ext3 defaults,errors=remount-ro 0 1 # /dev/hdc10 UUID=0fd4d361-6065-4c84-8dc0-04d07743e0ad /home ext3 defaults 0 2 # /dev/hdc7 UUID=5d241d90-4001-4a53-aede-b4cd76a4eef7 none swap sw 0 0 /dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0 after: Code:
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/hdc8 UUID=e8980666-9087-478a-89bb-710a00186e25 / ext3 defaults,noatime,errors=remount-ro 0 1 # /dev/hdc10 UUID=0fd4d361-6065-4c84-8dc0-04d07743e0ad /home ext3 defaults.noatime 0 2 # /dev/hdc7 UUID=5d241d90-4001-4a53-aede-b4cd76a4eef7 none swap sw 0 0 /dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
__________________
xkcd |
|
|
|
|
|
#3 | |
|
Just Give Me the Beans!
![]() Join Date: Mar 2006
Location: Germany
Beans: 58
Ubuntu 7.10 Gutsy Gibbon
|
Re: Q ~ Tuning ext3 reads down
Hi there!
Here's the solution (I guess): The 5 seconds are the commit interval. This is the standard behaviour. You can check this in your syslog. here the ext3.txt from the kernel documentation (<kernel dir>/Documentation/filesystems/ext3.txt: Quote:
(in the following mini-HOWTO are added more performance options, if you don't want them then only add the "commit=seconds" option (in the same order though) 1st step Take your /etc/fstab and add these options for your /root (and/or /home etc) partition: Code:
(previous options...),noatime,nodiratime,nobh,data=writeback,commit=100 2nd step To make data=writeback and the new commit interval work get your /boot/grub/menu.lst See the "defoptions=" line and add (e.g. after "ro quiet splash") --> Code:
quiet splash rootflags=data=writeback,nobh,commit=100 Then Code:
sudo update-grub For data=writeback, the last step before rebooting is (works with mounted filesystem Code:
sudo tune2fs -o journal_data_writeback /dev/hd(...) finally... Then do a reboot. However, the specific option you were looking for is the "commit=sec" options. The value is measured is seconds. caution! I had several crashes (not linux' fault Appendix PS: My posting seems quite confusing, I guess. So here are the specific example lines/files: /etc/fstab: Code:
/dev/hdc2 / ext3 defaults,errors=remount-ro,data=writeback,noatime,nodiratime,nobh,commit=100 0 1 /boot/grub/menu.lst Code:
(...) ## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash rootflags=data=writeback,nobh,commit=100 (...) ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single rootflags=data=writeback ####for the alt options only the data=writeback options is necessary (...) Be sure, to have e.g. a live cd to access the system if you make at typing error or so in one of these config files. WARNING (again) of possible several data loss. Do at your own risk. This is recommended for laptops and/or desktop systems. Don't do this on servers! DON'T MAKE A TYPING ERROR BY MIXING UP tune2fs with mke2fs!!! This happened once to me and will erase all your data. more information Kernel-Documentation (mostly <directories to kernel>/Documentation/filesytems/ext3.txt very interesting manpages: tune2fs
__________________
xkcd |
|
|
|
|
|
|
#4 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2007
Beans: 28
Ubuntu 7.10 Gutsy Gibbon
|
Re: Q ~ Tuning ext3 reads down
Hei ChrisNiemy!
Your solution has worked for me! I have written "noatime" in fstab for root partition, this will avoid the usage of disk every 5 sec I was very worried... because I need my linux for my everyday work. Thank you Vincenzo |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|