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
00869024
Commit
00869024
authored
Jan 26, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In pg_test_fsync, use K(1024) rather than k(1000) for write size units.
parent
159e3d86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
contrib/pg_test_fsync/pg_test_fsync.c
contrib/pg_test_fsync/pg_test_fsync.c
+9
-9
No files found.
contrib/pg_test_fsync/pg_test_fsync.c
View file @
00869024
...
@@ -175,9 +175,9 @@ test_sync(int writes_per_op)
...
@@ -175,9 +175,9 @@ test_sync(int writes_per_op)
bool
fs_warning
=
false
;
bool
fs_warning
=
false
;
if
(
writes_per_op
==
1
)
if
(
writes_per_op
==
1
)
printf
(
"
\n
Compare file sync methods using one %d
k
write:
\n
"
,
XLOG_BLCKSZ_K
);
printf
(
"
\n
Compare file sync methods using one %d
K
write:
\n
"
,
XLOG_BLCKSZ_K
);
else
else
printf
(
"
\n
Compare file sync methods using two %d
k
writes:
\n
"
,
XLOG_BLCKSZ_K
);
printf
(
"
\n
Compare file sync methods using two %d
K
writes:
\n
"
,
XLOG_BLCKSZ_K
);
printf
(
"(in wal_sync_method preference order, except fdatasync
\n
"
);
printf
(
"(in wal_sync_method preference order, except fdatasync
\n
"
);
printf
(
"is Linux's default)
\n
"
);
printf
(
"is Linux's default)
\n
"
);
...
@@ -391,14 +391,14 @@ static void
...
@@ -391,14 +391,14 @@ static void
test_open_syncs
(
void
)
test_open_syncs
(
void
)
{
{
printf
(
"
\n
Compare open_sync with different write sizes:
\n
"
);
printf
(
"
\n
Compare open_sync with different write sizes:
\n
"
);
printf
(
"(This is designed to compare the cost of writing 16
k
\n
"
);
printf
(
"(This is designed to compare the cost of writing 16
K
\n
"
);
printf
(
"in different write open_sync sizes.)
\n
"
);
printf
(
"in different write open_sync sizes.)
\n
"
);
test_open_sync
(
"16
k
open_sync write"
,
16
);
test_open_sync
(
"16
K
open_sync write"
,
16
);
test_open_sync
(
" 8
k
open_sync writes"
,
8
);
test_open_sync
(
" 8
K
open_sync writes"
,
8
);
test_open_sync
(
" 4
k
open_sync writes"
,
4
);
test_open_sync
(
" 4
K
open_sync writes"
,
4
);
test_open_sync
(
" 2
k
open_sync writes"
,
2
);
test_open_sync
(
" 2
K
open_sync writes"
,
2
);
test_open_sync
(
" 1
k
open_sync writes"
,
1
);
test_open_sync
(
" 1
K
open_sync writes"
,
1
);
}
}
/*
/*
...
@@ -517,7 +517,7 @@ test_non_sync(void)
...
@@ -517,7 +517,7 @@ test_non_sync(void)
/*
/*
* Test a simple write without fsync
* Test a simple write without fsync
*/
*/
printf
(
"
\n
Non-
sync'ed %dk
writes:
\n
"
,
XLOG_BLCKSZ_K
);
printf
(
"
\n
Non-
Sync'ed %dK
writes:
\n
"
,
XLOG_BLCKSZ_K
);
printf
(
LABEL_FORMAT
,
"write"
);
printf
(
LABEL_FORMAT
,
"write"
);
fflush
(
stdout
);
fflush
(
stdout
);
...
...
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