* Re: Re: reiserfs do_journal_end unnecessary hd wake up? [not found] <loom.20080904T211127-782@post.gmane.org> @ 2008-09-04 22:38 ` Bráulio Barros de Oliveira 2008-09-04 23:28 ` Bráulio Barros de Oliveira 0 siblings, 1 reply; 5+ messages in thread From: Bráulio Barros de Oliveira @ 2008-09-04 22:38 UTC (permalink / raw) To: Mat; +Cc: reiserfs-devel, linux-kernel [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 3583 bytes --] thank you very much for the great instructions. i'll evaluate then andsend you the results.bráulio On Thu, Sep 4, 2008 at 6:16 PM, Mat <jackdachef@gmail.com> wrote:> ok, then try the following:>> you at least should have noatime,nodiratime,commit=600>> enabled for the reiserfs or >=ext3 filesystems>> you can also try data=writeback (but beware this might put your data at risk !)>>> select the anticipatory i/o scheduler> and set following stuff>> echo "16" > /proc/sys/vm/page-cluster> # default: 3> #>> echo "60" > /proc/sys/vm/swappiness> # default: 60> # By default, Linux will aggressively swap processes out of physical memory onto> disk in order to keep the disk cache as large as possible.> # This means that pages that haven't been used recently will be pushed into swap> long before the system even comes close to running out of memory, which is an> unexpected behavior compared to some operating systems.> # The /proc/sys/vm/swappiness parameter controls how aggressive Linux is in this> area.>> echo "3000" > /proc/sys/vm/dirty_expire_centisecs> # default: 3000 (30 seconds)> #2 how long data can be in the page cache before it is considered expired and> must be written at the next opportunity. Note that this default is very long: a> full 30 seconds. That means that under normal circumstances, unless you write> enough to trigger the other pdflush method, Linux won't actually commit anything> you write until 30 seconds later.>> echo "6000" > /proc/sys/vm/dirty_writeback_centisecs> # default: 500 (5 seconds)> #1 how often pdflush wakes up to write data to disk. The default wakes up the> two (or more) active threads every five seconds.> # suggestion: 6000 (every 60 seconds)>> echo "15" > /proc/sys/vm/dirty_background_ratio> # default: 10> #3 Maximum percentage of active memory that can be filled with dirty pages> before pdflush begins to write them>> echo "50" > /proc/sys/vm/dirty_ratio #modified> # default: 40> #4 Maximum percentage of total memory that can be filled with dirty pages before> processes are forced to write dirty buffers themselves during their time slice> instead of being allowed to do more writes.> # modified: 50>> echo "25" > /proc/sys/vm/vfs_cache_pressure>> for i in /sys/block/sd*; do> /bin/echo "anticipatory" > $i/queue/scheduler> done>> for i in /sys/block/sd*; do> /bin/echo "0" > $i/queue/iosched/antic_expire> done>> for i in /sys/block/sd*; do> /bin/echo "150" > $i/queue/iosched/read_expire> done>> for i in /sys/block/sd*; do> /bin/echo "750" > $i/queue/iosched/read_batch_expire> done>> for i in /sys/block/sd*; do> /bin/echo "1200" > $i/queue/iosched/write_batch_expire> done>> for i in /sys/block/sd*; do> /bin/echo "1024" > $i/queue/nr_requests> done>> for i in /sys/block/sd*; do> /bin/echo "256" > $i/queue/read_ahead_kb> done>> for i in /sys/block/sd*; do> /bin/echo "256" > $i/queue/max_sectors_kb> done>> for i in /sys/class/scsi_host/host*; do> /bin/echo "min_power" > $i/link_power_management_policy> done>>>>> try to disable each and every unneeded daemon or applets, programs, etc.>> by using:>> * powertop> * iotop> * htop> * top> * lsof | grep /home> * ...>>>> --> To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in> the body of a message to majordomo@vger.kernel.org> More majordomo info at http://vger.kernel.org/majordomo-info.html>ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: reiserfs do_journal_end unnecessary hd wake up? 2008-09-04 22:38 ` Re: reiserfs do_journal_end unnecessary hd wake up? Bráulio Barros de Oliveira @ 2008-09-04 23:28 ` Bráulio Barros de Oliveira 2008-09-04 23:32 ` Bráulio Barros de Oliveira 0 siblings, 1 reply; 5+ messages in thread From: Bráulio Barros de Oliveira @ 2008-09-04 23:28 UTC (permalink / raw) To: Mat; +Cc: reiserfs-devel, linux-kernel hello mat, here comes the results of each action. in all the process i've used the iotop (what a great utility you pointed!), and always saw only the pdflush process acessing the hd. no user interface were used. the apm is set to 128 with hdparm ok, then try the following: you at least should have noatime,nodiratime,commit=600 :) that did the job! also, i've tested without the commit option, which didn't changed the result. enabled for the reiserfs or >=ext3 filesystems you can also try data=writeback (but beware this might put your data at risk !) * can't try select the anticipatory i/o scheduler and set following stuff :( no change. echo "16" > /proc/sys/vm/page-cluster # default: 3 # :( no change. echo "60" > /proc/sys/vm/swappiness # default: 60 # By default, Linux will aggressively swap processes out of physical memory onto disk in order to keep the disk cache as large as possible. # This means that pages that haven't been used recently will be pushed into swap long before the system even comes close to running out of memory, which is an unexpected behavior compared to some operating systems. # The /proc/sys/vm/swappiness parameter controls how aggressive Linux is in this area. :( no change. echo "3000" > /proc/sys/vm/dirty_expire_centisecs # default: 3000 (30 seconds) #2 how long data can be in the page cache before it is considered expired and must be written at the next opportunity. Note that this default is very long: a full 30 seconds. That means that under normal circumstances, unless you write enough to trigger the other pdflush method, Linux won't actually commit anything you write until 30 seconds later. :( no change. echo "6000" > /proc/sys/vm/dirty_writeback_centisecs # default: 500 (5 seconds) #1 how often pdflush wakes up to write data to disk. The default wakes up the two (or more) active threads every five seconds. # suggestion: 6000 (every 60 seconds) :( no change. echo "15" > /proc/sys/vm/dirty_background_ratio # default: 10 #3 Maximum percentage of active memory that can be filled with dirty pages before pdflush begins to write them echo "50" > /proc/sys/vm/dirty_ratio #modified # default: 40 #4 Maximum percentage of total memory that can be filled with dirty pages before processes are forced to write dirty buffers themselves during their time slice instead of being allowed to do more writes. # modified: 50 echo "25" > /proc/sys/vm/vfs_cache_pressure for i in /sys/block/sd*; do /bin/echo "anticipatory" > $i/queue/scheduler done for i in /sys/block/sd*; do /bin/echo "0" > $i/queue/iosched/antic_expire done for i in /sys/block/sd*; do /bin/echo "150" > $i/queue/iosched/read_expire done for i in /sys/block/sd*; do /bin/echo "750" > $i/queue/iosched/read_batch_expire done for i in /sys/block/sd*; do /bin/echo "1200" > $i/queue/iosched/write_batch_expire done for i in /sys/block/sd*; do /bin/echo "1024" > $i/queue/nr_requests done for i in /sys/block/sd*; do /bin/echo "256" > $i/queue/read_ahead_kb done for i in /sys/block/sd*; do /bin/echo "256" > $i/queue/max_sectors_kb done for i in /sys/class/scsi_host/host*; do /bin/echo "min_power" > $i/link_power_management_policy done try to disable each and every unneeded daemon or applets, programs, etc. by using: * powertop * iotop * htop * top * lsof | grep /home * ... ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: reiserfs do_journal_end unnecessary hd wake up? 2008-09-04 23:28 ` Bráulio Barros de Oliveira @ 2008-09-04 23:32 ` Bráulio Barros de Oliveira 2008-09-04 23:47 ` Bráulio Barros de Oliveira 0 siblings, 1 reply; 5+ messages in thread From: Bráulio Barros de Oliveira @ 2008-09-04 23:32 UTC (permalink / raw) To: Mat; +Cc: reiserfs-devel, linux-kernel [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 4002 bytes --] but (as always there is), the situation is not good yet when using kde4.with it, i can't find out which process is accessing the hd, causeiotop only shows a pdflush access.i've tried to kill some apps, but it didn't help. any other trace technic? regards,bráulio On Thu, Sep 4, 2008 at 8:28 PM, Bráulio Barros de Oliveira<brauliobo@gmail.com> wrote:> hello mat, here comes the results of each action.> in all the process i've used the iotop (what a great utility you> pointed!), and always saw only the pdflush process acessing the hd. no> user interface were used.> the apm is set to 128 with hdparm>> ok, then try the following:>> you at least should have noatime,nodiratime,commit=600>> :) that did the job! also, i've tested without the commit option,> which didn't changed the result.>> enabled for the reiserfs or >=ext3 filesystems>> you can also try data=writeback (but beware this might put your data at risk !)>> * can't try>> select the anticipatory i/o scheduler> and set following stuff>> :( no change.>> echo "16" > /proc/sys/vm/page-cluster> # default: 3> #>> :( no change.>> echo "60" > /proc/sys/vm/swappiness> # default: 60> # By default, Linux will aggressively swap processes out of physical memory onto> disk in order to keep the disk cache as large as possible.> # This means that pages that haven't been used recently will be pushed into swap> long before the system even comes close to running out of memory, which is an> unexpected behavior compared to some operating systems.> # The /proc/sys/vm/swappiness parameter controls how aggressive Linux is in this> area.>> :( no change.>> echo "3000" > /proc/sys/vm/dirty_expire_centisecs> # default: 3000 (30 seconds)> #2 how long data can be in the page cache before it is considered expired and> must be written at the next opportunity. Note that this default is very long: a> full 30 seconds. That means that under normal circumstances, unless you write> enough to trigger the other pdflush method, Linux won't actually commit anything> you write until 30 seconds later.>> :( no change.>> echo "6000" > /proc/sys/vm/dirty_writeback_centisecs> # default: 500 (5 seconds)> #1 how often pdflush wakes up to write data to disk. The default wakes up the> two (or more) active threads every five seconds.> # suggestion: 6000 (every 60 seconds)>> :( no change.>> echo "15" > /proc/sys/vm/dirty_background_ratio> # default: 10> #3 Maximum percentage of active memory that can be filled with dirty pages> before pdflush begins to write them>> echo "50" > /proc/sys/vm/dirty_ratio #modified> # default: 40> #4 Maximum percentage of total memory that can be filled with dirty pages before> processes are forced to write dirty buffers themselves during their time slice> instead of being allowed to do more writes.> # modified: 50>> echo "25" > /proc/sys/vm/vfs_cache_pressure>> for i in /sys/block/sd*; do> /bin/echo "anticipatory" > $i/queue/scheduler> done>> for i in /sys/block/sd*; do> /bin/echo "0" > $i/queue/iosched/antic_expire> done>> for i in /sys/block/sd*; do> /bin/echo "150" > $i/queue/iosched/read_expire> done>> for i in /sys/block/sd*; do> /bin/echo "750" > $i/queue/iosched/read_batch_expire> done>> for i in /sys/block/sd*; do> /bin/echo "1200" > $i/queue/iosched/write_batch_expire> done>> for i in /sys/block/sd*; do> /bin/echo "1024" > $i/queue/nr_requests> done>> for i in /sys/block/sd*; do> /bin/echo "256" > $i/queue/read_ahead_kb> done>> for i in /sys/block/sd*; do> /bin/echo "256" > $i/queue/max_sectors_kb> done>> for i in /sys/class/scsi_host/host*; do> /bin/echo "min_power" > $i/link_power_management_policy> done>>>>> try to disable each and every unneeded daemon or applets, programs, etc.>> by using:>> * powertop> * iotop> * htop> * top> * lsof | grep /home> * ...>ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: reiserfs do_journal_end unnecessary hd wake up? 2008-09-04 23:32 ` Bráulio Barros de Oliveira @ 2008-09-04 23:47 ` Bráulio Barros de Oliveira [not found] ` <200809050154.00318.volker.armin.hemmann@tu-clausthal.de> 0 siblings, 1 reply; 5+ messages in thread From: Bráulio Barros de Oliveira @ 2008-09-04 23:47 UTC (permalink / raw) To: Mat; +Cc: reiserfs-devel, linux-kernel [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 4363 bytes --] just found out! it is konsole, unbelievable! going to file a bugreport right now.again, thank you very much for the support.bráulio On Thu, Sep 4, 2008 at 8:32 PM, Bráulio Barros de Oliveira<brauliobo@gmail.com> wrote:> but (as always there is), the situation is not good yet when using kde4.> with it, i can't find out which process is accessing the hd, cause> iotop only shows a pdflush access.> i've tried to kill some apps, but it didn't help. any other trace technic?>> regards,> bráulio>> On Thu, Sep 4, 2008 at 8:28 PM, Bráulio Barros de Oliveira> <brauliobo@gmail.com> wrote:>> hello mat, here comes the results of each action.>> in all the process i've used the iotop (what a great utility you>> pointed!), and always saw only the pdflush process acessing the hd. no>> user interface were used.>> the apm is set to 128 with hdparm>>>> ok, then try the following:>>>> you at least should have noatime,nodiratime,commit=600>>>> :) that did the job! also, i've tested without the commit option,>> which didn't changed the result.>>>> enabled for the reiserfs or >=ext3 filesystems>>>> you can also try data=writeback (but beware this might put your data at risk !)>>>> * can't try>>>> select the anticipatory i/o scheduler>> and set following stuff>>>> :( no change.>>>> echo "16" > /proc/sys/vm/page-cluster>> # default: 3>> #>>>> :( no change.>>>> echo "60" > /proc/sys/vm/swappiness>> # default: 60>> # By default, Linux will aggressively swap processes out of physical memory onto>> disk in order to keep the disk cache as large as possible.>> # This means that pages that haven't been used recently will be pushed into swap>> long before the system even comes close to running out of memory, which is an>> unexpected behavior compared to some operating systems.>> # The /proc/sys/vm/swappiness parameter controls how aggressive Linux is in this>> area.>>>> :( no change.>>>> echo "3000" > /proc/sys/vm/dirty_expire_centisecs>> # default: 3000 (30 seconds)>> #2 how long data can be in the page cache before it is considered expired and>> must be written at the next opportunity. Note that this default is very long: a>> full 30 seconds. That means that under normal circumstances, unless you write>> enough to trigger the other pdflush method, Linux won't actually commit anything>> you write until 30 seconds later.>>>> :( no change.>>>> echo "6000" > /proc/sys/vm/dirty_writeback_centisecs>> # default: 500 (5 seconds)>> #1 how often pdflush wakes up to write data to disk. The default wakes up the>> two (or more) active threads every five seconds.>> # suggestion: 6000 (every 60 seconds)>>>> :( no change.>>>> echo "15" > /proc/sys/vm/dirty_background_ratio>> # default: 10>> #3 Maximum percentage of active memory that can be filled with dirty pages>> before pdflush begins to write them>>>> echo "50" > /proc/sys/vm/dirty_ratio #modified>> # default: 40>> #4 Maximum percentage of total memory that can be filled with dirty pages before>> processes are forced to write dirty buffers themselves during their time slice>> instead of being allowed to do more writes.>> # modified: 50>>>> echo "25" > /proc/sys/vm/vfs_cache_pressure>>>> for i in /sys/block/sd*; do>> /bin/echo "anticipatory" > $i/queue/scheduler>> done>>>> for i in /sys/block/sd*; do>> /bin/echo "0" > $i/queue/iosched/antic_expire>> done>>>> for i in /sys/block/sd*; do>> /bin/echo "150" > $i/queue/iosched/read_expire>> done>>>> for i in /sys/block/sd*; do>> /bin/echo "750" > $i/queue/iosched/read_batch_expire>> done>>>> for i in /sys/block/sd*; do>> /bin/echo "1200" > $i/queue/iosched/write_batch_expire>> done>>>> for i in /sys/block/sd*; do>> /bin/echo "1024" > $i/queue/nr_requests>> done>>>> for i in /sys/block/sd*; do>> /bin/echo "256" > $i/queue/read_ahead_kb>> done>>>> for i in /sys/block/sd*; do>> /bin/echo "256" > $i/queue/max_sectors_kb>> done>>>> for i in /sys/class/scsi_host/host*; do>> /bin/echo "min_power" > $i/link_power_management_policy>> done>>>>>>>>>> try to disable each and every unneeded daemon or applets, programs, etc.>>>> by using:>>>> * powertop>> * iotop>> * htop>> * top>> * lsof | grep /home>> * ...>>>ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥ ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <200809050154.00318.volker.armin.hemmann@tu-clausthal.de>]
* Re: reiserfs do_journal_end unnecessary hd wake up? [not found] ` <200809050154.00318.volker.armin.hemmann@tu-clausthal.de> @ 2008-09-04 23:59 ` Bráulio Barros de Oliveira 0 siblings, 0 replies; 5+ messages in thread From: Bráulio Barros de Oliveira @ 2008-09-04 23:59 UTC (permalink / raw) To: Volker Armin Hemmann; +Cc: reiserfs-devel, linux-kernel [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 1672 bytes --] hello volker, running tree command on /tmp i couldn't associate any file withkonsole. that's the result[braulio@brauliopresto tmp]$ tree.|-- kde-root [error opening dir]`-- kde4-braulio |-- kde-braulio | |-- 28165-cm81.skz | |-- 86714-PicoNet.skz | |-- closeditems | |-- konqueror-crash-X31257.log | |-- konqueror-crash-X31258.log | |-- konqueror-crash-X31259.log | |-- konqueror-crash-X31262.log | |-- konqueror-crash-X31265.log | `-- ksycoca -> /var/tmp/kdecache-braulio/ksycoca `-- ksocket-braulio |-- KSMserver__0 |-- kdeinit-:0 |-- kdeinit4__0 |-- kdeinit__0 |-- klauncherMT3820.slave-socket |-- klauncherT31205.slave-socket `-- klaunchergALyma.slave-socket 5 directories, 15 files regards,bráulio On Thu, Sep 4, 2008 at 8:54 PM, Volker Armin Hemmann<volker.armin.hemmann@tu-clausthal.de> wrote:> On Friday 05 September 2008, Bráulio Barros de Oliveira wrote:>> just found out! it is konsole, unbelievable! going to file a bug>> report right now.>> again, thank you very much for the support.>> bráulio>> let me guess - konsole writes to a temp file in /tmp containing the backlog?> That is not a bug but a feature. You can 'save' you some trouble by putting> /tmp on a tempfs. 256mb should be enough.> --> To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in> the body of a message to majordomo@vger.kernel.org> More majordomo info at http://vger.kernel.org/majordomo-info.html>ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-04 23:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <loom.20080904T211127-782@post.gmane.org>
2008-09-04 22:38 ` Re: reiserfs do_journal_end unnecessary hd wake up? Bráulio Barros de Oliveira
2008-09-04 23:28 ` Bráulio Barros de Oliveira
2008-09-04 23:32 ` Bráulio Barros de Oliveira
2008-09-04 23:47 ` Bráulio Barros de Oliveira
[not found] ` <200809050154.00318.volker.armin.hemmann@tu-clausthal.de>
2008-09-04 23:59 ` Bráulio Barros de Oliveira
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®