[libvirt-users] Resource control is not supported on this host

Libvirt release version V4.1.0 It add a element is cachetune After we add this, We can use host-cpu-cache But when i add it, my host get a error message: "Resource control is not supported on this host" Why? Following is my environment: kernel : 4.1.5, libvirt : 4.1.0 qemu : 2.9 host : lfs-7.0 my add cachetune in xml: <cachetune vcpus='0-3'> <cache id='1' level='3' type='data' size='3' unit='MiB'/> </cachetune>

On 03/13/2018 09:51 AM, Allence wrote:
Libvirt release version V4.1.0 It add a element is cachetune After we add this, We can use host-cpu-cache But when i add it, my host get a error message: "Resource control is not supported on this host" Why?
For Cache Allocation Technology you need support at CPU hardware level. Currently, only less than dozen CPUs support it (all server level Xeons): https://www.intel.com/content/www/us/en/communications/cache-monitoring-cach... Michal

On Tue, Mar 13, 2018 at 15:34:00 +0100, Michal Privoznik wrote:
On 03/13/2018 09:51 AM, Allence wrote:
Libvirt release version V4.1.0 It add a element is cachetune After we add this, We can use host-cpu-cache But when i add it, my host get a error message: "Resource control is not supported on this host" Why?
For Cache Allocation Technology you need support at CPU hardware level. Currently, only less than dozen CPUs support it (all server level Xeons):
https://www.intel.com/content/www/us/en/communications/cache-monitoring-cach...
Also besides that, the feature depends on a kernel feature which was broken upstream and deemed unusable and thus reverted. Until libvirt is rewritten to use the new resource control interface, the feature will not work with new kernels.

On Tue, Mar 13, 2018 at 05:13:52PM +0100, Peter Krempa wrote:
On Tue, Mar 13, 2018 at 15:34:00 +0100, Michal Privoznik wrote:
On 03/13/2018 09:51 AM, Allence wrote:
Libvirt release version V4.1.0 It add a element is cachetune After we add this, We can use host-cpu-cache But when i add it, my host get a error message: "Resource control is not supported on this host" Why?
For Cache Allocation Technology you need support at CPU hardware level. Currently, only less than dozen CPUs support it (all server level Xeons):
https://www.intel.com/content/www/us/en/communications/cache-monitoring-cach...
Also besides that, the feature depends on a kernel feature which was broken upstream and deemed unusable and thus reverted. Until libvirt is rewritten to use the new resource control interface, the feature will not work with new kernels.
IIUC, that only applies to the perf stuff for reporting cache usage of a VM. The reporter here was trying to use the cache allocation stuff for partitioning which AFAIK hasn't changed it userspace API Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Thanks, I got it. My CPU dose't support it At 2018-03-14 00:18:34, "Daniel P. Berrangé" <berrange@redhat.com> wrote:
On Tue, Mar 13, 2018 at 05:13:52PM +0100, Peter Krempa wrote:
On Tue, Mar 13, 2018 at 15:34:00 +0100, Michal Privoznik wrote:
On 03/13/2018 09:51 AM, Allence wrote:
Libvirt release version V4.1.0 It add a element is cachetune After we add this, We can use host-cpu-cache But when i add it, my host get a error message: "Resource control is not supported on this host" Why?
For Cache Allocation Technology you need support at CPU hardware level. Currently, only less than dozen CPUs support it (all server level Xeons):
https://www.intel.com/content/www/us/en/communications/cache-monitoring-cach...
Also besides that, the feature depends on a kernel feature which was broken upstream and deemed unusable and thus reverted. Until libvirt is rewritten to use the new resource control interface, the feature will not work with new kernels.
IIUC, that only applies to the perf stuff for reporting cache usage of a VM.
The reporter here was trying to use the cache allocation stuff for partitioning which AFAIK hasn't changed it userspace API
Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
participants (4)
-
Allence
-
Daniel P. Berrangé
-
Michal Privoznik
-
Peter Krempa