Testing for mem event ring management
PATCH 1/1 Testing for mem event ring management
tools/xenpaging/Makefile | 5 +- tools/xenpaging/memoper.c | 627 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 631 insertions(+), 1 deletions(-)
This is example code, not meant for tree consumption. So that others can run tests on the ring management bits.
The testing works as follows:
1. start off a Linux HVM with 4 vcpus
2. ./memoper <domid>
(recommended to run memoper inside a screen -L session as it tends to output a lot of stuff)
3. xl unpause <domid>
4. fireworks
To really drive the ring (assuming 1GB guest RAM and four vcpus):
6. on the domain console, remount tmpfs to /dev/shm (or wherever) with size sufficient to consume most of the guest's RAM (e.g.
mount -o remount,size=1000000000)
7. on the domain console
for i in seq 4; do (dd if=/dev/zero of=/dev/shm/file.$i bs=1k count=255000)& done
More fireworks!
tools/xenpaging/Makefile +4 -1
@@ -15,10 +15,13 @@ CFLAGS += -Wno-unused CFLAGS += -g OBJS = $(SRCS:.c=.o) -IBINS = xenpaging +IBINS = xenpaging memoper all: $(IBINS) +memoper: memoper.o + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) + xenpaging: $(OBJS) $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS)
tools/xenpaging/memoper.c new file +627 -0
627 lines not on this page · raw message
Andres Lagar-Cavilla writes ("[Xen-devel] [PATCH] Testing for mem event ring management"):
Quoted 2 lines
This is example code, not meant for tree consumption. So that others can run tests on the ring management bits.
Is this supposed to apply to tip, and build ?
memoper.c:48: error: expected specifier-qualifier-list before 'mem_event_t' memoper.c: In function 'wait_for_event_or_timeout':
memoper.c:66: error: 'memaccess_t' has no member named 'mem_event' memoper.c:99: error: 'memaccess_t' has no member named 'mem_event'
...
Ian.
Quoted 6 lines
Andres Lagar-Cavilla writes ("[Xen-devel] [PATCH] Testing for mem event ring management"):
Quoted 2 lines
This is example code, not meant for tree consumption. So that others can run tests on the ring management bits.
Is this supposed to apply to tip, and build ?
It was, way back when.
This isn't a significant diff from tests/xen-access either -- Effecitvely, it just sets a different mem_access type (n2rwx, instead of rw2rx)
Andres
Quoted 10 lines
memoper.c:48: error: expected specifier-qualifier-list before '
mem_event_t'memoper.c: In function 'wait_for_event_or_timeout':
memoper.c:66: error: 'memaccess_t' has no member named 'mem_event' memoper.c:99: error: 'memaccess_t' has no member named 'mem_event'
...Ian.