TPC-H configuration HammerDB #335
-
I perceive TPC-H little puzzle compared to TPC-H on CPUs/Cores and CPU utilization in HammerDB envirnoment. Here the test TPC-H(PostgreSQL)schema_tpcc.tcldiset tpch pg_scale_fact 30 Test_run.tclvu set 4 /* why cannot test more vu's*/ Question1:if vu increased in Test_run.tcl got an error like "Virtual User 1: FATAL: terminating connection due to administrator command" and postgresql restart. here is the limit for vu wrt scale-factor as suggested as HammerDB document" (b)Here what is best way more number virtual users wrt CPU cores? Question2:As HammerDB document as "For PostgreSQL the Degree of Parallelism sets the max_parallel_workers_per_gather parameter for the sessions executing the queries" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
For Q1. pg_num_tpch_threads this is the number of virtual users to build the TPC-H schema. It will automatically set the number of virtual users for the build based on this value, you do not need to use vu set to set it manually. This can be any value you wish however you should not set it higher than the core count and also note that the virtual users will create and insert data into the same tables at the same time, therefore you may find setting this value too high can reduce the build time. Only testing will show what is right for your environment. For Q2. This is what HammerDB runs (look at the driver script) |
Beta Was this translation helpful? Give feedback.
For Q1. pg_num_tpch_threads this is the number of virtual users to build the TPC-H schema. It will automatically set the number of virtual users for the build based on this value, you do not need to use vu set to set it manually. This can be any value you wish however you should not set it higher than the core count and also note that the virtual users will create and insert data into the same tables at the same time, therefore you may find setting this value too high can reduce the build time. Only testing will show what is right for your environment.
For Q2. This is what HammerDB runs (look at the driver script)
set result [ pg_exec $lda "set max_parallel_workers_per_gather=$degree_of_p…