Page 1 of 1

Help explaining write cache

Posted: Wed Jul 07, 2021 12:27 pm
by ZOX
Hello!

I'm testing Primocache on our local file server.

It has a 100GB L2 storage on a SSD and is used for caching mirrored volume of two 1TB HDDs (mirroring is done via Windows).
All clients are connected over network.

I've noticed that if any write cache is configured (e.g. anything else but 100% read cache), newly created files are not visible to other computers on network, just on a machine that created it.
Deferred write is disabled.
As said, without any write cache, files are immediately visible to all.

Is that normal behavior or am I doing something wrong?

Thank you!

Re: Help explaining write cache

Posted: Sat Jul 10, 2021 2:36 pm
by RobF99
My guess is that it is related to your network settings on the server and clients. If you go here https://docs.microsoft.com/en-us/window ... le-server/ there are a lot of registry tweaks. My intuition says that one of the CacheLifetime entries will correct your problem.

Also, do a search for this document: perf-tun-srv-r2.docx. It is an official Microsoft document for tuning many aspects of your network. The tweaks had a clearly perceivable impact on our small office network's performance. We use Primocache on a small server with write caching and have never experienced the problem you are describing.

Re: Help explaining write cache

Posted: Mon Jul 12, 2021 4:15 am
by Support
ZOX wrote: Wed Jul 07, 2021 12:27 pm Deferred write is disabled.
The issue seems quite weird...Since Defer-Write is disabled, it is almost impossible to affect normal process. We hadn't seen such issues before. I'm sorry that currently we have no idea about this. But for L2 cache, it is not recommended to enable write cache if you are not using it for defer-writing.

Re: Help explaining write cache

Posted: Mon Jul 12, 2021 5:49 pm
by InquiringMind
ZOX wrote: Wed Jul 07, 2021 12:27 pm ...if any write cache is configured (e.g. anything else but 100% read cache), newly created files are not visible to other computers on network, just on a machine that created it...
If an existing file is changed (with write caching enabled), are the changes then visible from other computers on your network?

If no, then this suggests a problem with cached writes being deferred when they should not be.

If yes (so only newly created files are affected) then this suggests that directory data is not being updated for remote connections, which may indicate a Browse Master issue.

Re: Help explaining write cache

Posted: Tue Jul 13, 2021 11:43 am
by ZOX
Thanks everybody for suggestions, I'll try to find the root cause and will report back.

Re: Help explaining write cache

Posted: Sun Aug 14, 2022 6:11 am
by thitluoc
Did you find the root cause? Thank you