summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2009-03-02 13:07:29 +0530
committerAmit Shah <amit.shah@redhat.com>2009-03-02 13:07:29 +0530
commit23bd4be5b74f227ceb073f8da213708d5ded2af8 (patch)
tree9a940b4bf03f2e8374fc84dcadacd5544a19e54a /Makefile
downloadalloc-perf-23bd4be5b74f227ceb073f8da213708d5ded2af8.tar.gz
alloc-perf-23bd4be5b74f227ceb073f8da213708d5ded2af8.tar.xz
alloc-perf-23bd4be5b74f227ceb073f8da213708d5ded2af8.zip
First version of file allocation perf measuring program
This program measures performance of creating a file and zeroing it using a few different methods: 1. using the posix_fallocate() syscall 2. using mmap() and then memset() 3. writing chunks to the file (currently 4k and 8k-sized chunks) directly calling the Linux fallocate() syscall doesn't yet work; a bug has been filed earlier for this in the Red Hat Bugzilla, #485487 A few results from running this program on my laptop and on my desktop are put in the results.txt file. Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..482c49b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+# (C) Copyright 2009 Red Hat Inc.
+# Author: Amit Shah <amit.shah@redhat.com>
+
+CC = gcc
+CFLAGS = -Werror -Os
+
+.PHONY: all
+
+all: test-file-zero-alloc-speed
+
+clean:
+ rm -f *.o *~ test-file-zero-alloc-speed
+