Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Disable Read/Write Disk Caching

Posted on 1998-09-08
4
Medium Priority
?
5,776 Views
Last Modified: 2013-12-14
How do I disable Read/Write Disk Caching.  I get long pauses when writing large files to disk and it is causing problems.

Thanks,

Karsten Wilson
karsten@behsoftware.com
0
Comment
Question by:sungar
  • 2
4 Comments
 

Expert Comment

by:vacu
ID: 1770848
In NT, you can't change the size of Disk Cache, never to say close it. NT resize the cache according the size of virtual memory automaticaly. Obviously, your problem is no cuased by Cache. You can check your disk performance by Performace Monitor in administrator tools. maybe you should more information about your problem, such as how large you files, capacity of your harddisk, which file system, NTFS or FAT32, how you partition you disk.
0
 

Author Comment

by:sungar
ID: 1770849
I am using visual basic to read/write large (100mb files).  On Windows 95, I get continuous writes, but in NT4, it writes to a memory buffer really fast, then has a huge pause while it gets that data ready to write and then write.  Overall, this method is much slower the Win95 on the same PC setup.  If I could get NT to write continuously without buffering first, I think the performance should be similar.  Any idea how to accomplish this?
0
 
LVL 5

Accepted Solution

by:
carmine earned 80 total points
ID: 1770850
You can disable the rdr caching using the following registry keys:
HKLM\System\CurrentControlSet\Services\rdr\Parameters\
Add or edit the value UseWriteBehind  (REG_DWORD)
0 - Write back caching is not enabled.
1 - Write back caching is enabled, only if UtilizeNTCaching is set to 1.

Edit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanmanworkstation\parameters

and edit or Add Value name of UtilizeNTCaching with type REG_DWORD.

0 - Data is written directly to the redirector, bypassing the cache.
1 - Lazy write (default) - Data is written to the cache and subsequently flushed to the Redirector.

Setting this value to 0 will insure that the file data is written to the server immediately.

Consider setting UseWriteBehind to a 1 and UtilizeNTCaching to a 1 first. If this doesn't solve your problem, edit or Add Value name of UseAsyncWriteBehind of type REG_DWORD and setting it to 0 to disable the asynchronous variant of write-behind caching. The default, 1, is to use asynchronous write-behind caching. UseAsyncWriteBehind only works when UseWriteBehind and UtilizeNTCaching are set to 1.

Lastly, if you still have a problem, set UtilizeNTCaching to a 0.

You will need to reboot.

NOTE: Write-behind (write-back) caching is an optimizing technique that does not wait for the lazy writer feature of the Cache Manager to flush it to the Redirector. Write-behind caching makes data available to the Redirector sooner, although it increases disk I/O slightly.

0
 

Author Comment

by:sungar
ID: 1770851
Thanks,

Awesome info!

Karsten
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question