|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Refactor ioreq server for better performance
On 6/30/2015 5:59 PM, Paul Durrant wrote: -----Original Message----- From: Yu, Zhang [mailto:yu.c.zhang@xxxxxxxxxxxxxxx] Sent: 30 June 2015 08:11 To: Paul Durrant; xen-devel@xxxxxxxxxxxxxxxxxxxx; Andrew Cooper; JBeulich@xxxxxxxx; Kevin Tian; zhiyuan.lv@xxxxxxxxx Subject: Re: [Xen-devel] [PATCH] Refactor ioreq server for better performance Thanks you, Paul.No problem :-) [snip]I think assigning a name to the rangeset and having a debug-key dump isuseful. Can you not duplicate that in your new implementation?Well, I can add some dump routines, e.g. hvm_ioreq_server_dump_range(), to dump the ranges inside each ioreq server of a domain. This routine is similar to the rangeset_domain_printk(). But unlike the rangeset, which is also inserted in domain->rangesets list, the new rb_rangeset is only a member of ioreq server. So we can dump the ranges inside a domain by first access each ioreq server. Do you think this approach duplicated?Either add an rb_rangesets list to the domain, or have the debug key walk the ioreq server list and dump the rangesets in each. The former is obviously the simplest. Thanks, Paul. Well, I agree the former approach would be simpler. But I still doubt if this is more reasonable. :) IIUC, one of the reasons for struct domain to have a rangeset list(and a spinlock - rangesets_lock), is because there are iomem_caps and irq_caps for each domain. These 2 rangeset members of struct domain are platform independent. However, struct rb_rangeset is only supposed to be used in ioreq server, which is only for x86 hvm cases. Adding a rb_rangeset list member(similarly, if so, a rb_rangesets_lock is also required) in struct domain maybe useless for hardware domain and for platforms other than x86. So, I'd like to register a new debug key, to dump the ioreq server informations, just like the keys to dump iommu p2m table or the irq mappings. With a new debug key, we do not need to add a spinlock for rb_rangeset in struct domain, the one in ioreq server would be enough. Does this sound reasonable? [snip]I this limit enough? I think having something that's toolstack-tunable wouldbe more future-proof.By now, this value would suffice. I'd prefer this as a default value. As you know, I have also considered a xl param to do so. And one question is that, would a per-domain param appropriate? I mean, each hvm can have multiple ioreq servers. If this is acceptible, I can cook another patch to do so, is this OK?That's ok with me, but you may need to mention the idea of a follow up patch in the check-in comment. Sure, and thanks. :) Yu PaulThanks Yu _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |