Bug#987316: initscripts: tmpfs has wrong size
Roger Lynn
Roger at rilynn.me.uk
Wed Apr 21 15:48:37 BST 2021
Package: initscripts
Version: 2.96-6
Severity: normal
X-Debbugs-Cc: Roger at rilynn.me.uk
Hi,
I think this bug is not the same as #688412 because /etc/fstab is NOT involved
here.
As shown in the configuration files below, I have configured RAMTMP with the
default size settings.
tmpfs(5) says:
TMPFS_SIZE
Maximum size for all tmpfs filesystems if no specific size is
provided. The default is 20%VM (20% of virtual memory, includ‐
ing swap space). If no value is provided here, the kernel de‐
fault (50% RAM) will be used.
I find this confusing, because the default in /etc/defaults/tmpfs is:
#TMPFS_SIZE=20%VM
Which is commented out, so presumably the default is for the kernel default to
be used, which should give me 50 % or 2 GB of my 4 GB of RAM:
$ free
total used free shared buff/cache available
Mem: 3964444 264432 666512 1524 3033500 3435280
Swap: 8388604 19784 8368820
However my tmpfs is only 775 MB:
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
...
tmpfs 792880 0 792880 0% /dev/shm
...
tmpfs 792880 856 792024 1% /tmp
Which appears to be only 20 % of my physical RAM.
Have I misunderstood something or is there a bug here? This is a recent
Bullseye installation.
Thanks,
Roger
-- System Information:
Debian Release: bullseye/sid
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-5-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages initscripts depends on:
ii lsb-base 11.1.0
ii sysv-rc 2.96-6
Versions of packages initscripts recommends:
ii e2fsprogs 1.46.2-1
ii psmisc 23.4-2
initscripts suggests no packages.
-- Configuration Files:
/etc/default/tmpfs changed:
RAMTMP=yes
-- no debconf information
More information about the Debian-init-diversity
mailing list