1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

test: Skip tests which require too much RAM

- Tests for RAID reshape under load require too much RAM
This commit is contained in:
Marian Csontos 2018-03-13 13:41:33 +01:00
parent 90512910e5
commit eae54b67d8
4 changed files with 15 additions and 0 deletions

View File

@ -17,6 +17,9 @@ SKIP_WITH_LVMPOLLD=1
# Test reshaping under io load
# FIXME: This test requires 3GB in /dev/shm!
test $(aux total_mem) -gt $((4096*1024)) || skip
which mkfs.ext4 || skip
aux have_raid 1 13 1 || skip

View File

@ -20,6 +20,9 @@ skip
# Test reshaping under io load
# FIXME: This test requires 3GB in /dev/shm!
test $(aux total_mem) -gt $((4096*1024)) || skip
which mkfs.ext4 || skip
aux have_raid 1 13 1 || skip

View File

@ -17,6 +17,9 @@ SKIP_WITH_LVMPOLLD=1
# Test reshaping under io load
# FIXME: This test requires 3GB in /dev/shm!
test $(aux total_mem) -gt $((4096*1024)) || skip
which mkfs.ext4 || skip
aux have_raid 1 13 2 || skip
@ -49,10 +52,13 @@ mount "$DM_DEV_DIR/$vg/$lv1" $mount_dir
mkdir -p $mount_dir/1 $mount_dir/2
echo 3 >/proc/sys/vm/drop_caches
# FIXME: This is filling up ram disk. Use sane amount of data please! Rate limit the data written!
cp -r /usr/bin $mount_dir/1 >/dev/null 2>/dev/null &
cp -r /usr/bin $mount_dir/2 >/dev/null 2>/dev/null &
# FIXME: should this wait for above two processes and sync then?
sync &
# FIXME: wait_for_sync - is this really testing anything under load?
aux wait_for_sync $vg $lv1
aux delay_dev "$dev2" 0 200

View File

@ -17,6 +17,9 @@ SKIP_WITH_LVMPOLLD=1
# Test reshaping under io load
# FIXME: This test requires 3GB in /dev/shm!
test $(aux total_mem) -gt $((4096*1024)) || skip
which mkfs.ext4 || skip
aux have_raid 1 13 1 || skip