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 7604225
In Process

The Archive Base Latest Questions

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

Operating System question: Say we have a process running in a paged memory system,

  • 0

Operating System question:

Say we have a process running in a paged memory system, and we want to track which pages it accesses in the specific order it does so. How could we do this?

I was thinking we could write the page to the string every time it needs to be loaded into the TLB, but then my OS wouldn’t be able to track the ordering of references (and number of references) to each page in the TLB, unless somehow every every memory access I could check the TLB. Overall I’m finding the problem to be a bit confusing…

Assume each page table entry is 64 bits, 20 bits for the virtual page, and 20 bits for the corresponding physical frame. A couple of bits are status/privilege, but there are a few “free” bits to work with.

Thanks.

EDIT – an example: if the operating system has page sizes of 1000, and the process accesses some addresses like 1234, 5660, 1220, 7442, … then the page reference string would look like 1,5,1,7,…

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

    One option is to mark all pages of the process as inaccessible and whenever there’s a page fault, mark the faulting page(s) as accessible, record the page number(s) in your “string” and then let the process execute one instruction and repeat everything from the beginning (mark all as inaccessible, etc).

    You may not always be able to do the above if your the code that’s doing all of this is not running in the kernel. This depends a lot on the hardware and OS. You may get close to it on Windows, though, see this question and my answer to it.

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

Sidebar

Related Questions

In windows operating system, the stack memory is a thread-specific storage, and the call
I have been given the task to fix an Embedded Operating System which is
This is a pretty-much theoretical question, but.. How much of an operating system could
Operating System: OSX Method: From the command line, so using sed, cut, gawk, although
What operating system and UI toolkit is this? It's not some fake Hollywood user
In a multitasking operating system context, sometimes you hear the term round-robin scheduling. What
In terms of general operating system concepts, what is the difference between a file
I'm developing an operating system and rather than programming the kernel, I'm designing the
How does operating system know what filesystem a partition is using? In other words,
I just upgraded my operating system to Windows 7. Visual Studio 2008 also seems

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.