sysctl behaves differently under liquorix
braveheartleo
Status: Interested
Joined: 23 Jan 2012
Posts: 43
Reply Quote
:: Code ::
$ inxi -bxx
System:    Host: sidbox Kernel: 3.6.0-7.dmz.1-liquorix-686 i686 (32 bit, gcc: 4.7.2)
           Desktop: Xfce 4.10.0 (Gtk 2.24.10) dm: mdm Distro: siduction 12.1.1 Desperado Reloaded - xfce - (201206241935)
Machine:   Mobo: ASUSTeK model: P5PE-VM version: Rev 1.03G Bios: American Megatrends version: 1501 date: 12/26/2007
CPU:       Single core Intel Pentium 4 CPU (-HT-) clocked at 2400.00 MHz
Graphics:  Card: Intel 82865G Integrated Graphics Controller bus-ID: 00:02.0 chip-ID: 8086:2572
           X.Org: 1.12.4 driver: intel Resolution: 1280x720@59.9hz
           GLX Renderer: Mesa DRI Intel 865G x86/MMX/SSE2 GLX Version: 1.3 Mesa 8.0.5 Direct Rendering: Yes
Network:   Card: Marvell 88E8001 Gigabit Ethernet Controller
           driver: skge ver: 1.14 port: e800 bus-ID: 01:0d.0 chip-ID: 11ab:4320
Drives:    HDD Total Size: 480.1GB (3.5% used)
Info:      Processes: 103 Uptime: 0 min Memory: 81.5/1000.0MB Runlevel: 5 Gcc sys: 4.7.2 alt: 4.6 Client: Shell inxi: 1.8.20

The system can run two other kernels apart from liquorix: one provided by the distro (Siduction), and the other from a stock Debian kernel.

Under the aforementioned kernels, commands placed inside /etc/rc.local execute normally. But when running under a liquorix kernel, the commands do not seem to execute at all.

Scenario:
I have these inside /etc/rc.local:
:: Code ::
$ cat /etc/rc.local
#!/bin/sh -e

sysctl -q -w vm.swappiness=10

# disable pause frames
ethtool -A eth0 tx off
ethtool -A eth0 rx off

# enable in-kernel polling
echo 3500 > /sys/module/block/parameters/events_dfl_poll_msecs

exit 0


Whenever I run the system under the aforementioned kernels, pause frames for eth0 get disabled by querying
:: Code ::
# ethtool -a eth0
and in-kernel polling is enabled by checking
:: Code ::
# cat /sys/module/block/parameters/events_dfl_poll_msecs
This is not the case under liquorix.

Where can I look in liquorix to troubleshoot this unexpected behavior?

UPDATE:
It seems that sysctl under liquorix behaves differently. I observed the following dmesg after running
:: Code ::
# sysctl vm.swappiness
10
# dmesg
<snip>
nr_pdflush_threads exported in /proc is scheduled for removal
sysctl: The scan_unevictable_pages sysctl/node-interface has been disabled for lack of a legitimate use case.  If you have one, please send an email to linux-mm@kvack.org.

From my /etc/rc.local, i removed the sysctl command and moved it into /etc/sysctl.conf. Now the commands execute normally under liquorix. It seems that the sysctl line errors out somehow, thus not completing the rest of the commands after it, when rc.local is called upon bootup.

What could be the cause of this different behavior?
Back to top
Display posts from previous:   

All times are GMT - 8 Hours