Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Should I enable/disable memory compression?

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

Last edited:
Sunology entire system is dumb AF tbh, plenty of free ram, it insists of using swap instead.
1707651088917.webp
 

Attachments

  • 1707650628881.webp
    1707650628881.webp
    24.9 KB · Views: 13
Last edited:
When I compared with, and without, but also different sized ram options, comparing 2, 6, and 10 GB, on a 720+… The Ram and CPU results were not at all clear, based on changing ram amount,Or Ram Compression. That’s where I came up with the “Bragging Rights” benefit on ram expansion. The only one thing that always changed was Cache size, but even increasing that Cache did not seem to improve file access either — which furthered the “Bragging Rights” benefit idea. So more info on what this does: sure would help!
Now during this time we also played around with changing M2Cache sizing.
I did Not see a difference between 128 & 256 GB of M.2 Cache! But I did not try with vs without M.2 Cache at that time, which prevents me from any results on that.
 
When I compared with, and without, but also different sized ram options, comparing 2, 6, and 10 GB, on a 720+… The Ram and CPU results were not at all clear, based on changing ram amount,Or Ram Compression. That’s where I came up with the “Bragging Rights” benefit on ram expansion. The only one thing that always changed was Cache size, but even increasing that Cache did not seem to improve file access either — which furthered the “Bragging Rights” benefit idea. So more info on what this does: sure would help!
Are you high ? :)
What are you talking about ? Adding ram to a system is about bragging rights ? Wtf.
 
tests I did saw no speed or access difference. Therefore —the only benefits were “Bragging Rights”
 
Anyway, since it seems that the synology tweaked linux is on the IQ level of a 2yo child I am just disabling both swap as well as memory compression altogether, since 8GB of RAM is definitely enough and I won't waste any electricity or further resources for this dumb NAS insisting on using either memory compression or swap file all the fucking time.

swapoff -a see yaaa
 
Nice, maybe now you'll have time to work on that vocabulary.
Ah, I see you’ve got a lexicon magnifying glass! Impressive. But hey, while you’re busy scrutinizing my vocabulary, I’ll be over here conquering the thesaurus one word at a time. 📚💪
 
That would be the need for explanation of these, then!
Yes please care to elaborate on why synology chose the kernel options they use right now, which compared to any other server or NAS OS are absolutely nonstandard in terms of swap use.
You see, over the past 15+ years I worked with various vendors and systems, including EMC, NetApp, none of them prioritized use of SLOW SWAP STORAGE instead of available RAM.

Go on, I'll wait.

It's not like expandability is done via non-standard/non-supported tinkering and hacks, it is literally what synology supports, memory expansion slot is available and they sell memory sticks themselves.
So by setting kernel in a way that plain ignores available RAM and instead keeps swapping, to me, it seems like a failure on Synology side.

While amusing and fun, your comments were absolutely not helpful and just wasting my time.
 
Firstly, personal digs are against the forum rules.

As for memory compression, it's probably coming from when the NAS had 256 and 512 MB RAM and people wanted to run more than plain file sharing and lightweight network services. When paging out to HDD space this does have performance issues: anyone in the past that has upgraded a PC/Mac/etc from HDD to SSD, without changing RAM size, will attest to the performance improvement of not using spinning swap. I guess the idea is to offload using compression (CPU) and RAM storage rather than write to HDD. But if your NAS rarely ever over uses its RAM then it's arguable as to whether having compression enabled (and seems from reports used regardless) is truly necessary.
 
Firstly, personal digs are against the forum rules.

As for memory compression, it's probably coming from when the NAS had 256 and 512 MB RAM and people wanted to run more than plain file sharing and lightweight network services. When paging out to HDD space this does have performance issues: anyone in the past that has upgraded a PC/Mac/etc from HDD to SSD, without changing RAM size, will attest to the performance improvement of not using spinning swap. I guess the idea is to offload using compression (CPU) and RAM storage rather than write to HDD. But if your NAS rarely ever over uses its RAM then it's arguable as to whether having compression enabled (and seems from reports used regardless) is truly necessary.
The main problem is that synology insists on using swap even when not needed, this is the main culprit.
Due to this reason, enabling memory compression is a must, since then it 'swaps' by compressing memory instead of using disk.

However, by disabling both swap file as well as memory compression, the memory is getting used properly now.

So this is a huge flaw and problem on synology side from my point of view, but they dont really care, therefore my solution is to simply disable swap and memory compression altogether. (When using additional memory module ofc)
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Question Question
I am planning (hopefully) on using Synology Migration Assistant to go from source DS415+ to destination...
Replies
0
Views
115

Thread Tags

Tags Tags
None

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top