[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] tools: remove unused wrappers for python



On Thu, Oct 08, 2015 at 12:32:44PM -0400, Zhigang Wang wrote:
> On 10/08/2015 11:27 AM, Ian Campbell wrote:
> > On Thu, 2015-10-08 at 11:09 -0400, Zhigang Wang wrote:
> >> On 10/08/2015 10:38 AM, Ian Campbell wrote:
> >>> On Tue, 2015-10-06 at 11:24 -0400, Zhigang Wang wrote:
> >>>> We use these extentions along with xend XMLRPC API/xm. Even when move
> >>>> to
> >>>> xl, this will give us a choice to reserve some logic.
> >>>
> >>> There are a lot of interfaces here, are you using all of them? If not
> >>> then
> >>> could you enumerate the ones you care about please.
> >>
> >> Currently we are using:
> >>
> >>  xc.getcpuinfo()
> >>  xc.domain_getinfo()
> > 
> > Thanks.
> > 
> >> But after switching to xl, we cannot get info from xend any more, then 
> >> some of
> >> these interfaces may be helpful.
> > 
> > Do you have any insight into what info you currently get from xend which
> > you don't think you can get from xl?
> > 
> > It may be that there are gaps in the xl functionality which should be
> > filled, rather than keeping the Python xc bindings around (equally there
> > may be things where those bindings are the best solution).
> 
> We mainly use these APIs for domain statistics, like:
> 
>   ============================ ===== ==== ===================================
>   Statistic                    Type  Unit Note
>   ============================ ===== ==== ===================================
>   cpuMap                       int        VM vcpus to physical cpus map list.
>   cpuTime                      float Sec  VM accumulated CPU time.
>   cpuUtil                      float      VM CPU average utilization.
>                                           Range: 0.0 - 1.0.
>   currentMemory                long  MiB  VM current memory.
>   domainId                     int        VM domain ID.
>   ephemeralTranscendentMemory  long  MiB  VM Ephemeral tmem.
>   maxMemory                    long  MiB  VM maximum memory.
>   onlineVcpus                  int        VM online VCPUs.
>   persistentTranscendentMemory long  MiB  VM persistent tmem.
>   targetMemory                 long  MiB  VM target memory.
>   ============================ ===== ==== ===================================
> 
> I have a POC implementation of these statistics using xl, the only needed 
> APIs are:
> 
>   xc.getcpuinfo()
>   xc.domain_getinfo()

There is no direct mapping in xl for these two functions.

But they can be trivially added if necessary.

>   xc.tmem_control()
> 

There are a bunch of  tmem-* commands.

Wei.

> I haven't checked whether xl CLI has alternatives for all of these. These xc 
> APIs
> seem fit our need.
> 
> Thanks,
> 
> Zhigang
> 
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.