×

Affinity-aware parallel zeroing of memory for initialization of large pages in non-uniform memory access (NUMA) servers

  • US 10,228,737 B2
  • Filed: 11/28/2017
  • Issued: 03/12/2019
  • Est. Priority Date: 06/25/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • receiving, via a system call, a request for a pool of memory;

    determining a size of the requested pool of memory;

    creating a dummy memory segment, wherein a size of the dummy memory segment is larger than the size of the requested pool of memory;

    filling the dummy memory segment with one or more pages, based on the determined size of the requested pool of memory; and

    deleting the dummy memory segment, wherein deleting the dummy memory segment comprises;

    sorting the one or more pages of the dummy memory segment according to each associated affinity domain of each page, wherein each affinity domain comprises a cluster of processors and memory local to the cluster of processors;

    sending requests to zero the sorted one or more pages to one or more software threads that are attached to the respective affinity domain; and

    waiting for a message, from the software threads in each affinity domain, indicating that all requests to zero have been processed before returning to a system caller of the system call.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×