Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit677b06c

Browse files
committed
Apply patch for test_fsync to add tests for O_DIRECT.
Adjusted patch by Josh Berkus
1 parent8f5d65e commit677b06c

File tree

3 files changed

+249
-32
lines changed

3 files changed

+249
-32
lines changed

‎src/tools/fsync/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
1616

1717
OBJS= test_fsync.o
1818

19-
all: test_fsync
19+
all:submake-libpq submake-libpgporttest_fsync
2020

21-
test_fsync: test_fsync.o| submake-libpq submake-libpgport
21+
test_fsync: test_fsync.o$(libpq_builddir)/libpq.a
2222
$(CC)$(CFLAGS) test_fsync.o$(libpq_pgport)$(LDFLAGS)$(LDFLAGS_EX)$(LIBS) -o$@$(X)
2323

2424
cleandistcleanmaintainer-clean:

‎src/tools/fsync/README

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
src/tools/fsync/README
2-
3-
fsync
4-
=====
1+
test_fsync
2+
==========
53

64
This program tests fsync. The tests are described as part of the program output.
75

86
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.
920

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.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp