You are not logged in.
Hi,
as recommended everywhere I have vm.dirty_writeback_centisecs=1500 in /etc/sysctl.conf.
This worked for some days but when I checked powertop today it says that the current value is 499.
I then tried echo 1500 > /proc/sys/vm/dirty_writeback_centisecs in /etc/rc.local but no success.
I image there is a coincidence with the installation of acpid. So, could the one influence the other? If yes, what can I do to change the value to 1500?
Thanks
Offline
No one else noticed this?
Offline
Another bump
Offline
Check whether that echo line works in the shell.
Offline
Check whether that echo line works in the shell.
It does work for me.
I will try it in rc.local.
EDIT: echo 1500 > /proc/sys/vm/dirty_writeback_centisecs in rc.local doesn't work, neither vm.dirty_writeback_centisecs=1500 does in /etc/sysctl.conf
Last edited by joephantom (2008-12-07 21:23:54)
By striving to do the impossible, man has always achieved what is possible. Those who have cautiously done no more than they believed possible have never taken a single step forward - Mikhail Bakunin
Offline
Same here.
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs as root in console work.
But as joephantom noticed none of the both entries take effect although they're described in the wiki (at least the one in /etc/sysctl.conf)
Last edited by Barghest (2008-12-08 15:41:26)
Offline
Works here.
Try using ">>" instead of ">".
Offline
Ok, I'll give it a try but the same occurs with vm.laptop_mode=5 in /etc/sysctl.conf. So I'm a bit confused if there's something going wrong.
What exactly is the difference between > and >>. The other entries in rc.local work with > (e.g. setting cpu governor to ondemand)
Offline
Do you have conflicting settings in /etc/sysctl.conf ?
Offline
I don't think so
cat /etc/sysctl.conf
#
# Kernel sysctl configuration
#
# Disable packet forwarding
net.ipv4.ip_forward=0
# Disable the magic-sysrq key
kernel.sysrq = 0
# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1
#Strom sparen
vm.dirty_writeback_centisecs = 1500
vm.laptop_mode = 5
/edit: Using >> in /etc/rc.local works for me
Last edited by Barghest (2008-12-08 16:30:40)
Offline
I'm facing the same issue.
No clues?
Offline
necro bumping is bad.
You should list what you tried in your post.
Do you use laptop-mode-tools ? When you say same issue what doesn't work?
vm.dirty_writeback_centisec = 1500 in sysctl.conf or echo 1500 > /proc/sys/vm/dirty_writeback_centisecs in rc.local
Does it work after boot ?
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline
The issue is still existing. Nothing can setup 'dirty_writeback_centisecs' and 'laptop_mode' on start-up. I tried 'sysctl.conf' and 'rc.local'. Neither 'echo > /proc' nor 'echo >> /proc' nor 'sysctl -w' worked. After boot the values are still default. I guess something I am not aware of overrides them.
Offline
if you need to echo something in /proc/sys you need a sleep command before because /etc/rc.local is called before it's populated.
for example I use this :
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
######Disk Advanced Power Management (power management without spindown to prevent disk wear and clicking noises)
hdparm -B 254 /dev/sda
function PM() {
while [[ ! -d /sys || ! -d /proc/sys ]]; do sleep 5;done
######Deactivate nvidia GPU (6W!!!)
echo '\_SB.PCI0.PEG0.GFX0.DOFF' > /proc/acpi/call
######Power Management
echo 1 > /proc/sys/vm/laptop_mode
echo 0 > /proc/sys/kernel/nmi_watchdog
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
for i in /sys/class/scsi_host/*/link_power_management_policy; do echo min_power > $i; done
echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller
echo 1 > /sys/module/snd_hda_intel/parameters/power_save
for i in /sys/bus/{pci,i2c}/devices/*/power/control; do echo auto > $i; done
######Power Management : already managed
#echo ondemand > /sys/devices/system/cpu/cpu{0,1,2,3}/cpufreq/scaling_governor
#for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done
#for i in /sys/bus/usb/devices/*/power/level; do echo auto > $i; done
######Power Management : not efficient enough
#echo 1 > /sys/devices/system/cpu/sched_{mc,smt}_power_savings
}
PM &
edit, actually when I log into kde, those value are overridden. Maybe Powerdevil, logging in also triggers remounting my ext4 partition with commit=0, due to pm-utils I think.
Last edited by ChoK (2011-07-23 11:20:17)
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline