You are not logged in.

#1 2013-09-19 12:42:42

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

[Solved] systemd-sysctl.service failed to set parameters from 99-sy...

$ cat /etc/sysctl.d/99-sysctl.conf 
# Protection from the SYN flood attack.
net.ipv4.tcp_syncookies = 1
# Disable packet forwarding.
net.ipv4.ip_forward = 0
# Tweak those values to alter disk syncing and swap behavior.
vm.vfs_cache_pressure = 1000
vm.swappiness = 0
# USB Speed
vm.dirty_ratio = 5
vm.dirty_background_ratio = 3
# KDE
fs.inotify.max_user_watches = 524288
$ cat /proc/sys/vm/dirty_ratio 
10
$ cat /proc/sys/vm/dirty_background_ratio 
5

but

$ cat /proc/sys/vm/swappiness 
0
$ cat /proc/sys/vm/vfs_cache_pressure 
1000

Only restarting of systemd-systct.service helps.

$ sudo systemctl restart systemd-sysctl.service
$ cat /proc/sys/vm/dirty_ratio 
5
$ cat /proc/sys/vm/dirty_background_ratio 
3

what am i doing wrong?
---------------------------------
Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode

Last edited by Perfect Gentleman (2013-09-20 00:34:44)

Offline

#2 2013-09-19 23:54:54

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,173

Re: [Solved] systemd-sysctl.service failed to set parameters from 99-sy...

You don't use xfce by any chance, do you?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-09-20 00:31:11

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [Solved] systemd-sysctl.service failed to set parameters from 99-sy...

nope, KDE.

Offline

#4 2013-09-29 19:39:45

MaartenBaert
Member
Registered: 2013-09-29
Posts: 1

Re: [Solved] systemd-sysctl.service failed to set parameters from 99-sy...

I ran into the same issue today and I found a better solution. The values for dirty_ratio and dirty_background_ratio are set in /etc/laptop-mode/laptop-mode.conf. Search for these lines:

LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40
[...]
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10

Just change those to the desired values and don't use sysctl.conf or sysctl.d.

Offline

#5 2013-09-29 21:12:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,173

Re: [Solved] systemd-sysctl.service failed to set parameters from 99-sy...

Perfect Gentleman wrote:

Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode

A more permanent solution is to mask that file

mkdir -p /etc/pm/power.d
touch /etc/pm/power.d/laptop-mode

which will not get written on update or reinstall. (Not than an update to this package seems at all likely but just in case.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB