Feature Request: Support compress cache mode

Suggestions around PrimoCache
Post Reply
sunday
Level 1
Level 1
Posts: 3
Joined: Sat Dec 06, 2014 2:48 am

Feature Request: Support compress cache mode

Post by sunday »

As an enthusiast PrimoCache, I would like to use compressed mode for caching.
In a modern PC / Server, CPU has more power, I think you can add the compression cache mode like Windows disk compression feature to save space.
If you add this feature, I think it would be an unique and unprecedented feature in the similar product. Anyway, speed compression / decompression is faster than the speed of read / write directly on hard drives ?
This feature may take an additional less 5% CPU but gain 50% or more space, it can be accepted ?

Thanks for attention.
User avatar
Support
Support Team
Support Team
Posts: 3627
Joined: Sun Dec 21, 2008 2:42 am

Re: Feature Request: Support compress cache mode

Post by Support »

Thanks for the suggestion!
idefix44
Level 8
Level 8
Posts: 137
Joined: Sat Oct 26, 2013 2:13 pm

Re: Feature Request: Support compress cache mode

Post by idefix44 »

I don't think that it's a good idea.
Because the PrimoCache main purpose isn't to gain space on the L2 SSD disk, but to gain speed on the HDD targeted disk.
How read/write + compress/decompress cant it be faster than only read/write?
InquiringMind
Level SS
Level SS
Posts: 477
Joined: Wed Oct 06, 2010 11:10 pm

Re: Feature Request: Support compress cache mode

Post by InquiringMind »

It wouldn't be faster on a per-operation basis, but would allow for more data to be cached which *might* improve performance overall. NTFS has its own compression which is pretty CPU-light and most modern desktop systems have plenty of CPU cycles to spare.

However it might only benefit L1 (RAM) rather than L2 (SSD) caches.
sunday
Level 1
Level 1
Posts: 3
Joined: Sat Dec 06, 2014 2:48 am

Re: Feature Request: Support compress cache mode

Post by sunday »

I totally agree with "InquiringMind" that this mode should be applied in the L1 cache (RAM).
In my server, CPU rarely exceeded 65%, so there is excess power to use.
While using more RAM is a big problem because it is used for many other applications.
anocs
Level 1
Level 1
Posts: 3
Joined: Mon Nov 03, 2014 9:51 pm

Re: Feature Request: Support compress cache mode

Post by anocs »

Using some nowadays fast compression algorithms e.g. LZ4 (ZHUFF) / SNAPPY / LZF / LZO it might be brilliant idea to have cache compressed...
InquiringMind
Level SS
Level SS
Posts: 477
Joined: Wed Oct 06, 2010 11:10 pm

Re: Feature Request: Support compress cache mode

Post by InquiringMind »

anocs wrote:...it might be brilliant idea to have cache compressed...
The downside is that much of the data in the cache is unlikely to compress well (executable files, Windows DLLs, etc) with fast algorithms. The most easily compressible items will tend to be frequently updated (so less likely to benefit from caching at all) application data like word processor documents, spreadsheet files or saved games. And many large data files (video, music, JPG/PNG graphics, ISO images) are compressed already so wouldn't benefit.

I wouldn't rule this feature out, but I think that it may have less real benefit than many here are hoping for. Some type of dynamic compression (where the amount is adjusted according to available CPU) might be best as an option for L1 (RAM) caching.
DMatter
Level 2
Level 2
Posts: 6
Joined: Tue Feb 14, 2012 11:32 am

Re: Feature Request: Support compress cache mode

Post by DMatter »

+1 for a standard PC the RAM size is not 16Gb or +

good compress + dynamic size of ram cahce is good for me
Post Reply