[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Where to set swappiness? (an entry in /etc/sysfs.conf doesn't do it)



Hello,

This command will set swappiness (to 0 in this case):

  # sysctl vm.swappiness=0

To have that setting persist across reboots, it is suggested to add
a line like so to /etc/sysfs.conf :

  vm.swappiness=0

Which I did...but that value is not set after reboot:

  # cat /proc/sys/vm/swappiness
  60

So I have to set it manually:

  # sysctl vm.swappiness=0
  # cat /proc/sys/vm/swappiness
  0

Other settings in /etc/sysfs.conf work, for example these entries:

  devices/platform/smapi/BAT0/start_charge_thresh=87
  devices/platform/smapi/BAT0/stop_charge_thresh=96

Will set those values accordingly:

  % cat /sys/devices/platform/smapi/BAT0/start_charge_thresh
  87
  % cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh
  96

But swappiness doesn't get set with an entry to /etc/sysfs.conf ...
any thoughts as to why not?

Thanks for any help,

John

-- 
John Magolske
http://B79.net/contact


Reply to: