[Bug 1263618] [NEW] compcache hook should add spare zram devices
Eugene San
eugenesan at gmail.com
Mon Dec 23 07:35:28 UTC 2013
Public bug reported:
These days zram leaves staging and in many cases can be seen as ramdisk replacement.
Currently compcache hook loads driver with single device instance, blocking any additional usage of zram driver.
I suggest to add 16 /dev/zramX devices (same amount as with /dev/ramX).
That won't affect current zram utilization by compcache hook but will allow convenient usage of zram for other purposes.
Below is trivial change is required to achieve above:
--- a/hook/compcache
+++ b/hook/compcache
@@ -138,7 +138,7 @@
if [ "$name" = zram ]; then
cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
-modprobe -q --ignore-install zram
+modprobe -q --ignore-install zram num_devices=16
EOF
elif [ "$name" = ramzswap ]; then
cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
** Affects: initramfs-tools (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
These days zram leaves staging and in many cases can be seen as ramdisk replacement.
Currently compcache hook loads driver with single device instance, blocking any additional usage of zram driver.
I suggest to add 16 /dev/zramX devices (same amount as with /dev/ramX).
That won't affect current zram utilization by compcache hook but will allow convenient usage of zram for other purposes.
Below is trivial change is required to achieve above:
- --- compcache.orig
- +++ compcache
+ --- a/hook/compcache
+ +++ b/hook/compcache
@@ -138,7 +138,7 @@
-
- if [ "$name" = zram ]; then
- cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
+
+ if [ "$name" = zram ]; then
+ cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
-modprobe -q --ignore-install zram
+modprobe -q --ignore-install zram num_devices=16
- EOF
- elif [ "$name" = ramzswap ]; then
- cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
+ EOF
+ elif [ "$name" = ramzswap ]; then
+ cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1263618
Title:
compcache hook should add spare zram devices
Status in “initramfs-tools” package in Ubuntu:
New
Bug description:
These days zram leaves staging and in many cases can be seen as ramdisk replacement.
Currently compcache hook loads driver with single device instance, blocking any additional usage of zram driver.
I suggest to add 16 /dev/zramX devices (same amount as with /dev/ramX).
That won't affect current zram utilization by compcache hook but will allow convenient usage of zram for other purposes.
Below is trivial change is required to achieve above:
--- a/hook/compcache
+++ b/hook/compcache
@@ -138,7 +138,7 @@
if [ "$name" = zram ]; then
cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
-modprobe -q --ignore-install zram
+modprobe -q --ignore-install zram num_devices=16
EOF
elif [ "$name" = ramzswap ]; then
cat >>"$DESTDIR"/scripts/init-top/compcache <<EOF
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1263618/+subscriptions
More information about the foundations-bugs
mailing list