Bug#697335: initramfs-tools: hardcoded "xz -8" hurts low-RAM systems for little gain
Package: initramfs-tools
Version: 0.109
Severity: normal
Dear Maintainer,
Right now, mkinitramfs runs the hardcoded command "xz -8 --check=crc32"
when COMPRESS=xz is given in mkinitramfs.conf.
This runs for a *LONG* time on my system because I only have only 256
MiB of RAM.
I was able to workaround this like so:
export XZ_DEFAULTS="-v --memlimit-compress=64MiB"
but it feels dirty to need to do this, especially given that it turns
out that this costs very little in compression ratio: just a thousandth
or two.
-- Package-specific info:
-- initramfs sizes
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.2.0-4-686-pae root=UUID=1c08ee41-6454-409d-bf06-ef837a72d296 ro
-- resume
# RESUME=/dev/hda2
RESUME='UUID=6bfc93a9-cfd1-4117-8a64-ab120037e560'
-- /proc/filesystems
ext3
fuseblk
ext2
ext4
reiserfs
xfs
jfs
msdos
vfat
ntfs
minix
hfs
hfsplus
qnx4
ufs
btrfs
-- lsmod
Module Size Used by
cpuid 12620 0
btrfs 489035 0
crc32c 12576 1
libcrc32c 12394 1 btrfs
zlib_deflate 21318 1 btrfs
ufs 57656 0
qnx4 12992 0
hfsplus 70426 0
hfs 40744 0
minix 26960 0
ntfs 162346 0
vfat 17116 0
msdos 12829 0
fat 44497 2 msdos,vfat
jfs 134977 0
xfs 524001 0
reiserfs 172065 0
ext4 302770 0
crc16 12327 1 ext4
jbd2 52246 1 ext4
ext2 49826 0
dm_mod 57362 0
tcp_diag 12400 0
nfnetlink_log 12909 0
nfnetlink 12786 1 nfnetlink_log
inet_diag 17001 2 tcp_diag
ppdev 12651 0
lp 12797 0
autofs4 22746 1
binfmt_misc 12813 1
fuse 52153 1
xt_hl 12409 16
ip6t_rt 12451 3
xt_tcpudp 12506 144
ipt_MASQUERADE 12530 4
nf_nat_ftp 12420 0
iptable_nat 12800 1
nf_nat 17924 3 iptable_nat,nf_nat_ftp,ipt_MASQUERADE
nf_conntrack_ipv4 13726 25 nf_nat,iptable_nat
nf_defrag_ipv4 12443 1 nf_conntrack_ipv4
xt_TCPMSS 12590 20
ip6t_LOG 12537 45
ipt_LOG 12533 48
ip6t_REJECT 12508 0
ipt_REJECT 12454 0
ip6table_mangle 12492 0
iptable_mangle 12488 0
xt_multiport 12492 0
xt_state 12455 44
xt_limit 12484 107
xt_conntrack 12601 0
nf_conntrack_ftp 12533 1 nf_nat_ftp
nf_conntrack_ipv6 13124 22
nf_defrag_ipv6 12684 1 nf_conntrack_ipv6
nf_conntrack 43121 9 nf_conntrack_ipv6,nf_conntrack_ftp,xt_conntrack,xt_state,nf_conntrack_ipv4,nf_nat,iptable_nat,nf_nat_ftp,ipt_MASQUERADE
ip6table_filter 12492 1
ip6_tables 17185 4 ip6table_filter,ip6table_mangle,ip6t_LOG,ip6t_rt
iptable_filter 12488 1
ip_tables 17079 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 18121 20 ip_tables,iptable_filter,ip6_tables,ip6table_filter,xt_conntrack,xt_limit,xt_state,xt_multiport,iptable_mangle,ip6table_mangle,ipt_REJECT,ip6t_REJECT,ipt_LOG,ip6t_LOG,xt_TCPMSS,iptable_nat,ipt_MASQUERADE,xt_tcpudp,ip6t_rt,xt_hl
sit 17331 0
tunnel4 12557 1 sit
bridge 59964 0
stp 12368 1 bridge
tun 17868 3
speedstep_lib 12574 0
lm85 17936 0
hwmon_vid 12398 1 lm85
i2c_i801 12670 0
joydev 17010 0
snd_cs46xx 23445 0
snd_ac97_codec 84201 1 snd_cs46xx
snd_pcm_oss 36181 0
snd_mixer_oss 17668 1 snd_pcm_oss
snd_pcm 53390 3 snd_pcm_oss,snd_ac97_codec,snd_cs46xx
snd_page_alloc 12867 2 snd_pcm,snd_cs46xx
snd_seq_midi 12744 0
snd_seq_midi_event 13124 1 snd_seq_midi
snd_rawmidi 18376 2 snd_seq_midi,snd_cs46xx
snd_seq 39487 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 13016 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 22356 2 snd_seq,snd_pcm
snd 42691 9 snd_timer,snd_seq_device,snd_seq,snd_rawmidi,snd_pcm,snd_mixer_oss,snd_pcm_oss,snd_ac97_codec,snd_cs46xx
evdev 17225 0
soundcore 12921 1 snd
ac97_bus 12462 1 snd_ac97_codec
gameport 13332 1 snd_cs46xx
i2c_piix4 12480 0
parport_pc 22036 1
serio_raw 12803 0
pcspkr 12515 0
i2c_core 19116 3 i2c_piix4,i2c_i801,lm85
dcdbas 13080 0
parport 31254 3 parport_pc,lp,ppdev
shpchp 26717 0
container 12525 0
processor 27565 1
thermal_sys 17752 1 processor
button 12817 0
ext3 138190 6
mbcache 12897 3 ext3,ext2,ext4
jbd 47281 1 ext3
microcode 13265 0
sg 21476 0
sr_mod 17468 0
sd_mod 35425 9
crc_t10dif 12332 1 sd_mod
cdrom 34813 1 sr_mod
ata_generic 12439 0
ata_piix 21175 7
libata 124981 2 ata_piix,ata_generic
floppy 48121 0
uhci_hcd 22337 0
ehci_hcd 35509 0
usbcore 104470 3 ehci_hcd,uhci_hcd
scsi_mod 134998 4 libata,sd_mod,sr_mod,sg
3c59x 30658 0
mii 12595 1 3c59x
natsemi 26577 0
usb_common 12338 1 usbcore
-- /etc/initramfs-tools/modules
-- /etc/kernel-img.conf
# Do not create symbolic links in /
do_symlinks = Yes
do_initrd = Yes
# update-grub stuff
do_bootloader = no
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=xz
export XZ_DEFAULTS="-v --memlimit-compress=64MiB"
DEVICE=
NFSROOT=auto
-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
busybox
dmsetup
fuse
intel_microcode
keymap
klibc
kmod
ntfs_3g
thermal
udev
v86d
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-8
ii klibc-utils 2.0.1-3.1
ii kmod 9-2
ii module-init-tools 9-2
ii udev 175-7
Versions of packages initramfs-tools recommends:
ii busybox 1:1.20.0-7
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.0-1
-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed:
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=xz
export XZ_DEFAULTS="-v --memlimit-compress=64MiB"
DEVICE=
NFSROOT=auto
-- no debconf information
--
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Reply to: