Patent ID: 11922016
Assignee: ZEROPOINT TECHNOLOGIES AB
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. A compressed memory management method for a computer system having one or more processors (P1-PN), compressible main memory, secondary memory and an operating system, the compressible main memory having a compressed memory space comprising an active part accessible to said one or more processors, as well as an inactive part not accessible to said one or more processors in the form of memory freed up by memory compression, the compressed memory management method comprising:
maintaining, in an auxiliary memory, a layout of the compressed memory space of the compressible main memory, the layout including size and location of individual memory pages as well as free memory regions in said compressed memory space;
triggering the compression of a memory page in the compressible main memory;
intercepting a page-in request from said operating system to said secondary memory, using the layout of the compressed memory space maintained by the auxiliary memory to locate, when available, in said auxiliary memory a page requested by the page-in request, and making the located requested page available in the active part of the compressed memory space by performing one of the steps selected from the group consisting of:
updating metadata to reflect that the located page belongs to the active part of the compressed memory space, and
transferring the located page from the inactive part to the active part of the compressed memory space; and

intercepting a page-out request from said operating system to said secondary memory, using the layout of the compressed memory space maintained by the auxiliary memory to obtain a free region in said compressed memory space for a page requested by the page-out request, and accommodating the requested page in said obtained free region by performing one of the steps selected from the group consisting of:
updating metadata to reflect that the requested page belongs to the inactive part of the compressed memory space, and
transferring the requested page from the active part to the inactive part of the compressed memory space.