FS#64288 - [archiso] pxe/http: wasted RAM due to duplication of the squashfs image

Attached to Project: Release Engineering
Opened by Julien Muchembled (jmuchemb) - Sunday, 27 October 2019, 21:49 GMT
Last edited by David Runge (dvzrv) - Friday, 18 February 2022, 19:35 GMT
Task Type Bug Report
Category ArchISO
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Just after booting the last version of SystemRescueCd (6.0.3) from PXE:

[root@sysresccd ~]# cat /proc/cmdline
BOOT_IMAGE=/sysresccd/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archiso_http_srv=http://192.168.4.1:69/sysresccd/ checksum ip=dhcp
[root@sysresccd ~]# free -h
total used free shared buff/cache available
Mem: 1.9Gi 66Mi 80Mi 1.6Gi 1.8Gi 110Mi
Swap: 0B 0B 0B
[root@sysresccd ~]# df -h
Filesystem Size Used Avail Use% Mounted on
dev 973M 0 973M 0% /dev
run 995M 92M 904M 10% /run
httpspace 1.5G 789M 704M 53% /run/archiso/httpspace
copytoram 1.5G 789M 704M 53% /run/archiso/copytoram
cowspace 256M 928K 256M 1% /run/archiso/cowspace
/dev/loop0 789M 789M 0 100% /run/archiso/sfs/airootfs
airootfs 256M 928K 256M 1% /
tmpfs 995M 0 995M 0% /dev/shm
tmpfs 995M 0 995M 0% /sys/fs/cgroup
tmpfs 995M 0 995M 0% /tmp
tmpfs 995M 1.5M 994M 1% /etc/pacman.d/gnupg
tmpfs 199M 0 199M 0% /run/user/0

I was surprised to have so little available memory.

The httpspace mount point is unused:

[root@sysresccd ~]# umount /run/archiso/httpspace
[root@sysresccd ~]# free -h
total used free shared buff/cache available
Mem: 1.9Gi 66Mi 870Mi 882Mi 1.0Gi 899Mi
Swap: 0B 0B 0B

But ideally, we should even avoid a temporary so that it's possible to boot a machine with e.g. 1.5G RAM.

(I first reported this issue to SystemRescueCd project - https://gitlab.com/fdupoux/sysresccd-src/issues/56 - but after looking at the source code, I realised it's rather a archiso bug)
This task depends upon

Closed by  David Runge (dvzrv)
Friday, 18 February 2022, 19:35 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This does not affect archiso created images. Please refer to the systemrescuecd upstream for further information.

Loading...