1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/test/lib
Zdenek Kabelac 0cadfdd69d tests: try running tests over ramdisk
Currently usage of loop device over backend file in ramdisk (tmpfs)
is actually causing unnecassary memory consution, since just
reading such loop device is causing RAM provisioning.

This patch add another possible way how to use ramdisk directly
through 'brd' device when possible (and allowed).

This however has it's limitation as well -  brd does not support
TRIM, so the only way how to erase is to remove brd module ??

Alse there is 4K sector size limitation imposed by ramdisk.

Anyway - for some mirror test that were using large amount of
disk space (tens of MB) this brings noticable speed boost.
(But could be worth to solve the slowness of loop in kernel?)

To prevent using 'brd' for testing set LVM_TEST_PREFER_BRD=0
like this:

make check_local LVM_TEST_PREFER_BRD=0
2018-05-12 17:48:31 +02:00
..
aux.sh tests: try running tests over ramdisk 2018-05-12 17:48:31 +02:00
brick-shelltest.h tests: correcting kernel version test 2016-09-20 22:50:43 +02:00
check.sh tests: improve mirror_images_redundant 2018-04-20 12:17:01 +02:00
flavour-ndev-cluster-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-ndev-cluster.sh disable LVM1 tests 2018-04-20 11:22:46 -05:00
flavour-ndev-lvmetad-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-ndev-lvmetad.sh tests: export shell vars 2015-03-19 11:23:44 +01:00
flavour-ndev-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-ndev-vanilla.sh disable LVM1 tests 2018-04-20 11:22:46 -05:00
flavour-udev-cluster-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-udev-cluster.sh disable LVM1 tests 2018-04-20 11:22:46 -05:00
flavour-udev-lvmetad-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-udev-lvmetad.sh tests: export shell vars 2015-03-19 11:23:44 +01:00
flavour-udev-lvmlockd-dlm.sh Add lvmlockd 2015-07-02 15:42:26 -05:00
flavour-udev-lvmlockd-sanlock.sh Add lvmlockd 2015-07-02 15:42:26 -05:00
flavour-udev-lvmlockd-test.sh tests: fix check_lvmlockd_test 2016-04-15 12:35:20 -05:00
flavour-udev-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-udev-vanilla.sh disable LVM1 tests 2018-04-20 11:22:46 -05:00
get.sh tests: correct usage of pipe 2018-02-19 16:45:10 +01:00
harness.c doc: change fsf address 2016-01-21 12:11:37 +01:00
inittest.sh tests: shellcheck liter 2018-03-23 17:25:00 +01:00
lvm-wrapper.sh tests: scripts double quote 2017-07-10 14:23:53 +02:00
mke2fs.conf tests: add mke2fs.conf 2016-07-04 17:40:25 +02:00
not.c tests: Revert "tests: not redirect strderr to stdout" 2016-09-13 13:23:47 +02:00
runner.cpp tests: capture and print thrown errors 2015-03-11 21:17:23 +01:00
test-corosync-conf Add lvmlockd 2015-07-02 15:42:26 -05:00
test-dlm-conf Add lvmlockd 2015-07-02 15:42:26 -05:00
test-sanlock-conf test: add make check_lvmlockd_test 2016-02-22 09:36:35 -06:00
utils.sh tests: shellcheck misc 2018-03-23 17:25:00 +01:00