for HammerDB/src/postgresql /pgolap.tcl, can the max thread be more than 256 if wanting to run tproc-h/tpc-h? #772
-
plz help. i have my a server with 192 phyical cores/cpu (384 logical cores/cpus). i need to create vuser for it but due to hammerdb->src->pgolap.tcl file, it restricts to 256 vusers while running tpc-h/tproc-h and then it shows no data to create starting vusers 257 as below. can i edit the file to max thread 384 or in general above 256? if so, after making changes, do i need to edit any other file and or do i need restart the database/service? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
256 is a soft limit put in place to prevent over-configuring of TPROC-H loads. A load is often limited not by the number of threads loading but the databases ability to manage the load and adding more virtual users can increase the load time, therefore: And yes as a soft limit this setting can be modified in the file pg_olap.tcl and will increase the limit with no other changes needed. Note that max_connections in postgresql.conf will also need to be increased beyond the default 100 limit. Also by default there is a 500ms delay i.e. 1/2 a second between each VU starting, (User Delay(ms) under the /Virtual user dialog) with a larger number of VUs you may want to bring this down to say 100ms. I recommend experimenting and try changing the limit and seeing if this improves your build times. If it does you can submit a pull request (or provide feedback on your findings) to change the value and it will modified at the next release. |
Beta Was this translation helpful? Give feedback.
-
set max_threads 256 has been updated to 1024 for the next release of HammerDB. |
Beta Was this translation helpful? Give feedback.
-
thank u sir for all these updates. |
Beta Was this translation helpful? Give feedback.
256 is a soft limit put in place to prevent over-configuring of TPROC-H loads. A load is often limited not by the number of threads loading but the databases ability to manage the load and adding more virtual users can increase the load time, therefore:
set max_threads 256
was added so if the number of virtual users for the load is higher than this then they report they have no data to load.And yes as a soft limit this setting can be modified in the file pg_olap.tcl and will increase the limit with no other changes needed.
Note that max_connections in postgresql.conf will also need to be increased beyond the default 100 limit.
Also by default there is a 500ms delay i.e. 1/2 a second betw…