| CPC G06F 3/0608 (2013.01) [G06F 3/0659 (2013.01); G06F 3/0673 (2013.01)] | 20 Claims |

|
1. A memory device comprising:
a memory comprising a normal memory area for storing uncompressed data and a compressed memory area for storing compressed data; and
a near memory processing unit configured to:
receive a first command to frontswap-store a huge page, which is stored in the normal memory area, in the compressed memory area, wherein a size of the huge page is larger than a regular page,
identify addresses of sub-pages of the huge page based on an address of the huge page,
compress the sub-pages using the addresses of the sub-pages to generate compressed sub-pages, and
store the compressed sub-pages in the compressed memory area.
|