Re: Re:What's the longest time before Windows flushes data to disk?
- From: "Slava M. Usov" <stripit.slough@xxxxxxx>
- Date: Thu, 20 Apr 2006 02:31:26 +0200
"MB" <bla@xxxxxxx> wrote in message
news:e5xiUhAZGHA.3848@xxxxxxxxxxxxxxxxxxxxxxx
[...]
If some application continuously reads the hard disk, how is writing to
disk prioritised when another application that is writing is not asking
for any special treatment, e.g. it is not making it's files "write
through" nor flushing the cache. As long as there is enough memory, does
reading from disk always take precedence?
Roughly, there are three different processes.
1. Lazy writer. It is a thread that periodically flushes parts of the cache.
I do not remember the frequency.
2. Balance set manager. It is a thread that tries to balance the utilisation
of RAM between the cache and individual processes. As far as the cache is
concerned, the balance set manager will periodically try to shrink it,
purging or flushing some pages. Same remark about frequency.
3. Replacement strategy. When there is a need to cache a page but no more
free pages are available to the cache, some pages will be purged or flushed.
The first two are regular threads and their schedules may fluctuate wildly.
In extreme cases, when the system is used to run a real-time application
with 100% CPU utilisation, they may never run. If the cache is used lightly,
then the third case will also never apply, so a file may never be flushed.
If an application continuously reads the hard disk, different files all the
time, then the cache will eventually fill up and the cache manager will have
to free up some pages. Whether it will flush dirty pages or purge unmodified
pages is hard to tell, it will apply some heuristic.
Finally, you should understand that all this stuff has never been
systematically documented by Microsoft and a lot of it is subject to
incessant tweaking and tuning by the OS team.
S
.
- Follow-Ups:
- Re: Re:What's the longest time before Windows flushes data to disk?
- From: anton bassov
- Re: Re:What's the longest time before Windows flushes data to disk?
- References:
- What's the longest time before Windows flushes data to disk?
- From: MB
- Re:What's the longest time before Windows flushes data to disk?
- From: anton bassov
- Re: Re:What's the longest time before Windows flushes data to disk?
- From: MB
- Re: Re:What's the longest time before Windows flushes data to disk?
- From: Don Burn
- Re: Re:What's the longest time before Windows flushes data to disk?
- From: MB
- Re: Re:What's the longest time before Windows flushes data to disk?
- From: MB
- What's the longest time before Windows flushes data to disk?
- Prev by Date: Re: Read EventLog - position to newest record / end of EventLog ???
- Next by Date: Re: How to get Parent Pid from Kernel Driver?
- Previous by thread: Re: Re:What's the longest time before Windows flushes data to disk?
- Next by thread: Re: Re:What's the longest time before Windows flushes data to disk?
- Index(es):
Relevant Pages
|