Skip to contentSkip to conversation

KSM without VT / KSM for all memory

DISCUSSION Gordan Bobic 2 participants 4 messages Mar 26, 2010 – Mar 27, 2010 KVM

lore
Share & tools
lore
#0 lore raw

Hi,

Is it possible to use KSM:
1) Without hardware VT support
2) For all memory in a system, without patching all applications to register with it

TIA.

Gordan

#1 lore raw
Quoted 2 lines · * Gordan Bobic ([email protected]) wrote:

Is it possible to use KSM:
1) Without hardware VT support

Yes.

KSM and hardware virtualization support are technically not related.

Quoted 2 lines

2) For all memory in a system, without patching all applications to register with it

No.

Right now, an app must be modified to call madvise(MADV_MERGEABLE). Further, the core scanning loop that ksmd performs is based on per-process virtual memory regions rather than physical memory.

thanks,
-chris

#2 lore raw
Quoted 7 lines · Chris Wright
Quoted 1 line

2) For all memory in a system, without patching all applications to register with it

No.

Right now, an app must be modified to call madvise(MADV_MERGEABLE). Further, the core scanning loop that ksmd performs is based on per-process virtual memory regions rather than physical memory.

You mean only pages within the same process are de-duplicated?

Gordan

#3 lore raw
Quoted 11 lines · * Gordan Bobic ([email protected]) wrote:
Quoted 8 lines · Chris Wright
Quoted 2 lines

2) For all memory in a system, without patching all applications to register with it

No.

Right now, an app must be modified to call madvise(MADV_MERGEABLE). Further, the core scanning loop that ksmd performs is based on per-process virtual memory regions rather than physical memory.

You mean only pages within the same process are de-duplicated?

No, de-duplication can span processes. Each process registers some range(s) of its virtual address space with the scanning daemon. The scanning daemon will then search all of the registered memory ranges for duplicates. This is an opt-in thing for each process though.

thanks,
-chris