2020-03-14 07:42:35 |
Alkis Georgopoulos |
bug |
|
|
added bug |
2020-03-14 08:11:28 |
Alkis Georgopoulos |
summary |
/var/lib/snapd/snaps needs 400 MB tmpfs RAM on live CDs |
/var/lib/snapd/seed/snaps needs 400 MB tmpfs RAM on live CDs |
|
2020-03-14 08:11:47 |
Alkis Georgopoulos |
description |
Boot with e.g. the current ubuntu-20.04-desktop-amd64.iso. Open a terminal and run `df -h`. You'll notice:
Filesystem Size Used Avail Use% Mounted on
/cow 2.0G 434M 1.5G 23% /
This means that the tmpfs file system needs 400 MB RAM for snaps. Xenial didn't have snaps and needed only 14 MB tmpfs. Snap shouldn't consume tmpfs RAM space, it should only use squashfs disk space.
For example, if in the next Ubuntu version more apps become snaps, it will need more RAM than the system will have, and this will make live CDs unbootable.
That RAM is wasted because somehow /var/lib/snapd/snaps is copied-up in overlayfs and uses tmpfs/RAM space instead of being provided from the squashfs image. |
Boot with e.g. the current ubuntu-20.04-desktop-amd64.iso. Open a terminal and run `df -h`. You'll notice:
Filesystem Size Used Avail Use% Mounted on
/cow 2.0G 434M 1.5G 23% /
This means that the tmpfs file system needs 400 MB RAM for snaps. Xenial didn't have snaps and needed only 14 MB tmpfs. Snap shouldn't consume tmpfs RAM space, it should only use squashfs disk space.
For example, if in the next Ubuntu version more apps become snaps, it will need more RAM than the system will have, and this will make live CDs unbootable.
That RAM is wasted because somehow /var/lib/snapd/seed/snaps is copied-up in overlayfs and uses tmpfs/RAM space instead of being provided from the squashfs image. |
|
2020-03-14 08:33:52 |
Alkis Georgopoulos |
summary |
/var/lib/snapd/seed/snaps needs 400 MB tmpfs RAM on live CDs |
Hardlinking snaps wastes 400 MB tmpfs RAM in live CDs |
|
2020-03-14 08:35:39 |
Alkis Georgopoulos |
description |
Boot with e.g. the current ubuntu-20.04-desktop-amd64.iso. Open a terminal and run `df -h`. You'll notice:
Filesystem Size Used Avail Use% Mounted on
/cow 2.0G 434M 1.5G 23% /
This means that the tmpfs file system needs 400 MB RAM for snaps. Xenial didn't have snaps and needed only 14 MB tmpfs. Snap shouldn't consume tmpfs RAM space, it should only use squashfs disk space.
For example, if in the next Ubuntu version more apps become snaps, it will need more RAM than the system will have, and this will make live CDs unbootable.
That RAM is wasted because somehow /var/lib/snapd/seed/snaps is copied-up in overlayfs and uses tmpfs/RAM space instead of being provided from the squashfs image. |
Boot with e.g. the current ubuntu-20.04-desktop-amd64.iso. Open a terminal and run `df -h`. You'll notice:
Filesystem Size Used Avail Use% Mounted on
/cow 2.0G 434M 1.5G 23% /
This means that the tmpfs file system needs 400 MB RAM for snaps. Xenial didn't have snaps and needed only 14 MB tmpfs. Snap shouldn't consume tmpfs RAM space, it should only use squashfs disk space.
I think this is caused because the snap code somewhere ends up hardlinking /var/lib/snapd/seed/snaps/* to /var/lib/snapd/snaps/*, and hard links cause overlayfs copy-ups, wasting as much RAM as the size of /var/lib/snapd/seed/snaps/ is. |
|
2020-03-14 16:15:38 |
Alkis Georgopoulos |
description |
Boot with e.g. the current ubuntu-20.04-desktop-amd64.iso. Open a terminal and run `df -h`. You'll notice:
Filesystem Size Used Avail Use% Mounted on
/cow 2.0G 434M 1.5G 23% /
This means that the tmpfs file system needs 400 MB RAM for snaps. Xenial didn't have snaps and needed only 14 MB tmpfs. Snap shouldn't consume tmpfs RAM space, it should only use squashfs disk space.
I think this is caused because the snap code somewhere ends up hardlinking /var/lib/snapd/seed/snaps/* to /var/lib/snapd/snaps/*, and hard links cause overlayfs copy-ups, wasting as much RAM as the size of /var/lib/snapd/seed/snaps/ is. |
Boot with e.g. the current ubuntu-20.04-desktop-amd64.iso. Open a terminal and run `df -h`. You'll notice:
Filesystem Size Used Avail Use% Mounted on
/cow 2.0G 434M 1.5G 23% /
This means that the tmpfs file system needs 400 MB RAM for snaps. Xenial didn't have snaps and needed only 14 MB tmpfs. Snap shouldn't consume tmpfs RAM space, it should only use squashfs disk space.
I think this is caused by function Install() in snap/squashfs/squashfs.go, which hardlinks /var/lib/snapd/seed/snaps/* to /var/lib/snapd/snaps/*.
Hardlinks cause overlayfs copy-ups in live CDs and LTSP.
Maybe the next option, symlinks, should be preferred in overlayfs. |
|
2020-03-16 08:08:00 |
Samuele Pedroni |
snapd: status |
New |
Triaged |
|
2020-03-16 12:13:40 |
Dimitri John Ledkov |
bug task added |
|
snapd (Ubuntu) |
|
2020-03-16 12:13:47 |
Dimitri John Ledkov |
tags |
|
rls-ff-incoming |
|
2020-03-16 12:13:52 |
Dimitri John Ledkov |
snapd (Ubuntu): importance |
Undecided |
Critical |
|
2020-03-16 12:48:11 |
Robie Basak |
bug |
|
|
added subscriber Robie Basak |
2020-03-16 14:27:13 |
Samuele Pedroni |
snapd: assignee |
|
Michael Vogt (mvo) |
|
2020-03-17 07:31:50 |
Michael Vogt |
snapd (Ubuntu): status |
New |
In Progress |
|
2020-03-17 07:31:52 |
Michael Vogt |
snapd: status |
Triaged |
In Progress |
|
2020-03-18 21:39:27 |
Samuele Pedroni |
snapd: importance |
Undecided |
Critical |
|
2020-03-27 17:17:14 |
Michael Vogt |
snapd (Ubuntu): status |
In Progress |
Fix Committed |
|
2020-03-27 17:17:16 |
Michael Vogt |
snapd: status |
In Progress |
Fix Committed |
|
2020-04-02 09:21:38 |
Michael Vogt |
snapd: status |
Fix Committed |
Fix Released |
|
2020-04-02 09:21:41 |
Michael Vogt |
snapd (Ubuntu): status |
Fix Committed |
Fix Released |
|
2020-05-04 16:53:28 |
Ian Johnson |
snapd: status |
Fix Released |
New |
|
2020-06-08 09:54:56 |
Michael Vogt |
snapd (Ubuntu): status |
Fix Released |
Triaged |
|
2020-06-08 09:55:00 |
Michael Vogt |
snapd: status |
New |
In Progress |
|
2020-06-08 09:55:02 |
Michael Vogt |
snapd (Ubuntu): status |
Triaged |
In Progress |
|
2020-06-08 10:37:49 |
Michael Vogt |
snapd: status |
In Progress |
Fix Committed |
|
2020-06-08 10:37:53 |
Michael Vogt |
snapd (Ubuntu): status |
In Progress |
Fix Committed |
|
2020-06-23 10:38:18 |
Zygmunt Krynicki |
snapd: milestone |
|
2.45 |
|
2020-06-23 11:03:28 |
Zygmunt Krynicki |
snapd: status |
Fix Committed |
Fix Released |
|
2020-10-01 11:24:09 |
Maciej Borzecki |
snapd (Ubuntu): status |
Fix Committed |
Fix Released |
|