
Hi Viktor: On 07/18/2012 05:06 PM, Viktor Mihajlovski wrote:
I was actually considering a workaround in libvirt for what I believe to be a kernel misbehavior, however it is possible to deconfigure the cpuset controller in the host (i.e. removing it from /etc/cgconfig.conf). The CPU pinning will still work, only that it using the "legacy" taskset mechanism. All other cgroup-related functionality continues to work as well. One issue with monitoring the online state of cpus is that libvirtd might not be running all the time (crash, update) and thus can miss hotplug events.
I don't think remove cpuset controller from cgroup is a good idea. Maybe other apps will need it. So I am considering capture the hotplug event (which is uevent) with netlink. And change the behavior of cgroup in libvirt. How do you think ? Thanks. :) -- Best Regards, Tang chen