Swap partition too small :(

As you have 16GB of physical RAM, this shouldn't be much of a worry for you, unless you plan on having hundreds of tabs open in Firefox, are running a video, while editing a video, while playing a game and conference calling on zoom all simultaneously.

It all depends on how you use your computer. Gnome uses 2 to 3GB of RAM, other applications using far less. Do you close applications or keep them open in the background, just in case?

I have 32GB of RAM. With VSCode running, KDE desktop (only a little less memory intensive), Zoom call, Discord Call, Slack and Firefox running.... it was less than 16GB of RAM used while compiling some rather large applications. My swapfile is 2GB, and is never used, even with a very low swappiness threshold.

Your RAM is adequate, depending on use.

I've just automatically followed the double physical RAM advice after extensive research on the matter a long time ago. It has taken me many years to get to a place with a 16 Gb of RAM machine. And in any case I have plenty of space on a 1 Tb drive.

1 Like

16 GB ram is already enough for doing a lot of things on windows, so keeping in mind linux uses far less ram, I dont see how would it be neccessary to have a swap partition

my laptop has 12 GB ram (10.7 GB detected by zorin) and with that I have been able to use a virtual machine of 6 GB, have some tabs open on firefox, do some homework in libreoffice at the same time and there was still some unused ram

If you do some kind of ram-intensive work that requires more than that (maybe a very detailed 3D animation?) then that makes more sense. But for normal daily usage or gaming, you dont really need more

Any reason for that ?

If swap area is accessed many times it means the life of the SSD may be shortened. HDD probably only necessary if low RAM, but I always err on the side of caution!

So what you suggest for SSD ? I have 16 GB RAM

You don't need swap area for SSD. If it puts a swap file in (the installer) it should make itself a suitable size. I cannot check this any more as the SSD went into my eldest's Desktop as their hotswap HDD sounded like it was failing to put Windows 11 on it.

Good read here:


I clicked "Like" on two of @swarfendor437 's posts for good reason.
Swap is useful in the right circumstances: It can prevent an out of memory crash under an intense workload.
But it is not Free RAM.

When the system needs to fall back to swap (Partition or file) there will be a delay in that action. It won't prevent sluggishness, nor will it clear out the unnecessary caching of used data in RAM.

I do not use Swap (I am on SSD)- and when my RAM fills up, even higher than 90%, on Zorin OS, the system clears as necessary, keeping the performance smooth and uninterrupted.
If I enable swap, however, then I get a lot of pauses and delays as the system switches to accessing swap. It is not a smooth experience.

On rare occasions, I may run the following to clear out RAM while working.

sudo sync

sudo sysctl -w vm.drop_caches=3

sudo sync

Warning: It is necessary to sync both before and after clearing RAM!


If you have a SSD as your primary drive, and you need additional swap space due to having low memory, I'd suggest:

  1. get more memory (if possible)
  2. buy a spinning-rust USB drive and create a partition on it, then use that partition as a second swap space, with the same priority as the first swap space.

Nah, it is not my primary mission :slight_smile:

I just want to have in case if needed (when I am playing steam, multittasking , watching YT etc) but that case is really rare

I have 16GB RAM in my Asus laptop - zero swap, but also using NVMe storage. I'm usually sitting around 1 - 2.5GB RAM use on idle; just a tad more with Firefox open. I've not ran into any issues with no swap - even did some 'intense' video editing with Kdenlive lol but, didn't have an effect on RAM - just about 5GB used, and still ~8GB free to use.

To each their own!


Thanks to everyone for the replies, this has kinda blown up which I did not expect

I believe it's a partition, I'll post swapon here here:

lakimens@lakimens-zorin:~$ swapon -s
Filename				Type		Size	Used	Priority
/dev/dm-2                              	partition	999420	867728	-2

My device is Lenovo Yoga 7 14", AMD 6800U, 16GB RAM, no discrete GPU, 512GB SSD Storage.

I downloaded the image from the official website (core version) and dragged it into my ventoy USB drive, then booted from the drive and installed it from there.

Hope this is enough info! Let me know if something more is needed!

Using a tool like stacer can show you if the swap is ever even used and what the performance of other parts of the system are like during it's use.

You may very well be looking to improve something that is never utilized.

I understand, but I mostly want swap equal to RAM to be able to hibernate the device.

I find sleep somewhat unreliable at times. I've had devices wake up in my bag and waste all the battery, which can't happen under hibernate.

1 Like

It makes more sense why you are attempting this...would you post a screenshot of Disks, with the drive that contains the swap partition?

The only way to increase a swap partition is to modify the partitions to allow for the space and resizing.

Gday @lakimens ,
Try this link may help.

For swap size create it to double your ram,,
Eg: If you have 4Gb, create an 8Gb swap file.

Something that may help you in figuring out your partitioning: Partitioning Demistified

So engaging in enlarging the file size will enlarge the swap?

As the OP has shown:

It is a partition. Increasing the file size may also perform the same for those that are not using hibernation, but it may require the swap configuration to be changed. I do not know any other way to increase a file size manually, which may not have any effect since the size is defined elsewhere.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.