|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] xen/arm: Domain not fully destroyed when using credit2
Hi Jan, On 24/01/2017 08:20, Jan Beulich wrote: On 23.01.17 at 20:42, <julien.grall@xxxxxxx> wrote: Today this arbitrary time could be infinite if an idle pCPU does not receive an interrupt. So some part of domain resource will never be freed. If I am power-cycling a domain in loop, after some time the toolstack will fail to allocate memory because of exhausted resources. Previous instance of the domain was not yet fully destroyed (e.g complete_domain_destroy was not called). If an upper limit is required by a user of RCU, I think it would need to be that entity to arrange for early expiry. This is happening with all the user and not only a domain. Looking at the code, there are already some upper limit: - call_rcu will call force_quiescent_state if the number of element in the RCU queue is > 10000 - the RCU has a grace period (not sure how long), but no timer to ensure the RCU will be called Reducing the threshold in call_rcu (see qhimark) will not help as you may still face memory exhaustion (see above). So I think the only best solution is to actually implement properly the grace period. I notice in this context that we don't even have synchronize_rcu() in our sources. I don't think this is a problem here if we handle properly the grace period. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |