Score:0

Why no Swap partition

ug flag

So I installed ubuntu onto a virtual machine and just realized that it no longer creates a swap partition. Why is this I thought those were important.

Nmath avatar
ng flag
Does this answer your question? [swap partition vs swap file](https://askubuntu.com/questions/904372/swap-partition-vs-swap-file)
Terrance avatar
id flag
It defaults to `/swapfile` creation unless specified during a "Something Else" setup when installing the OS.
Mintmag avatar
ug flag
it's not shown in the list of partitions.
Christian Ehrhardt avatar
sl flag
In a virtualized environment it is usually bad to swap in the guest. It could happen that the guest swaps in from it's file/disk onto a page that is swapped out by the host which needs to swap in ... - just bad. If anything then the host should have swap and if overall having a rather dense setup ballooning can be considered to further help. I can't find where (so no official answer) but I'm rather sure the installer considers that.
Terrance avatar
id flag
@Mintmag `/swapfile` is a file and not a partition so it will not show up in the list. Look at `cat /etc/fstab` and you should see a line about swap in it. Also, `swapon` from a terminal window will show you what swap is running on your system.
Mintmag avatar
ug flag
Sorry, for the late reply. So this is normal behavior than and a swap partition isn't necessary? What happens if you create one regardless?
Mintmag avatar
ug flag
Any thoughts on adding a swap partition when one is already created in the system
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.