On Monday, 20 February 2017 at 3:59 PM, Martin Kletzander wrote:
On Sun, Feb 19, 2017 at 12:20:55PM -0300, Marcelo Tosatti wrote:On Sun, Feb 19, 2017 at 12:01:57PM -0300, Marcelo Tosatti wrote:How does the management software query the amount of allocatable cacheagain?Section from another discussion:The second case is necessary to get updated free space information.Just VM initialization time could be enough as virConnectGetCapabilitieswould just know the total and free size would be reported in an API (ifI rememer the discussion correctly)MartinYes, i think this is missing because the interface was designedwith only libvirt in mind: the "reserved" field returns the amount ofcache reserved only by VMs.So if there is another application on the same L3 socketwith a cache reservation, "reserved" fails to report it.Eli can you expose the amount of free allocatable cache space(where non-free includes space used by other reservations) in a'free_space' field in the cache output of virConnectGetCapabilities?There should be an API for that instead. Capabilities are supposed toshow what the hardware is capable of, not what the actual state is.If my opinion is not enough, see here: