#Should I create a swap file for Casa OS?

6 messages · Page 1 of 1 (latest)

round elm
#

Hi all, I am running Casa OS on an AMD X64 setup and it has been running great (AMD Athlon II X4 630, 4 GB RAM, 2TB SATA SSD). I host just a few apps i.e. Jellyfin, Home Assistant, Transmission and xteve. Recently I notice Jellyfin is having increasing demands on RAM, requiring around 1.5 GB. This may lead to my RAM being 90% full which has caused a bit of slowdown in Jellyfin and the odd crash. I was wondering would a swap file be a good solution. As far as I know, I don't have one set up in Debian. Does anyone here have experience of this? Is a swap file the way to go, or am I better doubling up on RAM?

wraith verge
#

If you can more "real" memory is always a better option, as its faster thana hard drive, but that depends on cost, and that can depend on what's in the machine already and what slots it has, if you have 2 DIMM slots and 2 x 2GB modules then your probably going to have to replace both with 2 x 4GB modules>

I'd look at a enabling a swap file , try typing** sudo swapon --show ** to see if you actually have a swap file already. Best practice is usually to set a swap a 2 x the physical ram.

If the swap file helps you can either keep it or look to get more physical RAM, if it makes no difference the issue may not be memory related.

round elm
#

I have 4 DIMM slots and 2 are occupied with 2 x 2GB. I did a search on ebay and I found 2 x 2GB for around £50.... feels pricey for old hardware! I can get 2 x 1GB for much cheaper, bringing the total to 6GB which might be enough for my needs. I think I'll create the swap file as you suggest and see how the performance is. If after a while I see that I don't actually need much more RAM, then I might just go with the cheap 2GB upgrade.

umbral tangleBOT
#

GG @round elm, you just advanced to level 1!

wraith verge
#

Check the Mobos manual. Depending on the hardware it may allow you to only populate one slot.
And yes old hardware is annoyingly pricey in many cases..

round elm
#

The mobo manual says "You may install a maximum of 4 GB DIMMs on each slot"

I decided to set up a swap file (2GB). So far so good. RAM is averaging about 60% vs. 70-90% previously.