:: Re: [DNG] KVM/ksm: was SystemD's br…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Brad Campbell
Fecha:  
A: dng
Asunto: Re: [DNG] KVM/ksm: was SystemD's brownie points over non-systemd OSs.
On 08/08/16 14:17, Steve Litt wrote:
> On Mon, 8 Aug 2016 14:00:48 +0800
> Brad Campbell <lists2009@???> wrote:
>
>> Just for the record, so does KVM if you turn on ksm. It actually
>> works very well for a free solution.
>
> I use Qemu all the time, with hardware assist. How would I turn on ksm?
>


KSM=/sys/kernel/mm/ksm
echo 500 > $KSM/sleep_millisecs
echo 1000 > $KSM/pages_to_scan
echo 1 > $KSM/run

I do it by putting this in a script that gets run at bootup. My numbers
are relatively arbitrary and are designed to work slowly with a low load
on the system. Redhat published a daemon to do it called ksmtuned, but
for my use case it just made things more complex for no real gain.