|
23 | 23 |
|
24 | 24 | #define XLOG_BLCKSZ_K (XLOG_BLCKSZ / 1024)
|
25 | 25 |
|
26 |
| -#define LABEL_FORMAT " %-32s" |
| 26 | +#define LABEL_FORMAT " %-30s" |
27 | 27 | #define NA_FORMAT "%20s"
|
28 |
| -#define OPS_FORMAT "%11.3f ops/sec %6.0f usecs/op" |
| 28 | +#define OPS_FORMAT "%13.3f ops/sec %6.0f usecs/op" |
29 | 29 | #define USECS_SEC 1000000
|
30 | 30 |
|
31 | 31 | /* These are macros to avoid timing the function call overhead. */
|
@@ -242,8 +242,7 @@ test_sync(int writes_per_op)
|
242 | 242 | printf("\nCompare file sync methods using one %dkB write:\n", XLOG_BLCKSZ_K);
|
243 | 243 | else
|
244 | 244 | printf("\nCompare file sync methods using two %dkB writes:\n", XLOG_BLCKSZ_K);
|
245 |
| - printf("(in wal_sync_method preference order, except fdatasync\n"); |
246 |
| - printf("is Linux's default)\n"); |
| 245 | + printf("(in wal_sync_method preference order, except fdatasync is Linux's default)\n"); |
247 | 246 |
|
248 | 247 | /*
|
249 | 248 | * Test open_datasync if available
|
@@ -398,8 +397,8 @@ static void
|
398 | 397 | test_open_syncs(void)
|
399 | 398 | {
|
400 | 399 | printf("\nCompare open_sync with different write sizes:\n");
|
401 |
| - printf("(This is designed to compare the cost of writing 16kB\n"); |
402 |
| - printf("in different write open_sync sizes.)\n"); |
| 400 | + printf("(This is designed to compare the cost of writing 16kB in different write\n" |
| 401 | + "open_sync sizes.)\n"); |
403 | 402 |
|
404 | 403 | test_open_sync(" 1 * 16kB open_sync write", 16);
|
405 | 404 | test_open_sync(" 2 * 8kB open_sync writes", 8);
|
@@ -459,8 +458,8 @@ test_file_descriptor_sync(void)
|
459 | 458 | * on platforms which support it.
|
460 | 459 | */
|
461 | 460 | printf("\nTest if fsync on non-write file descriptor is honored:\n");
|
462 |
| - printf("(If the times are similar, fsync() can sync data written\n"); |
463 |
| - printf("on a different descriptor.)\n"); |
| 461 | + printf("(If the times are similar, fsync() can sync data written on a different\n" |
| 462 | + "descriptor.)\n"); |
464 | 463 |
|
465 | 464 | /*
|
466 | 465 | * first write, fsync and close, which is the normal behavior without
|
@@ -524,7 +523,7 @@ test_non_sync(void)
|
524 | 523 | /*
|
525 | 524 | * Test a simple write without fsync
|
526 | 525 | */
|
527 |
| - printf("\nNon-Sync'ed %dkB writes:\n", XLOG_BLCKSZ_K); |
| 526 | + printf("\nNon-sync'ed %dkB writes:\n", XLOG_BLCKSZ_K); |
528 | 527 | printf(LABEL_FORMAT, "write");
|
529 | 528 | fflush(stdout);
|
530 | 529 |
|
|
0 commit comments