Solved

Disable Read/Write Disk Caching

Posted on 1998-09-08
4
5,738 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 20 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DVD or CD-Rom Useage history in Windows event viewers 8 59
Remote control Windows CE 7 94
Selecting Right Partition 6 68
Windows 10 bootup error 22 51
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

860 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