linux kernel - Difference between ZRAM and ZSWAP -
does know difference between feature zram , zswap in linux kernel? seems similar-- store compressed pages in ram.
zram module of linux kernel, called "compcache". zram increases performance avoiding paging on disk , instead uses compressed block device in ram in paging takes place until necessary use swap space on hard disk drive. since using ram faster using disks, zram allows linux make more use of ram when swapping/paging required, on older computers less ram installed.
zswap lightweight compressed cache swap pages. takes pages in process of being swapped out , attempts compress them dynamically allocated ram-based memory pool. zswap trades cpu cycles potentially reduced swap i/o. trade-off can result in significant performance improvement if reads compressed cache faster reads swap device.
Comments
Post a Comment