#596617 Document how to enable KSM for qemu-kvm

Package:
qemu-kvm
Source:
qemu
Submitter:
Vincent Danjean
Date:
2025-07-28 19:57:10 UTC
Severity:
wishlist
Tags:
#596617#5
Date:
2010-09-12 20:46:42 UTC
From:
To:
It is very difficult to find how enabling KSM with qemu-kvm. When googling, I
find that Debian libc, qemu-kvm and kernel should have all what is needed for
ksm to work and I do not understand why /sys/kernel/mm/ksm/pages_sharing was
always to 0.
  It is only today that I found that I have to
echo 1 > /sys/kernel/mm/ksm/run
in order to have KSM working (I also adjust sleep_millisecs to 2000)

  I think the info (or a pointer to better documentation) would be welcomed
in /usr/share/doc/qemu-kvm/README.Debian.gz

  Regards,
    Vincent

#596617#10
Date:
2010-09-13 08:19:37 UTC
From:
To:
13.09.2010 00:46, Vincent Danjean пишет:

glibc (or, rather, kernel headers) isn't needed for several last
revisions of qemu-kvm, which now includes a definition of the
necessary symbol if it's not present.  But that's details.

I disagree.  Not that adding such a link is bad, but it is not good
either.  There are many features in qemu which are not documented
well - for example, usage of macvtap vs tap device (and what _is_
macvtap anyway).  I guess better place for that stuff is qemu (or
qemu-kvm) wiki pages.  I'll add a link to such a page into the
README.Debian file, but mind you, very few people actually read
that file ;)

Thanks!

/mjt