Starting work on scripts to automate benchmarking.
[bluesky.git] / microbench / setup / build-fs
diff --git a/microbench/setup/build-fs b/microbench/setup/build-fs
new file mode 100755 (executable)
index 0000000..b171211
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Create a directory with a number of small files.  Space out the creation of
+# each file by several seconds so that for BlueSky, without running the
+# cleaner, the inodes should end up in separate log files in the cloud.
+mkdir small
+for i in {0..15}; do
+    sleep 5
+    dd if=/dev/urandom bs=4k count=1 of=small/file-$i
+done