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

  • SEARCH
  • Home
  • 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 6758875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:51:25+00:00 2026-05-26T13:51:25+00:00

From a software point of view, what is the latency between an instruction that

  • 0

From a software point of view, what is the latency between an instruction that dirties a memory page and when the core actually marks the page dirty in the Page Table Entry (PTE)?

In other words, if an instruction dirties a page, can the very next instruction read the PTE and see the dirty bit set?

I don’t care about the actual elapsed cycles, only if there is a software visible window in which the dirty bit is not yet set. I can’t seem to find any guarantees in the reference manuals.

  • 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-26T13:51:26+00:00Added an answer on May 26, 2026 at 1:51 pm

    From the AMD’s manual (circa 2005), Volume 2: System Programming:

    5.4 Page-Translation-Table Entry Fields … Dirty (D) Bit. Bit 6. This bit is only present in the lowest level of the page-translation hierarchy. It indicates whether the pagetranslation
    table or physical page to which this entry points has been written.
    The D bit is set to 1 by the processor the first time there is a write
    to the physical page.

    Ditto from Intel (circa 2006), Volume 3-A: System Programming Guide, Part 1:

    3.7.6 Page-Directory and Page-Table Entries … Dirty (D) flag, bit 6 Indicates whether a page has been written to when set.
    (This flag is not used in page-directory entries that point to page
    tables.) Memory management software typically clears this flag when a
    page is initially loaded into physical memory. The processor then sets
    this flag the first time a page is accessed for a write operation.

    UPDATE:

    From the latest Intel manual (vol 3A, System Programming Guide):

    8.1.2.1 Automatic Locking The operations on which the processor automatically follows the LOCK semantics are as follows: … When
    updating page-directory and page-table entries — When updating
    page-directory and page-table entries, the processor uses locked
    cycles to set the accessed and dirty flag in the page-directory and
    page-table entries.

    From the rest of the text in sections 8.1 and 8.2 it follows that once the CPU sets the dirty bit using the locked operation, the other CPUs should start seeing the updated value.

    Of course, you may have a race condition in that you first read the dirty bit as 0 on one CPU (or in one of its threads) and later another CPU (or another thread on the same CPU) causes this bit to be set to 1, but that isn’t any unusual.

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

Sidebar

Related Questions

inHi, this question is fast, but from my point of view its pretty hard.
I got OS and software licenses from websiteSpark, I am asking how from point
From my point of view the database is always the bottleneck. Since i can
I'm looking for articles or documents which describes software architecture from RUP point of
We have a software that reads data from other third party websites, so far
What is the best way to protect a Cocoa shareware application from software piracy?
Possible Duplicates: How do you protect your software from illegal distribution? Best practice to
My company is in the process of rewriting our software from scratch, and I'm
We recently got some data back on a benchmarking test from a software vendor,
How can we clearly differ architectural term abstraction from a software component, can abstraction

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.