Skip to content

Instantly share code, notes, and snippets.

Christoph Burgdorf cburgdorf

Block or report user

Report or block cburgdorf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pyevm_logs.txt
from eth_keys import keys
from eth_utils import decode_hex
from eth_typing import Address
from eth import constants
from eth.chains.base import MiningChain
from eth.consensus.pow import mine_pow_nonce
from eth.vm.forks.byzantium import ByzantiumVM
from eth.db.atomic import AtomicDB
import logging
View performance_report
Ran with:
trinity track-perf --track-perf-pre-exec-cmd 'trinity fix-unclean-shutdown && git checkout -' --track-perf-target-block 20000 --track-perf-run-count 10 --track-perf-trinity-args='--disable-discovery --preferred-node="enode://9a1cda701a98a08065b950a87c20df7d076c7e2b11dfcd489a66efd8cbb9fb9894c7788461d6140cf0f312794098917e952f173c09bbbddf848b97afad962d61@40.118.145.245:30303" --max-peers 1'
$ cat ../trinity/performance_report.txt
Performance Tracking (10 runs up to block #20000)
=============================================
Run 1 out of 10
@cburgdorf
cburgdorf / gist:1d4678f135dea129147c3627dd609c4e
Created May 10, 2019
rocksdb_vs_leveldb_against_single_peer
View gist:1d4678f135dea129147c3627dd609c4e
Supervisord config:
[program:trinity]
user=ubuntu
environment=HOME="/home/ubuntu"
command=/home/ubuntu/trinity/venv/bin/trinity track-perf --track-perf-interval 1 --track-perf-trinity-exec '/home/ubuntu/trinity/venv/bin/trinity' --track-perf-pre-exec-cmd 'cd /home/ubuntu/trinity && git checkout -' --track-perf-report-path '/home/ubuntu/trinity/performance_report.txt' --track-perf-target-block 20000 --track-perf-run-count 10 --track-perf-trinity-args='--disable-discovery --preferred-node="enode://9a1cda701a98a08065b950a87c20df7d076c7e2b11dfcd489a66efd8cbb9fb9894c7788461d6140cf0f312794098917e952f173c09bbbddf848b97afad962d61@40.118.145.245:30303" --max-peers 1'
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/var/log/supervisor/trinity.log
View lame_benchmarking_2.py
import logging
import multiprocessing
from multiprocessing.managers import (
BaseManager,
)
import tempfile
import time
import pytest
View lame_benchmarking.py
import logging
import multiprocessing
from multiprocessing.managers import (
BaseManager,
)
import tempfile
import time
import pytest
View gist:3d74f0b9a1c56ee8c9bda108ac7fcf51
(venv) ubuntu@trinity-test-01:~$ tail -f -n 1000 /home/ubuntu/.local/share/trinity/mainnet/logs-eth1/trinity.log
DEBUG 03-02 14:57:00 ETHPeer Disconnecting from remote peer <Node(0x70cf@107.155.29.148)>; reason: too_many_peers
DEBUG 03-02 14:57:00 FullServer Receiving handshake from Address(47.101.42.54:udp:55544|tcp:55544)
DEBUG 03-02 14:57:00 ETHPeer Disconnecting from remote peer <Node(0xa59f@47.101.42.54)>; reason: too_many_peers
DEBUG 03-02 14:57:01 HeaderMeatSyncer Header Skeleton Gaps: active=0 queued=0 max=50
DEBUG 03-02 14:57:01 FastChainBodySyncer (in progress, queued, max size) of bodies, receipts: [(353, 353, 1024), (2048, 2048, 2048)]
INFO 03-02 14:57:01 FastChainBodySyncer blks=241 txs=5054 bps=27 tps=595 elapsed=5.0 head=#3718184 f9ef..9e35 age=1y9m2w
DEBUG 03-02 14:57:01 SkeletonSyncer Skeleton header queue is 1536/1536 full
DEBUG 03-02 14:57:01 FastChainBodySyncer Got receipts for 34/34
View gist:57a61c9bb64f294a41b55f7124912bb0
DEBUG 03-01 10:26:45 ETHPeerRequestHandler ETHPeer <Node(0xb751@5.254.89.215)> asked for a block we don't have: 0xd4abc076d933d8f85736f4e4e43d65dd38d6dcb18dde20ebcb3c5b7bc48229f9
DEBUG 03-01 10:26:45 ETHPeerRequestHandler Peer requested header number 6829611 that is unavailable, stopping search.
DEBUG 03-01 10:26:45 ETHPeerRequestHandler ETHPeer <Node(0x666f@195.201.62.54)> asked for a block we don't have: 0xa0a87a08fd7d2b3294af350f457140233a688250ff9985f531757ff1240aa80a
DEBUG 03-01 10:26:45 ETHPeerRequestHandler ETHPeer <Node(0x666f@195.201.62.54)> requested headers: {'block_number_or_hash': 7072649, 'max_headers': 192, 'skip': 0, 'reverse': False}
DEBUG 03-01 10:26:45 ETHPeerRequestHandler Peer requested header number 7072649 that is unavailable, stopping search.
DEBUG 03-01 10:26:45 ETHPeerRequestHandler ETHPeer <Node(0x666f@195.201.62.54)> asked for a block we don't have: 0x1438e8df38730870950fb1cc2d243d9f442fa956df4dcd0a74dbd764d6a0004a
DEBUG 03-01 10:26:45 ETHPe
View with_more_logs
DEBUG 02-27 14:19:42 FastChainBodySyncer Got receipts for 194/194 headers from ETHPeer <Node(0xae4f@83.79.101.201)>, with 62 trivial headers
DEBUG 02-27 14:19:42 FastChainBodySyncer Requesting receipts for 164 headers from ETHPeer <Node(0xae4f@83.79.101.201)>
DEBUG 02-27 14:19:42 ETHPeer Disconnecting from remote peer <Node(0xa7e1@47.95.224.244)>; reason: useless_peer
DEBUG 02-27 14:19:42 FullServer Could not complete handshake: ETHPeer <Node(0xa7e1@47.95.224.244)> network (42) does not match ours (1), disconnecting
DEBUG 02-27 14:19:42 ETHPeerPool Could not complete handshake with <Node(0x354a324d270bac2f728d128387da9f35ed0ff833ff8429faf0fc585884c275d201bd22177c8511983da7a8dde3aab41c8c1fe8785a45007304bcd88b24a1870f@95.179.228.6:21212)>: TooManyPeersFailure('ETHPeer <Node(0x354a@95.179.228.6)> disconnected from us before handshake',)
DEBUG 02-27 14:19:42 SQLitePeerInfo <Node(0x354a@95.179.228.6)> will not be retried until 2019-02-27 1
View gist:21587b5f8ad8bf57cc8defa723a4e42a
DEBUG 02-27 11:26:59 ETHPeerRequestHandler ETHPeer <Node(0x2803@46.86.178.20)> asked receipts for a block we don't have: 0xa7306f63ddeb500ae520ce821ec1787b0148259bfa45b63c5493cc0960637190
DEBUG 02-27 11:26:59 ETHPeerRequestHandler ETHPeer <Node(0x2803@46.86.178.20)> asked for a block we don't have: 0xe9f89eb96f1bcba39da100b239554445a2e6117116ad69f57ec30464696ea2b7
DEBUG 02-27 11:26:59 ETHPeerRequestHandler ETHPeer <Node(0x2803@46.86.178.20)> asked receipts for a block we don't have: 0xb0c6093672ef12e5789cbae46e430605396e058c8e65a42f4abc9d9cd41a0c91
DEBUG 02-27 11:26:59 ETHPeerRequestHandler ETHPeer <Node(0x2803@46.86.178.20)> requested headers: {'block_number_or_hash': 7137503, 'max_headers': 192, 'skip': 0, 'reverse': False}
DEBUG 02-27 11:26:59 ETHPeerRequestHandler Peer requested header number 7137503 that is unavailable, stopping search.
DEBUG 02-27 11:26:59 DiscoveryProtocol Ignoring find_node request from unknown node <Node(0x288b@195.6.67.45)>
DEBUG 02-27 11:26:5
View gist:9d2d8d6c585b366205a62810620eeef6
DEBUG 02-26 20:21:10 ETHPeer Disconnecting from remote peer <Node(0x193a@89.26.98.65)>; reason: too_many_peers
DEBUG 02-26 20:21:10 ETHPeer Disconnecting from remote peer <Node(0x0859@52.204.35.243)>; reason: too_many_peers
DEBUG 02-26 20:21:10 ETHPeer Disconnecting from remote peer <Node(0xa66f@80.211.3.122)>; reason: too_many_peers
DEBUG 02-26 20:21:10 ETHPeer Disconnecting from remote peer <Node(0xb838@31.179.72.223)>; reason: too_many_peers
DEBUG 02-26 20:21:10 ETHPeer Disconnecting from remote peer <Node(0x70cf@107.155.29.148)>; reason: too_many_peers
DEBUG 02-26 20:21:10 ETHPeer Disconnecting from remote peer <Node(0xdc42@34.196.17.227)>; reason: useless_peer
DEBUG 02-26 20:21:10 ETHPeerPool Could not complete handshake with <Node(0xdc429a27a808e46dc04f9b827a796e985675a4bb20c418e601a2a09b7a488c069cd8e0cb7758f2c576941f4a7209fdce6220c48f6a848c281320222e27503a2b@34.196.17.227:303
You can’t perform that action at this time.