Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4574702
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:57:35+00:00 2026-05-21T19:57:35+00:00

Windows has a FILE_FLAG_NO_BUFFERING flag that allows you to specify whether or not you

  • 0

Windows has a FILE_FLAG_NO_BUFFERING flag that allows you to specify whether or not you want your I/O to be cached by the file system.

That’s fine, but what if I want to use the cache if possible, but avoid modifying it?

In other words, how do you tell Windows the following?

Read this file from the cache if it’s already cached, but my data doesn’t exhibit locality, so do not put it into the cache!

The SCSI standard defines a Disable Page Out bit that does precisely this, so I’m wondering how (if at all) it is possible to use that feature from Windows (with cooperation of the file system cache too, of course)?


Edit: TL;DR:

What’s the equivalent of FILE_FLAG_WRITE_THROUGH for reads?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:57:35+00:00Added an answer on May 21, 2026 at 7:57 pm

    I see two flags that look suspiciously like what you are asking for:

    FILE_FLAG_RANDOM_ACCESS
    FILE_FLAG_SEQUENTIAL_SCAN
    

    The later’s doc clearly suggests that it won’t retain pages in cache, though it will probably read-ahead sequentially. The former’s doc is completely opaque, but would seem to imply what you want. If the pattern is quite random, hanging onto pages for later reuse would be a waste of memory.

    Keep in mind that, for files, the Windows kernel always will use some pages of ‘cache’ to hold the I/O. It has nowhere else to put it. So it’s not meaningful to say ‘don’t cache it,’ as opposed to ‘evict the old pages of this file before evicting some other pages.’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Windows has GetFileTime API which allows getting file time information by open file handle.
Windows has a feature that allows an administrator to perform auto-logon whenever it is
Our Windows file server has an archive service installed that stubs files that have
A Windows process created from an exe file has access to the command string
X Windows has special processes called Window Managers that manage the layout of windows
I've got a website that has windows authentication enable on it. From a page
I have seen that Windows system use temporary files to increase the performance of
I have virtual machine that has windows 7 + visual studio 2010 setup, and
When I use the std::ifstream to open a file that has been written in
I know Windows has SMTP capabilities under IIS, but I thought a basic SMTP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.