×

Method and system for efficient memory region deallocation

  • US 9,244,829 B2
  • Filed: 12/20/2012
  • Issued: 01/26/2016
  • Est. Priority Date: 12/20/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method for deallocation of a memory region, comprising:

  • transmitting, by a host channel adapter (HCA), a first invalidation command for invalidating at least one key associated with the memory region, wherein the HCA is an Infiniband HCA that communicates via the Infiniband network;

    transmitting, by the HCA, a second invalidation command for invalidating a translation lookaside buffer (TLB) entry for the memory region, wherein the first and second invalidation commands are transmitted via a send queue of a queue pair (QP) associated with the Infiniband HCA;

    invalidating the at least one key associated with the memory region by removing a corresponding DMA validation entry for the memory region from a key validation table stored in the DMA module of the Infiniband HCA, wherein the at least one key is an index into the key validation table;

    determining whether all memory access requests to the memory region have been processed by the Infiniband HCA;

    stalling processing of the second invalidation command when outstanding memory access requests to the memory region are present; and

    processing the outstanding memory access requests for the memory region by the Infiniband HCA before executing the second invalidation command invalidating the TLB entry for the memory region.

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