File tree 3 files changed +249
-32
lines changed
3 files changed +249
-32
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
16
16
17
17
OBJS = test_fsync.o
18
18
19
- all : test_fsync
19
+ all : submake-libpq submake-libpgport test_fsync
20
20
21
- test_fsync : test_fsync.o | submake- libpq submake-libpgport
21
+ test_fsync : test_fsync.o $( libpq_builddir ) / libpq.a
22
22
$(CC ) $(CFLAGS ) test_fsync.o $(libpq_pgport ) $(LDFLAGS ) $(LDFLAGS_EX ) $(LIBS ) -o $@ $(X )
23
23
24
24
clean distclean maintainer-clean :
Original file line number Diff line number Diff line change 1
- src/tools/fsync/README
2
-
3
- fsync
4
- =====
1
+ test_fsync
2
+ ==========
5
3
6
4
This program tests fsync. The tests are described as part of the program output.
7
5
8
6
Usage: test_fsync [-f filename] [loops]
7
+
8
+ test_fsync is intended to give you a reasonable idea of what the fastest
9
+ fsync_method is on your specific system, as well as supplying diagnostic
10
+ information in the event of an identified I/O problem. However,
11
+ differences shown by test_fsync might not make any difference in real
12
+ database throughput, especially since many database servers are not
13
+ speed-limited by their transaction logs.
14
+
15
+ The output filename defaults to test_fsync.out in the current directory.
16
+ test_fsync should be run in the same filesystem as your transaction log
17
+ directory (pg_xlog).
18
+
19
+ Loops default to 2000. Increase this to get more accurate measurements.
9
20
10
- Loops defaults to 5000. The default output file is /var/tmp/test_fsync.out.
11
- Consider that /tmp or /var/tmp might be memory-based file systems.
You can’t perform that action at this time.
0 commit comments