Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
677b06ca
Commit
677b06ca
authored
Jan 15, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply patch for test_fsync to add tests for O_DIRECT.
Adjusted patch by Josh Berkus
parent
8f5d65e9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
249 additions
and
32 deletions
+249
-32
src/tools/fsync/Makefile
src/tools/fsync/Makefile
+2
-2
src/tools/fsync/README
src/tools/fsync/README
+15
-6
src/tools/fsync/test_fsync.c
src/tools/fsync/test_fsync.c
+232
-24
No files found.
src/tools/fsync/Makefile
View file @
677b06ca
...
@@ -16,9 +16,9 @@ override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
...
@@ -16,9 +16,9 @@ override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
OBJS
=
test_fsync.o
OBJS
=
test_fsync.o
all
:
test_fsync
all
:
submake-libpq submake-libpgport
test_fsync
test_fsync
:
test_fsync.o
| submake-libpq submake-libpgport
test_fsync
:
test_fsync.o
$(libpq_builddir)/libpq.a
$(CC)
$(CFLAGS)
test_fsync.o
$(libpq_pgport)
$(LDFLAGS)
$(LDFLAGS_EX)
$(LIBS)
-o
$@$(X)
$(CC)
$(CFLAGS)
test_fsync.o
$(libpq_pgport)
$(LDFLAGS)
$(LDFLAGS_EX)
$(LIBS)
-o
$@$(X)
clean distclean maintainer-clean
:
clean distclean maintainer-clean
:
...
...
src/tools/fsync/README
View file @
677b06ca
src/tools/fsync/README
test_fsync
==========
fsync
=====
This program tests fsync. The tests are described as part of the program output.
This program tests fsync. The tests are described as part of the program output.
Usage: test_fsync [-f filename] [loops]
Usage: test_fsync [-f filename] [loops]
test_fsync is intended to give you a reasonable idea of what the fastest
fsync_method is on your specific system, as well as supplying diagnostic
information in the event of an identified I/O problem. However,
differences shown by test_fsync might not make any difference in real
database throughput, especially since many database servers are not
speed-limited by their transaction logs.
The output filename defaults to test_fsync.out in the current directory.
test_fsync should be run in the same filesystem as your transaction log
directory (pg_xlog).
Loops default to 2000. Increase this to get more accurate measurements.
Loops defaults to 5000. The default output file is /var/tmp/test_fsync.out.
Consider that /tmp or /var/tmp might be memory-based file systems.
src/tools/fsync/test_fsync.c
View file @
677b06ca
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment