Accelerating PrimoRAMDisk with PrimoCache by 100%!

FAQ, getting help, user experience about PrimoCache
Axel Mertes
Level 9
Level 9
Posts: 184
Joined: Thu Feb 03, 2011 3:22 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Axel Mertes »

These are the results of the Primo RAM Disk SCSI with with read and write caching enabled (defer writes 300s):
as-ssd-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s MBs 19.01.2017 11-38-42.png
as-ssd-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s MBs 19.01.2017 11-38-42.png (29.25 KiB) Viewed 6887 times
as-ssd-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s IOPS 19.01.2017 11-38-42.png
as-ssd-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s IOPS 19.01.2017 11-38-42.png (28.63 KiB) Viewed 6887 times
Axel Mertes
Level 9
Level 9
Posts: 184
Joined: Thu Feb 03, 2011 3:22 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Axel Mertes »

So it appears to me that the sequentials reads from the RAM Disk are about twice as fast with PrimoCache enabled than without PrimoCache. Also the IOPS are significantly higher on when PrimoCache is enabled.

Only the 4K-64 Thread reading/writing shows about twice the speed on the uncached RAM Disk.

So for sequential work, using a HDD with PrimoCache seems better than a RAM Disk. And the RAM Disk is better for highly concurrent I/Os as it seems. I still wonder a bit why that is, however, different measurement tool, slightly different results.

Unfortunately I can not measure the Primo RAM Disk with DIrect IO mode, nor a normal HDD RAID enclosure with the AS SSD Benchmark, because the first one does not show up and on the second one the Benchmark always crashes.

I stand with my finding that for my work PrimoCache is actually making the RAM Disk twice as fast - and a HDD using PrimoCache is as fast too! The values I see in AS SSD before it crashes on the HDD are even higher than that of the cached Primo RAM Disk SCSI... The same I've already seen in ATTO Disk Benchmark 3.05.

The only question I remain with right now is what exactly happens with this 4K-64 Thread measurements, as the IOPS had been higher on the cached disk, why do 64 Threads turn out slower than without the cache?
Last edited by Axel Mertes on Thu Jan 19, 2017 1:43 pm, edited 1 time in total.
Axel Mertes
Level 9
Level 9
Posts: 184
Joined: Thu Feb 03, 2011 3:22 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Axel Mertes »

Here the AS SSD Compression Benchmark running on the Primo RAM Disk SCSI:

Without PrimoCache...
as-compr-bench Romex RAMDISK SCSI no caching 19.01.2017 12-17-11.png
as-compr-bench Romex RAMDISK SCSI no caching 19.01.2017 12-17-11.png (41.7 KiB) Viewed 6883 times
With PrimoCache read write defer 300s...
as-compr-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s 19.01.2017 12-13-33.png
as-compr-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s 19.01.2017 12-13-33.png (43.67 KiB) Viewed 6883 times
So again, with PrimoCache the RAM Disk appears massively faster...
Axel Mertes
Level 9
Level 9
Posts: 184
Joined: Thu Feb 03, 2011 3:22 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Axel Mertes »

And finally the AS SSD copy benchmark running on the Primo RAM Disk SCSI:

Without PrimoCache...
as-copy-bench Romex RAMDISK SCSI no caching 19.01.2017 12-21-10.png
as-copy-bench Romex RAMDISK SCSI no caching 19.01.2017 12-21-10.png (17.92 KiB) Viewed 6883 times

With PrimoCache read write defer 300s...
as-copy-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s 19.01.2017 12-28-46.png
as-copy-bench Romex RAMDISK SCSI with PrimoCache read write defer 300s 19.01.2017 12-28-46.png (17.75 KiB) Viewed 6883 times
In this case the values are almost on par, show no very big difference, in two of three cases the PrimoCache again accellerated the Primo RAM Disk.

Any clues?
User avatar
Support
Support Team
Support Team
Posts: 3731
Joined: Sun Dec 21, 2008 2:42 am

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Support »

@Axel Mertes, many thanks for these testings!
Yes, this is kind of weird. Theoretically, ramdisks shall be faster than cache. I have reported this issue to our R&D colleagues and will study it later.
Adz
Level 4
Level 4
Posts: 20
Joined: Thu Dec 22, 2016 1:00 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Adz »

Does increasing defer write latency increase performance? I have mine set at 5 second. Should i increase it? This hasn't been answered.

Cheers.
Axel Mertes
Level 9
Level 9
Posts: 184
Joined: Thu Feb 03, 2011 3:22 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Axel Mertes »

Increasing defer write latency may be able to increase performance as long as the available memory does not run out. However, the longer the defer write time is, the more risky it gets when there is a powerloss or simply a blue screen crash.

For unimportant data I even use "forever" settings, which is nearly close to a typical RAM disk, which is only saving to disk when you close down the system - or memory runs out.

If your defer write time is too short, the system may be still writing data to the cache, while the cache begins writing back to the harddisk drive at the same time. If memory is low (filling cache completely up), this will end up in PrimoCache no longer being fast at writes, as it can only store only directly to HDD or to cache, when other cache blocks have been free'ed up by writing them to disk first. As I wrote - it depends on your memory size, the defer time setting, your workload. Finding the right balance is very much dependend on what you do. On a desktop it may be hard to find "THE" solution, but you may still feel accelerated. On the other hand, having writes cached - if its not really necessary - is something I would currently recommend to avoid for security reasons.

I have my main server volumes running with read only caching, while I have a disk-to-disk backup ("intelligent" mirror running scripts or software such as Syncovery) that utilizes a write cache with 300s deferred writes. This way the mirror tasks runs really fast, and in case of a failure its unlikely that I loose all at once, as at least the original has no write delays, so I could mirror difference later again.
Adz
Level 4
Level 4
Posts: 20
Joined: Thu Dec 22, 2016 1:00 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Adz »

4gb ram pc is not recommended using primocache? i hear, it's best to leave as much physical ram for windows as much as possible if you are low ram pc.
Axel Mertes
Level 9
Level 9
Posts: 184
Joined: Thu Feb 03, 2011 3:22 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Axel Mertes »

Hi Adz,

I can't really say that a 4 GB RAM PC is not recommended for using PrimoCache, but its clear that the less RAM you have, the more likely Windows and other programs will run out of memory (strongly depending on what you do) and will instead beging swapping in/out RAM pages to the swap file. So by dedicating memory to PrimoCache you may end up forcing your computer to stronger swapping, which could affect overall performance strongly.

The best would be to do what you usually do and track the RAM usage using e.g. Task Manager. If you see that you never use more than 2 GByte for instance, its potentially save to dedicate some RAM to PrimoCache. Usually PrimoCache will offer you to use as much RAM as it finds free, so creating a cache in the moment of strongest PC memory usage might be a wise decision. If PrimoCache finds too few RAM, it may not work out, as e.g. the index for the cache will usually take some serious amount of RAM too (and this overhead gets bigger, if your HDD and Cache block size is small..., so 64KB blocks is smaller overhead than 4KB blocks).
Adz
Level 4
Level 4
Posts: 20
Joined: Thu Dec 22, 2016 1:00 pm

Re: Accelerating PrimoRAMDisk with PrimoCache by 100%!

Post by Adz »

How do i know my hdd block size?

Cheers for the replies btw!
Post Reply