Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTFSD
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Clustering - what exactly happens there?

OSR_Community_UserOSR_Community_User Member Posts: 110,217
I've run a few tests in order to determine the clustering behavior of
Windows NT.
For all my test programs, the cluster size was 32k (meaning, instead of
getting a 4k page it got 8 pages = 4*8 = 32k).
I tired to trick the Operating System into getting less then 32k, but I
wasn't successful.
At first I thought that the REAL required page was the first in the
cluster, but I found this wasn't true...
So how does the Virtual Memory Manager determine the cluster offset?
Meaning, it certainly doesn't create the cluster offset beginning from the
required page (meaning the first page in the cluster is the REALLY required
one) - but rather - as my test showed - it uses some other method.
Where can I read more about this?

Many thanks, Alon.

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    > Meaning, it certainly doesn't create the cluster offset beginning from the
    > required page (meaning the first page in the cluster is the REALLY
    required
    > one) - but rather - as my test showed - it uses some other method.

    In some cases (don't remember what) MM uses forward clustering only.
    But usually it scans the prototype PTE table (the segment) back and forth
    from the given prototype PTE till it will find the first present prototype
    PTE.
    An array of non-present prototype PTEs is created by this operation - this
    is
    the cluster.
    Note that MM never crosses the page boundary in the segment - so, all
    prototype PTEs in the cluster reside in the same page.

    Max
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE