I try Peppermint OS (a distro based on Lubuntu) on live usb. I check ram by the command
and the result is
peppermint@peppermint ~ $ free -h total used free shared buff/cache available Mem: 3.8G 1.0G 1.0G 866M 1.8G 1.8G Swap: 5.7G 51M 5.7G
My usb is 4G, my ram is 4G.
Why swap is 5.7G? And does this happen in any other ubuntu based distros?
As I understand, trying ubuntu distros on live usb does not create swap on hard disk, so I considered 3 cases:
I already created a swap of 4G before (when I created dual boot), and this swap is used, but here swap is 5.7G
Another swap is created on the usb, but my usb only has 4G; so why swap is 5.7G?
A swap of 1.7 G is created on usb, and 5.7G is the result of combining the two swaps. But I check my usb is 2.5G free and the linux iso in it is about 1.3G, so cannot have a swap of 1.7G on my usb
As sourcejedi suggested, here is the result of
peppermint@peppermint ~ $ cat /proc/swaps Filename Type Size Used Priority /dev/sda5 partition 3998716 0 -2 /dev/zram0 partition 1006892 26320 5 /dev/zram1 partition 1006892 26044 5