From 7fc18c1796fa3f632b836189266c1dcf55d951c7 Mon Sep 17 00:00:00 2001 From: Evan Vigil-McClanahan Date: Wed, 10 Apr 2019 08:34:33 -0700 Subject: [PATCH] add some CPU usage and thread-pinning tunings to try and reduce CPU --- config/vm.args | 11 +++++++++++ priv/plot.gpt | 10 ++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/config/vm.args b/config/vm.args index 63105bb07..cfee37c91 100644 --- a/config/vm.args +++ b/config/vm.args @@ -7,3 +7,14 @@ ## we are time warp safe +c true +C multi_time_warp + +# don't steal CPU from other processes ++sbwt very_short ++sbwtdio none ++sbwtdcpu none + +# pin schedulers to threads ++stbt db + +# disable load compaction, try to evenly load CPUs ++sub true diff --git a/priv/plot.gpt b/priv/plot.gpt index 206340c5b..974b28c58 100644 --- a/priv/plot.gpt +++ b/priv/plot.gpt @@ -1,6 +1,12 @@ set xdata time set timefmt "%s" -set xrange [time(0) - 24*60*60:] + +if (!exists("interval")) interval=12 + +set xrange [time(0) - interval*60*60:time(0)] +set yrange [0:500] + + #set term x11 1 noraise set term qt noraise @@ -8,7 +14,7 @@ plot "/tmp/miner-chain-stats" using 1:2 with lines title "interval", \ "/tmp/miner-chain-stats" using 1:3 with lines title "txns", \ "/tmp/miner-chain-stats" using 1:4 with lines title "avg interval", \ "/tmp/miner-chain-stats" using 1:5 with lines title "median interval", \ - "/tmp/miner-chain-stats" using 1:6 with lines title "avg txns", + "/tmp/miner-chain-stats" using 1:6 with lines title "avg txns" pause 15 reread