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

Re: [Xen-devel] [PATCH v3] xentop: add support for qdisks



>>> On 3/24/2015 at 09:01 AM, Ian Campbell <ian.campbell@xxxxxxxxxx> wrote: 
> On Mon, 2015-03-23 at 20:55 -0600, Charles Arnold wrote:
> 
>> +/* Get up to 1024 active domains */
> 
> What I meant last time was, is this limitation a concern? What if there
> are 1025 domains?

This is actually a limit I picked up from libxl.  See libxl.c 
libxl_list_domain()
which is consumed in several places.  I guess I assumed this was some official
limit.  This version of the patch would simply ignore any VMs beyond 1024.

> 
> If this is a concern then perhaps refactor such that the qdisk stats
> gathering collection can happen from the inner loop of xenstat_get_node,
> i.e. near the call to domain_get_tmem_stats, then you would be given the
> single domain of interest. Might simplify some other stuff too.

This would certainly eliminate the 1024 limit. This may become important
for running xentop in batch mode where the output can be captured. For
normal screen viewing, I doubt anyone has a screen with more that 1024
lines on which to view the output :)

I'll code up another version with your suggestion.

- Charles



_______________________________________________
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®.