SHARE
TWEET

zramctrl patch

ImNtReal Jul 26th, 2012 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -Naur falconindy-systemd-arch-units-610c7c4/scripts/zramctrl.orig falconindy-systemd-arch-units-610c7c4/scripts/zramctrl
  2. --- falconindy-systemd-arch-units-610c7c4/scripts/zramctrl.orig 2012-07-26 16:57:52.023656000 -0400
  3. +++ falconindy-systemd-arch-units-610c7c4/scripts/zramctrl      2012-07-26 16:57:30.993656002 -0400
  4. @@ -13,6 +13,7 @@
  5.    }
  6.  
  7.    END {
  8. +    if (cpucount < 1) cpucount = 1
  9.      mem_per_cpu = sprintf("%d", mem_total / cpucount)
  10.  
  11.      system("modprobe zram num_devices=" cpucount)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top