From 3022c7c9f7526007bbab3c45bd08f8aaa71777b3 Mon Sep 17 00:00:00 2001 From: Peter Oschwald Date: Thu, 9 Feb 2023 09:18:16 -0600 Subject: [PATCH] Fix validate_nodeos_plugin_args test by updating NetPlugingArgs default. --- tests/performance_tests/NodeosPluginArgs/NetPluginArgs.py | 2 +- tests/performance_tests/performance_test_basic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/performance_tests/NodeosPluginArgs/NetPluginArgs.py b/tests/performance_tests/NodeosPluginArgs/NetPluginArgs.py index a8e8bbc962..20a090acf0 100755 --- a/tests/performance_tests/NodeosPluginArgs/NetPluginArgs.py +++ b/tests/performance_tests/NodeosPluginArgs/NetPluginArgs.py @@ -51,7 +51,7 @@ class NetPluginArgs(BasePluginArgs): _p2pDedupCacheExpireTimeSecNodeosDefault: int=10 _p2pDedupCacheExpireTimeSecNodeosArg: str="--p2p-dedup-cache-expire-time-sec" netThreads: int=None - _netThreadsNodeosDefault: int=2 + _netThreadsNodeosDefault: int=4 _netThreadsNodeosArg: str="--net-threads" syncFetchSpan: int=None _syncFetchSpanNodeosDefault: int=100 diff --git a/tests/performance_tests/performance_test_basic.py b/tests/performance_tests/performance_test_basic.py index 0712730c3d..a7b914cdfb 100755 --- a/tests/performance_tests/performance_test_basic.py +++ b/tests/performance_tests/performance_test_basic.py @@ -497,7 +497,7 @@ def createBaseArgumentParser(): In \"heap\" mode database is preloaded in to swappable memory and will use huge pages if available. \ In \"locked\" mode database is preloaded, locked in to memory, and will use huge pages if available.", choices=["mapped", "heap", "locked"], default="mapped") - ptbBaseParserGroup.add_argument("--net-threads", type=int, help="Number of worker threads in net_plugin thread pool", default=2) + ptbBaseParserGroup.add_argument("--net-threads", type=int, help="Number of worker threads in net_plugin thread pool", default=4) ptbBaseParserGroup.add_argument("--disable-subjective-billing", type=bool, help="Disable subjective CPU billing for API/P2P transactions", default=True) ptbBaseParserGroup.add_argument("--last-block-time-offset-us", type=int, help="Offset of last block producing time in microseconds. Valid range 0 .. -block_time_interval.", default=0) ptbBaseParserGroup.add_argument("--produce-time-offset-us", type=int, help="Offset of non last block producing time in microseconds. Valid range 0 .. -block_time_interval.", default=0)