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

Commit3c4c5ac

Browse files
committed
Fix incorrect tps number calculation in "excluding connections establishing".
The tolerance (larger than actual tps number) increases as the numberof threads decreases. The bug has been there since the thread supportwas introduced in 9.0. Because back patching introduces incompatiblebehavior changes regarding the tps number, the fix is committed tomaster and 9.5 stable branches only.Problem spotted by me and fix proposed by Fabien COELHO. Note that hisoriginal patch included more than fixes (a code re-factoring) which isnot related to the problem and I omitted the part.
1 parentd8c7bb2 commit3c4c5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2631,7 +2631,7 @@ printResults(int ttype, int64 normal_xacts, int nclients,
26312631
time_include=INSTR_TIME_GET_DOUBLE(total_time);
26322632
tps_include=normal_xacts /time_include;
26332633
tps_exclude=normal_xacts / (time_include-
2634-
(INSTR_TIME_GET_DOUBLE(conn_total_time) /nthreads));
2634+
(INSTR_TIME_GET_DOUBLE(conn_total_time) /nclients));
26352635

26362636
if (ttype==0)
26372637
s="TPC-B (sort of)";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp