|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 06/21] xenpaging: print info when free request slots
Add debugging aid to free request slots in the ring buffer.
It should not happen that the ring gets full, print info anyway if it happens.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
xen/arch/x86/mm/mem_event.c | 5 +++++
1 file changed, 5 insertions(+)
--- xen-unstable.hg-4.1.22433.orig/xen/arch/x86/mm/mem_event.c
+++ xen-unstable.hg-4.1.22433/xen/arch/x86/mm/mem_event.c
@@ -152,6 +152,11 @@ int mem_event_check_ring(struct domain *
mem_event_ring_lock(d);
free_requests = RING_FREE_REQUESTS(&d->mem_event.front_ring);
+ if ( unlikely(free_requests < 2) )
+ {
+ gdprintk(XENLOG_INFO, "free request slots: %d\n", free_requests);
+ WARN_ON(free_requests == 0);
+ }
ring_full = free_requests < MEM_EVENT_RING_THRESHOLD;
if ( (curr->domain->domain_id == d->domain_id) && ring_full )
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/21] xenpaging changes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 02/21] xenpaging: Open paging file only if xenpaging_init() succeeds, Olaf Hering
- [Xen-devel] [PATCH 04/21] xenpaging: populate paged-out pages unconditionally, Olaf Hering
- [Xen-devel] [PATCH 03/21] xenpaging: allow only one xenpaging binary per guest, Olaf Hering
- [Xen-devel] [PATCH 01/21] xenpaging: break endless loop during inital page-out with large pagefiles, Olaf Hering
- [Xen-devel] [PATCH 07/21] xenpaging: print p2mt for already paged-in pages, Olaf Hering
- [Xen-devel] [PATCH 11/21] xenpaging: optimize p2m_mem_paging_populate, Olaf Hering
- [Xen-devel] [PATCH 13/21] xenpaging: handle temporary out-of-memory conditions during page-in, Olaf Hering
- [Xen-devel] [PATCH 09/21] xenpaging: allow negative num_pages and limit num_pages, Olaf Hering
- [Xen-devel] [PATCH 06/21] xenpaging: print info when free request slots drop below 2,
Olaf Hering <=
- [Xen-devel] [PATCH 12/21] xenpaging: print xenpaging cmdline options, Olaf Hering
- [Xen-devel] [PATCH 08/21] xenpaging: notify policy only on resume, Olaf Hering
- [Xen-devel] [PATCH 14/21] xenpaging: increase recently used pages from 4MB to 64MB, Olaf Hering
- [Xen-devel] [PATCH 05/21] xenpaging: add signal handling, Olaf Hering
- [Xen-devel] [PATCH 10/21] xenpaging: when populating a page, check if populating is already in progress, Olaf Hering
- [Xen-devel] [PATCH 18/21] xenpaging: prevent page-out of first 16MB, Olaf Hering
- [Xen-devel] [PATCH 21/21] xenpaging: (sparse) documenation, Olaf Hering
- [Xen-devel] [PATCH 20/21] xenpaging: add dynamic startup delay for xenpaging, Olaf Hering
- [Xen-devel] [PATCH 16/21] xenpaging: drop paged pages in guest_remove_page, Olaf Hering
|
|
|
|
|