Guest User!

You are not Sophos Staff.

[8.970] UTM9 Beta Performance Tweak

I've noticed that UTM9 just isn't up to par with what i'm going to call UTM8.  I've also noticed a ton of swapping being used even with vm.swappiness=0 set.  even with 3 gigs of ram installed I was still swapping 25% even though the system was caching more than 25% of physical ram.  I've seen this before in older kernels.  Back in 2.4 I filed a bug with centos and by extension redhat about a similar problem...it was later fixed in the next kernel patch.  

I decided to try something..something i did back in the 2.4x days....I disabled swap entirely.  I now have the latest beta running with 3 gigs of ram and zero swap(swapoff -a).  I've had this running for 24 hours:

 free
             total       used       free     shared    buffers     cached
Mem:       3087332    2730288     357044          0      94552     769160
-/+ buffers/cache:    1866576    1220756
Swap:            0          0          0

Within 24 hours i would have 10% swap...within 36 hours i would have 25% swap.  There's no reason for a system that is under ZERO memory pressure to be swapping to disk at a rate of 25% or higher when more than 30% of physical ram is unused.  I could go digging into the kernel deeper to find out why this is occurring but this is a development problem..not a partner/user problem.  V8 does NOT display this behavior.  I've noticed this since the first beta of UTM9.  I'm curious how many other performance regressions I've found might be addressed?  The testing begins..[:)]
Parents
  • As i said i'm intending to start conducting my usual testing that i do..and i'll post the results.  but right now I can say 2 gigs isn't enough.

    As to ubuntu they have their kernel set to a swappiness of usually 40 or 60(i forget as their versioning is very quick).  Windows isn't comparable because it allocates a byte of swap for each byte of ram used by default whether the allocation actually contains data or not.  I can say i have noticed(as has my wife who is quick to let me know when performance changes) is the web proxy is "much snappier" today than yesterday before my disabling swap trick.  I never inform the family when i change something...so there's no "mental contamination" of the results.  if i get feed back one way or another i then start digging and posting here..[[[:)]]]  I've also noticed a marked decrease in disk activity on the astaro's raid 1 array since this...mostly because the system isn't writing to swap.  If the system is using the disk at 25% or more on an ongoing basis that's going to steal cycles from the cpu.

    I'll keep this updated as i test more things..[[[:)]]]  I do stand by my opinion that due to the high amount of swapping Astaro UTM9 is engaging in 3 gigs should be the minimum amount of ram for any astaro installation.  I'm Also going to try the "recommended minimum" of 2 gigs..i expect swap to take off like a rocket..hopefully i'll be proven wrong..[[[:)]]]

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

Reply
  • As i said i'm intending to start conducting my usual testing that i do..and i'll post the results.  but right now I can say 2 gigs isn't enough.

    As to ubuntu they have their kernel set to a swappiness of usually 40 or 60(i forget as their versioning is very quick).  Windows isn't comparable because it allocates a byte of swap for each byte of ram used by default whether the allocation actually contains data or not.  I can say i have noticed(as has my wife who is quick to let me know when performance changes) is the web proxy is "much snappier" today than yesterday before my disabling swap trick.  I never inform the family when i change something...so there's no "mental contamination" of the results.  if i get feed back one way or another i then start digging and posting here..[[[:)]]]  I've also noticed a marked decrease in disk activity on the astaro's raid 1 array since this...mostly because the system isn't writing to swap.  If the system is using the disk at 25% or more on an ongoing basis that's going to steal cycles from the cpu.

    I'll keep this updated as i test more things..[[[:)]]]  I do stand by my opinion that due to the high amount of swapping Astaro UTM9 is engaging in 3 gigs should be the minimum amount of ram for any astaro installation.  I'm Also going to try the "recommended minimum" of 2 gigs..i expect swap to take off like a rocket..hopefully i'll be proven wrong..[[[:)]]]

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

Children
No Data