StarWind SAN & NAS Free - L1/L2 Cache

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Anatoly (staff), Max (staff)

Post Reply
link855
Posts: 11
Joined: Thu Dec 10, 2015 1:08 pm

Thu Feb 03, 2022 2:05 pm

Hi All, I'm trying the new StarWind SAN & NAS Free appliance for the first time, I had previously make some experience with StarWind VSAN (installed directly on a physical windows based storage box) and the VSA linux based appliance.
I have notice that on StarWind SAN & NAS Free appliance, configuring a new virtual disk there is no option to use L1 RAM Cache or L2 Flash Cache on top of capacity drives as it is usually available on StarWind VSAN.
My ESXi server has SAS (capacity) and SSD (cache) drives directly attached to storage controller in target mode (no RAID functionalities). I don't know how I can leverage SSDs or RAM for accelerate IO operations.

Thanks and kind regards
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Thu Feb 03, 2022 3:11 pm

Thanks for your question.
There is a way to add cache via config files. But here are my thoughts on why I would not do this for a standalone instance.
For best performance, I'd suggest using SSD array not as L2 cache but as underlying storage. L2 cache boosts only reads. See L2 cache operating principles here https://knowledgebase.starwindsoftware. ... rinciples/.
For performance sake, I'd suggest using the L1 cache in Write-back mode. But, since this is a standalone device, the write-back cache is not recommended due to the possible risk of data loss in case of service halt, unexpected shutdown of a VM, power outage or host PSOD as data in cache will be gone. The write-through cache will boost only reads.

If that is a lab environment, try this https://knowledgebase.starwindsoftware. ... rinciples/.
link855
Posts: 11
Joined: Thu Dec 10, 2015 1:08 pm

Thu Feb 03, 2022 3:44 pm

Many thanks for your quick and detailed reply!
I would like your feedback about these points:
- Will be introduced in the future the cache option in the GUI (SAN & NAS appliance)?
- Do you have some details how to add cache via config files for current version?

Thanks again :wink:
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Sat Feb 05, 2022 11:18 pm

Greetings,

I will log the feature request for this.
Please try this https://knowledgebase.starwindsoftware. ... rinciples/. Please also keep in mind the recommendations above.
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Tue Jun 13, 2023 2:01 pm

Small update: No, we do not support L1/L2 cache in SAN & NAS, thus there is no option to create the configuration.
thuong.huynh
Posts: 5
Joined: Fri Jun 06, 2025 4:12 am

Fri Jun 06, 2025 10:27 am

yaroslav (staff) wrote:
Tue Jun 13, 2023 2:01 pm
Small update: No, we do not support L1/L2 cache in SAN & NAS, thus there is no option to create the configuration.
can you explain more clearly, i'm using starwind vsan
How to enable l2 cache for existing HA target
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Fri Jun 06, 2025 10:56 am

Hi,

I think HA device might do it better.
L2 caching boosts only reads that generally are already OK due to HA reads from both nodes. It is not highly available, unlike RAM cache, so might be a source of inconsistency.
thuong.huynh
Posts: 5
Joined: Fri Jun 06, 2025 4:12 am

Tue Jun 10, 2025 9:09 am

Hi,
Thank for information, but i want to enable l2 cache cho both node on HA 2 node.
you think l2 cache with Ha node will give lower performance than ram cache
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Tue Jun 10, 2025 9:18 am

Yes, RAM cache should be faster.
P.S. There might be leaks for RAM cache, though.
thuong.huynh
Posts: 5
Joined: Fri Jun 06, 2025 4:12 am

Tue Jun 10, 2025 9:23 am

thank you,
but i still wonder if it is possible to create l2 cache for ha device and how to create it, does ram cache have any requirements on ram, ddr3 or higher
i follow this topic, but can't create it https://knowledgebase.starwindsoftware. ... dance/661/
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Tue Jun 10, 2025 9:34 am

IMO, I'd rather not use caching for production at all.
thuong.huynh
Posts: 5
Joined: Fri Jun 06, 2025 4:12 am

Tue Jun 10, 2025 9:38 am

yaroslav (staff) wrote:
Tue Jun 10, 2025 9:34 am
IMO, I'd rather not use caching for production at all.
Can you tell me why?
yaroslav (staff)
Staff
Posts: 3570
Joined: Mon Nov 18, 2019 11:11 am

Tue Jun 10, 2025 9:58 am

L2 is not a highly available RAM cache might be leaking.
For SSDs, RAM cache does not really improve anything from what I see in tests.
Post Reply