Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disk write buffering not disabled by FILE_FLAG_NO_BUFFERING+FILE_FLAG_WRITE_THROUGH #2747

Open
Jeff-01 opened this issue May 14, 2020 · 2 comments
Labels

Comments

@Jeff-01
Copy link

Jeff-01 commented May 14, 2020

We're finding that despite using FILE_FLAG_NO_BUFFERING and FILE_FLAG_WRITE_THROUGH that we still lose disk writes which have completed if there is a power failure unless we also go into Device Manager and disable write caching - there does not seem to be any way to disable write caching in software despite the documentation (https://docs.microsoft.com/en-us/windows/win32/fileio/file-caching). I believe this is why the Oracle says that write caching must be disabled in the device manager to ensure data integrity:
https://docs.oracle.com/en/database/oracle/oracle-database/19/cwwin/disabling-write-caching.html#GUID-17FF487A-61E0-4A91-82C4-F8AC9DD1A389

Unfortunately it is very hard to get people to do this - we really need some way to disable write caching on files from software.

@welcome
Copy link

welcome bot commented May 14, 2020

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

@KalleOlaviNiemitalo
Copy link

KalleOlaviNiemitalo commented May 17, 2020

These have some information about caching in disk drives, but I don't know whether it is up to date:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants