×

Online classification of memory pages based on activity level represented by one or more bits

  • US 9,032,398 B2
  • Filed: 07/12/2010
  • Issued: 05/12/2015
  • Est. Priority Date: 07/12/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method of classifying an activity level of memory pages that are accessed by one or more virtual machines executing in a host machine, comprising:

  • setting a scan rate that defines how frequently page table entries of hypervisor-managed page tables corresponding to the memory pages are to be scanned;

    scanning the page table entries over multiple scan periods at the scan rate, wherein the page table entries are scanned once during a scan period; and

    for each of the memory pages and at each scan period in the multiple scan periods, determining an activity level of the memory page using a finite state machine that includes a plurality of states, wherein, at each scan period, the finite state machine determines access information for the memory page at each scan period based on whether the memory page has been accessed since a prior scan period, the memory page being determined to have been accessed according to a setting of an accessed or dirty bit of the scanned page table entry of the memory page, and determines a state transition for the memory page to another state based on a current state of the memory page and the access information for the memory page as determined for each scan period; and

    storing the activity level of the memory page.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×