1

I ever install Ubuntu without swap partition or file. Is that OK or must I create one?

1

2 Answers 2

1

Swap partition is needed for the system itself and some apps go crazy if there is no swap partition, and it is used for hibernation too. So I think it would worth that amount of space it needs.

2
  • Not true. I've been running the linux desktop for years with a swap. When apps go crazy and eat all the memory, then the OOM comes along and kills them and that's the end of that. It's not a big deal anymore. Jun 20, 2020 at 15:53
  • 1
    @SurpriseDog I absolutely agree. I used to have problems with not having swap, but nowadays it is not that necessary anymore. Although it is still a good thing to have a swap partition to make the kernel be able to actually swap some pages that are unlikely to be needed soon, so this memory can be used for caching.
    – tvili999
    Apr 7, 2021 at 21:15
0

The Swap partition is necessary. However, IF the PC that has been installed on has large amounts of RAM, the swap partition may be used less. System itself will deal with RAM/swap usage. Should be no real need to tinker. With small RAM amounts, swap partition is crucial! In this situation, swap is needed so that the system has a 'place to go' once the RAM is filled up. Remember that swap is going to behave as if it is RAM, meaning random access. That means data is constantly in/out of RAM/swap while applications and the OS itself runs. Hope this helps Craig

Not the answer you're looking for? Browse other questions tagged .