[Bug 826825] New: sysctl should load settings from various files according to the documentation, but it doesn't
https://bugzilla.novell.com/show_bug.cgi?id=826825 https://bugzilla.novell.com/show_bug.cgi?id=826825#c0 Summary: sysctl should load settings from various files according to the documentation, but it doesn't Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: manfred.h@gmx.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 According to "man 5 sysctl.d" and a comment in the /etc/sysctl.conf file, running "sysctl -p" should load settings from a variety of files, including the kernel-supplied /boot/sysctl.conf-$(uname -r). The desktop kernel comes with such a file to set vm.dirty_ratio to 20, but on my system it is still at 10. strace'ing sysctl shows that it doesn't look at /boot/sysctl.conf*, not does it load *any* file I have here in /etc/sysctl.d: # strace -f -etrace=file /sbin/sysctl -p execve("/sbin/sysctl", ["/sbin/sysctl", "-p"], [/* 58 vars */]) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3 open("/etc/sysctl.conf", O_RDONLY) = 3 stat("/proc/sys/kernel/sysrq", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/proc/sys/kernel/sysrq", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 kernel.sysrq = 1 stat("/proc/sys/net/ipv4/ip_forward", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/proc/sys/net/ipv4/ip_forward", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 net.ipv4.ip_forward = 1 stat("/proc/sys/net/ipv4/tcp_syncookies", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/proc/sys/net/ipv4/tcp_syncookies", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 net.ipv4.tcp_syncookies = 1 stat("/proc/sys/net/ipv6/conf/all/forwarding", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/proc/sys/net/ipv6/conf/all/forwarding", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 net.ipv6.conf.all.forwarding = 1 stat("/proc/sys/net/ipv6/conf/all/disable_ipv6", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/proc/sys/net/ipv6/conf/all/disable_ipv6", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 net.ipv6.conf.all.disable_ipv6 = 1 +++ exited with 0 +++ This might be related to bug #817773, which was closed as invalid, but it did not prove that sysctl actually *loads* settings from any of these files... Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826825 https://bugzilla.novell.com/show_bug.cgi?id=826825#c1 --- Comment #1 from Manfred Hollstein <manfred.h@gmx.net> 2013-06-26 06:38:04 UTC --- Hmm, "sysctl --system" actually loads all the named files, but still, "vm.dirty_ratio" seems special. I now have a call to "sysctl --system" in my /etc/init.d/boot.local, which logs the following (to /var/tmp/log.start): + sysctl --system * Applying /boot/sysctl.conf-3.7.10-1.16-desktop ... kernel.hung_task_timeout_secs = 0 kernel.msgmax = 65536 kernel.msgmnb = 65536 kernel.sem = 250 256000 32 1024 kernel.shmmax = 0xffffffffffffffff kernel.shmall = 0x0fffffffffffff00 vm.dirty_ratio = 20 * Applying /lib/sysctl.d/sysctl.conf ... net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv4.conf.all.rp_filter = 1 net.ipv4.conf.default.promote_secondaries = 1 net.ipv4.conf.all.promote_secondaries = 1 net.ipv6.conf.default.use_tempaddr = 2 fs.inotify.max_user_watches = 65536 kernel.sysrq = 176 dev.cdrom.autoclose = 0 * Applying /etc/sysctl.conf ... kernel.sysrq = 1 net.ipv4.ip_forward = 1 net.ipv4.tcp_syncookies = 1 net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.all.disable_ipv6 = 1 so, up to here, it is correct. When the graphical login is reached however, vm.dirty_ratio is again set to 10. Strangely enough, the following command does not reveal any suspicious candidate for changing the value again: # find / /var/ /boot/ -xdev -type f -print0 | xargs -0 -r fgrep vm.dirty_ratio /boot/sysctl.conf-3.7.10-1.16-desktop:vm.dirty_ratio=20 /usr/src/linux-3.7.10-1.16/mm/page-writeback.c: * - vm.dirty_ratio or vm.dirty_bytes /var/tmp/log.start:vm.dirty_ratio = 20 Binary file /var/lib/rpm/Packages matches /boot/sysctl.conf-3.7.10-1.16-desktop:vm.dirty_ratio=20 Does anybody have an idea why this is so? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826825 https://bugzilla.novell.com/show_bug.cgi?id=826825#c FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |werner@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826825 https://bugzilla.novell.com/show_bug.cgi?id=826825#c2 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@suse.com AssignedTo|werner@suse.com |fcrozat@suse.com --- Comment #2 from Dr. Werner Fink <werner@suse.com> 2013-07-09 10:31:18 UTC --- This is more related to systemd as sysctl calls is done with systemd AFAIK ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826825 https://bugzilla.novell.com/show_bug.cgi?id=826825#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2013-07-09 12:38:58 UTC --- /sbin/sysctl is no longer used, /usr/lib/systemd/systemd-sysctl is used instead (see systemctl status systemd-sysctl.service). Please note that /boot/sysctl*.conf was ignored until latest maintenance update for systemd on 12.3 (195-13.29.1), see bnc#808319 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826825 https://bugzilla.novell.com/show_bug.cgi?id=826825#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|fcrozat@suse.com |systemd-maintainers@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com