-
- Downloads
tests: add java reclaim test
This is a test in which two threads compete for resources. One of them will
(hopefully) trigger memory allocations that are served by the heap while the other
will stress the filesystem through reads and/or writes (no mappings).
This is designed to test how well the balloon code works together with the ARC
reclaimer.
There are three main goals I expect OSv to achieve when running this test:
1) When there is no filesystem activity, the balloon should never trigger, and
the ARC cache should be reduced to its minimum
2) When there is no java activity, we should balloon as much as we can, leaving
the memory available to the filesystem (this one is trickier because the IO code
is itself a java application - on purpose - so we eventually have to stop)
3) When both are happening in tandem, the system should stabilize in reasonable
values and not spend useless cycles switching memory back and forth.
Signed-off-by:
Glauber Costa <glommer@cloudius-systems.com>
Showing
- Makefile 2 additions, 0 deletionsMakefile
- build.mk 1 addition, 1 deletionbuild.mk
- tests/reclaim/build.xml 42 additions, 0 deletionstests/reclaim/build.xml
- tests/reclaim/com/cloudiussystems/reclaim/FSConsumer.java 94 additions, 0 deletionstests/reclaim/com/cloudiussystems/reclaim/FSConsumer.java
- tests/reclaim/com/cloudiussystems/reclaim/JVMConsumer.java 50 additions, 0 deletionstests/reclaim/com/cloudiussystems/reclaim/JVMConsumer.java
- tests/reclaim/com/cloudiussystems/reclaim/Reclaim.java 29 additions, 0 deletionstests/reclaim/com/cloudiussystems/reclaim/Reclaim.java
tests/reclaim/build.xml
0 → 100644
Please register or sign in to comment