US 12,422,983 B2
Memory management method based on compressed memory and apparatus using the same
Youngsam Shin, Suwon-si (KR); and Deok Jae Oh, Suwon-si (KR)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on Jun. 6, 2024, as Appl. No. 18/735,491.
Claims priority of application No. 10-2023-0089788 (KR), filed on Jul. 11, 2023.
Prior Publication US 2025/0021227 A1, Jan. 16, 2025
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0608 (2013.01) [G06F 3/0659 (2013.01); G06F 3/0673 (2013.01)] 20 Claims
OG exemplary drawing
 
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.