]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
tmem: add page deduplication with optional compression or trailing-zero-elimination
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 6 Apr 2010 06:11:48 +0000 (07:11 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 6 Apr 2010 06:11:48 +0000 (07:11 +0100)
commit38c433d0c711406778aba1ae183a195da98656f0
treeeaad27720c4cf4a2b69df8149bbe0a8b3151f0e4
parent6a9ee8cf218b621ebc3d88e621f32cc3f030e742
tmem: add page deduplication with optional compression or trailing-zero-elimination

Add "page deduplication" capability (with optional compression
and trailing-zero elimination) to Xen's tmem.

(Transparent to tmem-enabled guests.)  Ephemeral pages
that have the exact same content are "combined" so that only
one page frame is needed.  Since ephemeral pages are essentially
read-only, no C-O-W (and thus no equivalent of swapping) is
necessary.  Deduplication can be combined with compression
or "trailing zero elimination" for even more space savings.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
tools/misc/xen-tmem-list-parse.c
xen/common/tmem.c
xen/common/tmem_xen.c
xen/include/xen/tmem_xen.h