From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: Xen Platform QoS design discussion Date: Mon, 19 May 2014 12:45:58 +0100 Message-ID: <537A0B17020000780001390F@mail.emea.novell.com> References: <40776A41FC278F40B59438AD47D147A9119F3FEA@SHSMSX104.ccr.corp.intel.com> <1398877340.5166.13.camel@kazak.uk.xensource.com> <40776A41FC278F40B59438AD47D147A9119F42A2@SHSMSX104.ccr.corp.intel.com> <5363804B020000780000E604@mail.emea.novell.com> <40776A41FC278F40B59438AD47D147A9119F4EF4@SHSMSX104.ccr.corp.intel.com> <5363AE54020000780000E7A2@mail.emea.novell.com> <40776A41FC278F40B59438AD47D147A9119FE6BB@SHSMSX104.ccr.corp.intel.com> <5368B418.9000307@citrix.com> <536AA342.8030003@citrix.com> <40776A41FC278F40B59438AD47D147A911A00A4C@SHSMSX104.ccr.corp.intel.com> <536B69AB.7010005@citrix.com> <40776A41FC278F40B59438AD47D147A911A150FC@SHSMSX104.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Andrew Cooper , Dongxiao Xu , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 19.05.14 at 13:28, wrote: > But in reality, all we need the daemon for is a place to store the > information to query. The idea we came up with was to allocate memory > *inside the hypervisor* to store the information. The idea is that > we'd have a sysctl to prompt Xen to *collect* the data into some > memory buffers inside of Xen, and then a domctl that would allow you > query the data on a per-domain basis. > > That should be a good balance -- it's not quite as good as having as > separate daemon, but it's a pretty good compromise. Which all leaves aside the suggested alternative of making available a couple of simple operations allowing an eventual daemon to do the MSR accesses without the hypervisor being concerned about where to store the data and how to make it accessible to the consumer. > There are a couple of options regarding collecting the data. One is > to simply require the caller to do a "poll" sysctl every time they > want to refresh the data. Another possibility would be to have a > sysctl "freshness" knob: you could say, "Please make sure the data is > no more than 1000ms old"; Xen could then automatically do a refresh > when necessary. > > The advantage of the "poll" method is that you could get a consistent > snapshot across all domains; but you'd have to add in code to do the > refresh. (An xl command querying an individual domain would > undoubtedly end up calling the poll on each execution, for instance.) > > An advantage of the "freshness" knob, on the other hand, is that you > automatically get coalescing without having to do anything special > with the interface. With the clear disadvantage of potentially doing work the results of which is never going to be looked at by anyone. Jan