WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

1.5K

Not interested in distros. I have a cheap 1GB RAM Ubuntu vps that needs to run stuff requiring 3+GB of RAM resulting in 2+GB swap file. My gut instinct tells (incorrectly?) me it should be possible tweak Linux for such conditions. I dont expect miracles (or maybe I do?) but it has to do a thing that can take up to an hour, getting this time down a bit would be great. If it is slower under normal conditions I don't care as I can just set setting to defaults under such normal conditions.

I have experimented a bit with zswap and "think" performance got a bit better with some values. Will try zram next.

Not interested in distros. I have a cheap 1GB RAM Ubuntu vps that needs to run stuff requiring 3+GB of RAM resulting in 2+GB swap file. My gut instinct tells (incorrectly?) me it should be possible tweak Linux for such conditions. I dont expect miracles (or maybe I do?) but it has to do a thing that can take up to an hour, getting this time down a bit would be great. If it is slower under normal conditions I don't care as I can just set setting to defaults under such normal conditions. I have experimented a bit with zswap and "think" performance got a bit better with some values. Will try zram next.

(post is archived)

[–] 0 pt (edited )

No success. I found no setting for zram that improved performance. I tried lz4 and zstd algorithms and different sizes of the zram but seems to work better without zram for some reason. zram was able to cram a lot of into RAM, compression ratio was between 3 and 5 so normal swap was barely used at all, but "system" cpu usage got higher (because all compression/decompression?).

Tried lowering swappiness and increasing vfs_cache_pressure but that I think made performance worse.

Seems default settings have worked the best, how sad.

iostat -c on default settings:

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          38.69    0.49   42.71   15.94    0.02    2.15

iostat -c with zram (zstd). iowait is lower but %system higher (and %user lower):

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          12.33    0.17   83.96    2.83    0.01    0.70