microsoft / lis-test

Contains test infrastructure for testing Linux virtual machines on Windows Azure and Hyper-V.
32 stars 72 forks source link

Add two new balloon cases for eatmemory stress #1148

Closed lixuemin2016 closed 5 years ago

lixuemin2016 commented 5 years ago

Add two test cases for eatmemory stress to cover https://bugzilla.redhat.com/show_bug.cgi?id=1361245 and regression bug https://bugzilla.redhat.com/show_bug.cgi?id=1662277, also do minor change about check_traces.sh and TCUtils.ps1 CheckCallTracesWithDelay, sometimes hot add memory will make VM occur call trace with "Out of memory", but it is not bug, here ignore oom call trace.

Test steps:

Test case 1: Verify VM does not crash when hot add memory by eatmemory (SMP).

Steps:

  1. Setup VM as 4 virtual CPU, enable dynamic memory, and set up as below: Startup memory - 4096 MB Minimum memory - 1024 MB Maximum memory - 4096 MB
  2. Run # while true; do ./eatmemory 4G; done (refer to https://github.com/julman99/eatmemory.git) note: install steps:

    cd /tmp

    git clone https://github.com/julman99/eatmemory.git

    cd eatmemory

    sudo make install

    while true; do ./eatmemory 4G; done

  3. After wait for about 5 minutes, check that VM keeps running and no any hung/timeout error issue. Note: it is acceptable when kill by "Out of memory" shows in the screen and dmesg call trace.

Test case 2: Verify VM does not crash when hot add memory by eatmemory (UP). Setup VM as 1 CPU, reproduce steps 1-3.

Thank you so much.