using sysctl and sysfs to tweak /proc and /sys parameters
using sysctl and sysfs to tweak /proc and /sys parameters can be useful in order to permanently set powertop suggestions or not to have to recompile the kernel for only one value change.
lm-profiler
helps disabling unneeded services
You can use sysctl to tweak the running kernel parameters (tweak /proc entries)
and /etc/sysctl.conf to apply these settings permanently
e.g. including in the abovementioned file the string
vm.dirty_writeback_centisecs=1500
increases the writeback centisecs
sysctl -p
makes changes effective
—————————-
To tweak /sys entries install sysfsutils package and edit file
/etc/sysfs.conf
e.g. to disable USB autosuspend you can either:
- recompile kernel without CONFIG_USB_SUSPEND
- add to sysfs.conf the line
module/usbcore/parameters/autosuspend = -1
also, to permanently switch off your wireless card (in case you do not have a phisical switch) set
bus/pci/devices/0000:02:02.0/rf_kill = 1
where 0000:02:02.0 is your wireless device address (you can see that via lspci -vvnn or lsusb -vvnn)
|
Print This Post
|
Email This Post

No Responses to “using sysctl and sysfs to tweak /proc and /sys parameters”