Bug#970639: grub-pc: Zswap disabled by default

Calum McConnell calumlikesapplepie at gmail.com
Sun Sep 20 17:37:02 BST 2020


Package: grub-pc
Version: 2.04-8
Severity: wishlist
X-Debbugs-Cc: calumlikesapplepie at gmail.com

Simply put, I think a lot of people would benefit from zswap being enabled by default.  Except on
very low-preformance machines, it is always an improvment.  Even on those very limited machines, 
zswap would only be a significant limitation if memory is being pushed close, but not past, it's
limits, and Disk IO is very fast-- neither of which are likely true for computers with sufficently
weak CPU's.

>From what I can tell, enabling it should be a simple matter of changing the default grub config file.

I know zswap is a kernel parameter, but every guide I have seen says to enable it in grub config.
As such, I appologize if you think this report is better directed elsewhere, or if it has been
implemented already and my config files are out of date.

Thanks for your time!
Calum

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda1 / ext4 rw,relatime,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c7929e7-825d-453d-a064-53da2115a7a2
else
  search --no-floppy --fs-uuid --set=root 2c7929e7-825d-453d-a064-53da2115a7a2
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c7929e7-825d-453d-a064-53da2115a7a2
else
  search --no-floppy --fs-uuid --set=root 2c7929e7-825d-453d-a064-53da2115a7a2
fi
insmod png
if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2c7929e7-825d-453d-a064-53da2115a7a2' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c7929e7-825d-453d-a064-53da2115a7a2
	else
	  search --no-floppy --fs-uuid --set=root 2c7929e7-825d-453d-a064-53da2115a7a2
	fi
	echo	'Loading Linux 5.8.0-1-amd64 ...'
	linux	/boot/vmlinuz-5.8.0-1-amd64 root=UUID=2c7929e7-825d-453d-a064-53da2115a7a2 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-5.8.0-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-2c7929e7-825d-453d-a064-53da2115a7a2' {
	menuentry 'Debian GNU/Linux, with Linux 5.8.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-1-amd64-advanced-2c7929e7-825d-453d-a064-53da2115a7a2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c7929e7-825d-453d-a064-53da2115a7a2
		else
		  search --no-floppy --fs-uuid --set=root 2c7929e7-825d-453d-a064-53da2115a7a2
		fi
		echo	'Loading Linux 5.8.0-1-amd64 ...'
		linux	/boot/vmlinuz-5.8.0-1-amd64 root=UUID=2c7929e7-825d-453d-a064-53da2115a7a2 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.8.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.8.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-1-amd64-recovery-2c7929e7-825d-453d-a064-53da2115a7a2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c7929e7-825d-453d-a064-53da2115a7a2
		else
		  search --no-floppy --fs-uuid --set=root 2c7929e7-825d-453d-a064-53da2115a7a2
		fi
		echo	'Loading Linux 5.8.0-1-amd64 ...'
		linux	/boot/vmlinuz-5.8.0-1-amd64 root=UUID=2c7929e7-825d-453d-a064-53da2115a7a2 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.8.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.7.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.7.0-3-amd64-advanced-2c7929e7-825d-453d-a064-53da2115a7a2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c7929e7-825d-453d-a064-53da2115a7a2
		else
		  search --no-floppy --fs-uuid --set=root 2c7929e7-825d-453d-a064-53da2115a7a2
		fi
		echo	'Loading Linux 5.7.0-3-amd64 ...'
		linux	/boot/vmlinuz-5.7.0-3-amd64 root=UUID=2c7929e7-825d-453d-a064-53da2115a7a2 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.7.0-3-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.7.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.7.0-3-amd64-recovery-2c7929e7-825d-453d-a064-53da2115a7a2' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c7929e7-825d-453d-a064-53da2115a7a2
		else
		  search --no-floppy --fs-uuid --set=root 2c7929e7-825d-453d-a064-53da2115a7a2
		fi
		echo	'Loading Linux 5.7.0-3-amd64 ...'
		linux	/boot/vmlinuz-5.7.0-3-amd64 root=UUID=2c7929e7-825d-453d-a064-53da2115a7a2 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.7.0-3-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Sep 17 20:43 ata-HL-DT-ST_DVD+_-RW_GU90N_KXIE2DL0324 -> ../../sr0
lrwxrwxrwx 1 root root  9 Sep 17 10:31 ata-Hitachi_HTS545032B9SA02_100505PBTC001DKLZ1AY -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 17 10:31 ata-Hitachi_HTS545032B9SA02_100505PBTC001DKLZ1AY-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 17 10:31 ata-Hitachi_HTS545032B9SA02_100505PBTC001DKLZ1AY-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 17 10:31 ata-Hitachi_HTS545032B9SA02_100505PBTC001DKLZ1AY-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 Sep 17 10:31 wwn-0x5000cca5edf2e5f8 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 17 10:31 wwn-0x5000cca5edf2e5f8-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 17 10:31 wwn-0x5000cca5edf2e5f8-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 17 10:31 wwn-0x5000cca5edf2e5f8-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 Sep 17 20:43 wwn-0x5001480000000000 -> ../../sr0
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep 17 10:31 2c7929e7-825d-453d-a064-53da2115a7a2 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 17 10:31 64927d8b-8841-4fd8-bf92-87c8067b2983 -> ../../sda5
*********************** END /dev/disk/by-uuid

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

Kernel: Linux 5.8.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.74
ii  grub-common            2.04-8
ii  grub-pc-bin            2.04-8
ii  grub2-common           2.04-8
ii  ucf                    3.0043

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub-pc/timeout: 5
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/mixed_legacy_and_grub2: true
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_empty: false
* grub2/linux_cmdline:
  grub-pc/install_devices_failed: false
  grub2/force_efi_extra_removable: false
  grub2/update_nvram: true
* grub-pc/install_devices: /dev/disk/by-id/ata-Hitachi_HTS545032B9SA02_100505PBTC001DKLZ1AY
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline:
  grub-pc/install_devices_disks_changed:
  grub-pc/partition_description:
  grub-pc/chainload_from_menu.lst: true
  grub-pc/hidden_timeout: false
  grub-pc/kopt_extracted: false
* grub2/linux_cmdline_default: quiet



More information about the Pkg-grub-devel mailing list