On Thu, 2015-12-24 at 13:17 +0530, Ritesh Raj Sarraf wrote:
> Given that libvirt is also a general purpose hypervisor, more like
> VBox
> or VMWare Workstation, which is used occasionally.
> 
> Should ksm services also be provided as a socket so that they are
> activated on-demand? libvirt is already doing something similar.

I hadn't noticed that it was a shell script until:

rrs@learner:~$ sudo systemctl status ksmtuned.service 
[sudo] password for rrs: 
● ksmtuned.service - Kernel Samepage Merging (KSM) Tuning Daemon
   Loaded: loaded (/lib/systemd/system/ksmtuned.service; enabled;
vendor preset: enabled)
   Active: active (running) since Thu 2015-12-24 13:14:36 IST; 31min
ago
  Process: 10928 ExecStart=/usr/sbin/ksmtuned (code=exited,
status=0/SUCCESS)
 Main PID: 10931 (ksmtuned)
    Tasks: 2 (limit: 512)
   CGroup: /system.slice/ksmtuned.service
           ├─10931 /bin/bash /usr/sbin/ksmtuned
           └─16262 sleep 60

Dec 24 13:14:36 learner systemd[1]: Starting Kernel Samepage Merging
(KSM) Tuning Daemon...
Dec 24 13:14:36 learner systemd[1]: Started Kernel Samepage Merging
(KSM) Tuning Daemon.
2015-12-24 / 13:45:40 ♒♒♒  ☺    


Given that KSM depends on cgroups, especially memcg, should this be
ported to using systemd's timer/socket feature ?

Just that I didn't like the sleep call.


-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to