From 5341188002a4aab0a97def1ffb840bfca8a1b505 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 30 Mar 2013 17:15:12 -0500 Subject: [PATCH] test: tmpfs and ufs-on-md tests to benchmark in-ram performance --- tests/mdmfs | 10 ++++++++++ tests/tmpfs | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 tests/mdmfs create mode 100644 tests/tmpfs diff --git a/tests/mdmfs b/tests/mdmfs new file mode 100644 index 0000000..d01e129 --- /dev/null +++ b/tests/mdmfs @@ -0,0 +1,10 @@ +bonnie_opts="${bonnie_opts} -s 4096 -r 2048" +setup() { + mdmfs -S -t -s 6g -w "${bonnie_uid}:0" md "${scratch}" +} +teardown() { + md="$(mount | grep ' on '"${scratch}"' ' | cut -d' ' -f1)" + umount "${scratch}" + mdconfig -d -u "${md}" + prepare_scratch +} diff --git a/tests/tmpfs b/tests/tmpfs new file mode 100644 index 0000000..7cf4520 --- /dev/null +++ b/tests/tmpfs @@ -0,0 +1,4 @@ +bonnie_opts="${bonnie_opts} -s 4096 -r 2048" +setup() { + mount -t tmpfs -o uid=4444 bonnie /bonnie +} -- 2.45.0