New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Will enabling swap eat up IOPS quota?
Will enabling swap eat up the IOPS quota?
RAM is 2 GB. If I enable swap, about 0.5 gb gets moved to the disk. But it seems to be affecting the overall performance, load times (unless it's something else I've missed).
As far as I know, the machine allows only 100 IOPS (restricted).
Comments
Well, only if you use it ;-).
Avoid using swap I'ld say.
it's using disk afterall... It'll be always, always be slower than RAM. And especially with an IOPS limited machine, you're putting a burden on those numbers...
As far as I know, the machine allows only 100 IOPS (restricted).
I really wouldn't enable swap on a machine limited to 100iops, that's borderline useless.
Even Time4VPS storage VPS offers 200 IOPS (IIRC), this much is really low for something like this!
Would you mind give us a #free command result on this server please ?
edit : possibly with swap and without swap.
Sounds like every resold host here anyway.
If you don't use swap and your ram fills up to the max your server will crash in some circumstances.
I've alwayse enabled swap for such incidents.
I'd choose to enable swap, but also change the swappiness to minimum. Your kernel needs swap for memory overcommitting, and also demands some free memory to cache more important thing (like your database etc).
HI, sorry for the delay. But it's an Amazon Lightsail instance. It's what they call a gp2 disk, with 100 io on average with bursts possible (if you've developed enough io credits over the previous hours/days).
I gave it up. It became too slow after a few hours. Thanks for your suggestions.
For the record, Lightsail's pretty bad.
This is from another of my machines (on expertvm). Same problem, I suspect.
test: (groupid=0, jobs=1): err= 0: pid=1229: Fri Mar 30 14:06:55 2018
read: IOPS=135, BW=5421KiB/s (5551kB/s)(120MiB/22652msec)
bw ( KiB/s): min= 80, max=19440, per=99.32%, avg=5384.40, stdev=3316.79, samples=45
iops : min= 2, max= 486, avg=134.58, stdev=82.92, samples=45
write: IOPS=46, BW=1870KiB/s (1915kB/s)(41.4MiB/22652msec)
bw ( KiB/s): min= 400, max= 6160, per=100.00%, avg=1885.25, stdev=1108.14, samples=44
iops : min= 10, max= 154, avg=47.09, stdev=27.70, samples=44
cpu : usr=0.68%, sys=1.33%, ctx=4081, majf=0, minf=7
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.2%, 16=0.4%, 32=0.8%, >=64=98.5%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
issued rwt: total=3070,1059,0, short=0,0,0, dropped=0,0,0
We had a tiny server running on lightsail and it works pretty well for us. Of course we are very light on I/O so that crap disk is not a problem for us.
13 minutes of network downtime in 400 days. 1 minute https requests w/ Pingdom & Uptimerobot.
https://imgur.com/cPOaaiK
with these 0.5gb? yes.
You should be wise to determine the value of swappiness and cache pressure
You need more ram
I would argue against disabling swap. Only times I've found spamassassin or yum not working (or crashing) was when the machine had no swap. Once the swap was added, everything miraculously started working.
But nearly every VPS provider these days keeps swappiness at 0, and doesn't provide swap in the default config. Probably because of the IO issues.