This is a service script to manage KSM in Debian based Linux distros.
Originally written by: Marin Atanasov Nikolov dnaeon@gmail.com
github: https://github.com/dnaeon/ksm-init.d-debian
More information here: http://www.linux-kvm.org/page/KSM
Install:
$ sudo update-rc.d ksm defaults