I would like to tweak some settings on my server to better use the resources I have.

The Linux server in question has 32gb RAM, running general Docker containers of the selfhosted variety, no AI, and 250gb SSD. Currently, the server has no swap with swappines set at 60.

Swap:              0           0  
vm.swappiness = 60

Generally, only one app is being engaged at a time and everything seems to respond fairly well.

So, my question is, what would be a good swapsize and swappiness level for this server? I realize that all of this is dependent on how the server is used and load level during operation. Is there a rule of thumb to go by. I’m sure there will be some tweaking involved, but I was looking for a good point to deviate from. Where do you guys set swap and swappiness?

Thanks

  • brucethemoose@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    4 days ago

    Yeah I mean it really depends on the app.

    If it just occasionally peaks, maybe modest zram and low swappiness is all you need.

    But sometimes i crack it up (and basically disable zram) because I’m paging like 4x my RAM pool size onto ssds with big files.