On Tuesday, 21 February 2017 at 4:54 AM, Marcelo Tosatti wrote:
Can you explain how the resource leak can happen?
Why it is not possible to maintain that information inside libvirtitself?This is not for cleanup purposes, since on VM shutdown the resctrlfsdirectories are properly removed:/* Remove the Domain from sysfs, this should only success no pids in* tasks* of a partition.*/staticint virResCtrlRemoveDomain(const char *name){char *path = NULL;int rc = 0;if ((rc = virAsprintf(&path, "%s/%s", RESCTRL_DIR, name)) < 0)return rc;rc = rmdir(path);VIR_FREE(path);return rc;}Should not write to other directories 'tasks' file.Other Apps can have a lock to resctrl before it write tasks to prevent libvirtd remove empty task directory.Well then libvirt will never be able to change resctrl filesystem?