How to increase memory size of the write cache?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

kiteboarder

Active Member
May 10, 2016
101
48
28
45
Hi friends,

Does anyone know how to set/increase the memory size of the disk write cache? I've attached a picture showing that Server 2016 R2 limits it to 64 GB on my 128 GB machine. Windows 10 pro limits this to a much smaller value. It's definitely not 50% of RAM.

I've tried google and the power shell online guides - no luck. Any help would be greatly appreciated!

Thanks in advance!
 

Attachments

cesmith9999

Well-Known Member
Mar 26, 2013
1,420
470
83
You can change the write cache on a Storage Space Volume on setup (no luck after you put data on it) of the volume. but there is no way to change the write cache values in the memory cache.

If you want a smoother write out to disk. look up some of my previous posts with registry key settings. Those should help a bit.

Chris
 
  • Like
Reactions: kiteboarder

kiteboarder

Active Member
May 10, 2016
101
48
28
45
Very much appreciate your reply, even though the news isn't very good. ;-)

Any idea why the size of the memory write cache in Windows 10 is a much smaller value than Server?

Sorry that I'm a bit of a noob when it comes to searching this forum. I wasn't easily able to find your previous posts with registry settings, but I will keep looking.

Thanks again!
 

Stefan75

Member
Jan 22, 2018
96
10
8
48
Switzerland
My file server is on W10 pro and has 24GB RAM.
When I copy to using 10gbit nics I get about 400MB/s for about 3GB, then it drops to disk speed (about 100MB/s).
So I'd have to get more RAM or change to Windows Server to get more caching?
 

Evan

Well-Known Member
Jan 6, 2016
3,346
598
113
Are you sure it’s not your SSD cache full, sounds about how big a lot of SLC cache is on consumer TLC SSD’s
 

kiteboarder

Active Member
May 10, 2016
101
48
28
45
After a few months of extensive testing, I have verified what I originally wrote. Windows Server allows about 50% of RAM for write cache, but Windows 10 only allows about 10% of RAM for write cache. This is very easy to verify in a single machine coping a large file from a fast M.2 SSD to a spinning disk. You'll see exactly what Stefan75 wrote above.

cesmith9999 gave the best solution - you basically have to build a new storage space with sufficient SSDs (or many HDDs) for the desired level of write cache performance.

I've basically decided that unless you want to play games or need HDR, then it's better to just use Windows Server.

(Or if you've got free pci-e lanes, the new WD black M.2 SSDs can do better than 2,000 MB/s writes. Samsung 970s are similar.)
 

kiteboarder

Active Member
May 10, 2016
101
48
28
45
See attached for an example of the memory write cache filling up. This is "normal" behavior for writing to a HDD with ~220 MB/s write speed.

memory_write_cache.png
 

Stefan75

Member
Jan 22, 2018
96
10
8
48
Switzerland
After a few months of extensive testing, I have verified what I originally wrote. Windows Server allows about 50% of RAM for write cache, but Windows 10 only allows about 10% of RAM for write cache. This is very easy to verify in a single machine coping a large file from a fast M.2 SSD to a spinning disk. You'll see exactly what Stefan75 wrote above.
I switched my server (24GB RAM) from W10 to 2016.
Now SMB copy slows down after 8GB of data.