Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

WIP: add some CPU usage and thread-pinning tunings to try and reduce CPU #70

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config/vm.args
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 8 additions & 2 deletions priv/plot.gpt
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
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

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
Expand Down