Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
00869024
Commit
00869024
authored
14 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
In pg_test_fsync, use K(1024) rather than k(1000) for write size units.
parent
159e3d86
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/pg_test_fsync/pg_test_fsync.c
+9
-9
9 additions, 9 deletions
contrib/pg_test_fsync/pg_test_fsync.c
with
9 additions
and
9 deletions
contrib/pg_test_fsync/pg_test_fsync.c
+
9
−
9
View file @
00869024
...
...
@@ -175,9 +175,9 @@ test_sync(int writes_per_op)
bool
fs_warning
=
false
;
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
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
(
"is Linux's default)
\n
"
);
...
...
@@ -391,14 +391,14 @@ static void
test_open_syncs
(
void
)
{
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
"
);
test_open_sync
(
"16
k
open_sync write"
,
16
);
test_open_sync
(
" 8
k
open_sync writes"
,
8
);
test_open_sync
(
" 4
k
open_sync writes"
,
4
);
test_open_sync
(
" 2
k
open_sync writes"
,
2
);
test_open_sync
(
" 1
k
open_sync writes"
,
1
);
test_open_sync
(
"16
K
open_sync write"
,
16
);
test_open_sync
(
" 8
K
open_sync writes"
,
8
);
test_open_sync
(
" 4
K
open_sync writes"
,
4
);
test_open_sync
(
" 2
K
open_sync writes"
,
2
);
test_open_sync
(
" 1
K
open_sync writes"
,
1
);
}
/*
...
...
@@ -517,7 +517,7 @@ test_non_sync(void)
/*
* Test a simple write without fsync
*/
printf
(
"
\n
Non-
s
ync'ed %d
k
writes:
\n
"
,
XLOG_BLCKSZ_K
);
printf
(
"
\n
Non-
S
ync'ed %d
K
writes:
\n
"
,
XLOG_BLCKSZ_K
);
printf
(
LABEL_FORMAT
,
"write"
);
fflush
(
stdout
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment