Swap file defragmentation in a hypervisor

    公开(公告)号:US10216536B2

    公开(公告)日:2019-02-26

    申请号:US15067856

    申请日:2016-03-11

    Applicant: VMware, Inc.

    Abstract: Memory data for a virtual machine can be stored in a swap file, which is comprised of storage blocks. A defragmentation procedure can be performed on a thin swap file while the virtual machine is still running. The described defragmentation procedure traversing a page frame space of the virtual machine, identifying candidate page frames, relocating the swapped page, and updating the page frame. Resulting unused storage blocks are released to the storage system. A data structure for aiding the defragmentation process is also described.

    Efficiently Purging Non-Active Blocks in NVM Regions Using Virtblock Arrays

    公开(公告)号:US20220129377A1

    公开(公告)日:2022-04-28

    申请号:US17571417

    申请日:2022-01-07

    Applicant: VMware, Inc.

    Abstract: Techniques for efficiently purging non-active blocks in an NVM region of an NVM device using virtblocks are provided. In one set of embodiments, a host system can maintain, in the NVM device, a pointer entry (i.e., virtblock entry) for each allocated data block of the NVM region, where page table entries of the NVM region that refer to the allocated data block include pointers to the pointer entry, and where the pointer entry includes a pointer to the allocated data block. The host system can further determine that a subset of the allocated data blocks of the NVM region are non-active blocks and can purge the non-active blocks from the NVM device to a mass storage device, where the purging comprises updating the pointer entry for each non-active block to point to a storage location of the non-active block on the mass storage device.

Patent Agency Ranking