How to increase swap space

balanga

Son of Beastie

Reaction score: 155
Messages: 3,353

If it looks like I am short on swap space is there any simple way to change partition sizes to create a bigger swap partition? Are there any other solutions available?
 
OP
OP
B

balanga

Son of Beastie

Reaction score: 155
Messages: 3,353

So if I create a /usr/swap0 file, is this a replacement for my swap partition, or an extension to it?
 
OP
OP
B

balanga

Son of Beastie

Reaction score: 155
Messages: 3,353

Just out of interest, if I can create a swapfile whenever I want, is there any need for a swap partition?

Is one more efficient than the other?
 

Zirias

Aspiring Daemon

Reaction score: 252
Messages: 650

Sure a partition is more efficient, for swapping, abstractions of a filesystem are unnecessary. Also, a swap file can cause issues with filesystems that dynamically allocate memory for operations (like ZFS)
 
Top