Bug#911747: zram-tools: CORES option in /etc/default/zramswap is ignored

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Bug#911747: zram-tools: CORES option in /etc/default/zramswap is ignored

Julian Calaby
Package: zram-tools
Version: 0.3.2-1
Severity: normal

Dear Maintainer,

/etc/default/zramswap specifies that the number of cores to use can be
overridden using the "CORES" environment variable and provides an example
using that variable.


# Specifies amount of zram devices to create.
# By default, zramswap-start will use all available cores.


However uncommenting the line has no effect as /usr/sbin/zramswap uses "cores"
in lower-case to define the number of swap areas to allocate.

This can be trivially worked around by overriding the correct variable.


Julian Calaby

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zram-tools depends on:
ii  bc  1.07.1-2+b1

zram-tools recommends no packages.

zram-tools suggests no packages.

-- no debconf information