Advertisement
ImNtReal

zramctrl patch

Jul 26th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.50 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement