Skip to content

Commit

Permalink
disable jemalloc memory profiling (#3138)
Browse files Browse the repository at this point in the history
  • Loading branch information
tharbert authored Jul 11, 2022
1 parent 6454bc1 commit 3b313a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ members = [
]

# Debug symbols are really important for profiling
[profile.release]
debug = true
# [profile.release]
# debug = true
# strip = "debuginfo"

[profile.bench]
Expand Down

1 comment on commit 3b313a3

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bench results

�[0m�[1m�[33mwarning�[0m�[0m�[1m: unused import: std::collections::HashSet�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/sui-config/src/genesis.rs:12:5�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m12�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0muse std::collections::HashSet;�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: #[warn(unused_imports)] on by default�[0m

�[0m�[0m�[1m�[33mwarning�[0m�[1m:�[0m sui-config (lib) generated 1 warning
�[0m�[0m�[1m�[32m Finished�[0m release [optimized] target(s) in 0.64s
�[0m�[0m�[1m�[32m Running�[0m target/release/bench microbench throughput
Default Jemalloc conf:
�[2m2022-07-11T18:21:45.629766Z�[0m �[32m INFO�[0m �[2msui_benchmark::benchmark�[0m�[2m:�[0m benchmark �[3mbenchmark�[0m�[2m=�[0mBenchmark { committee_size: 1, send_timeout_us: 400000000, recv_timeout_us: 400000000, buffer_size: 65000, tcp_connections: 0, db_cpus: 1, use_native: false, batch_size: 2000, running_mode: SingleValidatorThread, working_dir: None, bench_type: MicroBenchmark { host: "127.0.0.1", port: 9555, type_: Throughput { num_transactions: 100000 } } }
Jemalloc: 1 MB allocated / 9 MB resident
�[2m2022-07-11T18:21:45.630950Z�[0m �[32m INFO�[0m �[2msui_config::genesis_config�[0m�[2m:�[0m Creating accounts and gas objects...
�[2m2022-07-11T18:21:45.631119Z�[0m �[32m INFO�[0m �[2msui_config::genesis�[0m�[2m:�[0m Loading Move framework lib from None
�[2m2022-07-11T18:21:45.631386Z�[0m �[32m INFO�[0m �[2msui_config::genesis�[0m�[2m:�[0m Loading Sui framework lib from None
�[2m2022-07-11T18:21:45.649601Z�[0m �[32m INFO�[0m �[2msui_benchmark::benchmark::validator_preparer�[0m�[2m:�[0m authority address hex: 0xd3e5c6c7c0827772fa4e53092b0910d132320850
�[2m2022-07-11T18:21:45.649698Z�[0m �[32m INFO�[0m �[2msui_benchmark::benchmark::validator_preparer�[0m�[2m:�[0m Open database on path: "/tmp/DB_0x14d1dcf08ce5cc7d022b191c24d008b0c6e8894d"
�[2m2022-07-11T18:21:45.850552Z�[0m �[32m INFO�[0m �[2msui_storage::lock_service�[0m�[2m:�[0m LockService command processing loop started
�[2m2022-07-11T18:21:45.850611Z�[0m �[32m INFO�[0m �[2msui_storage::lock_service�[0m�[2m:�[0m LockService queries processing loop started
�[2m2022-07-11T18:21:45.893335Z�[0m �[32m INFO�[0m �[2msui_config::genesis�[0m�[2m:�[0m Loading Move framework lib from None
�[2m2022-07-11T18:21:45.893390Z�[0m �[32m INFO�[0m �[2msui_config::genesis�[0m�[2m:�[0m Loading Sui framework lib from None
�[2m2022-07-11T18:21:46.523269Z�[0m �[32m INFO�[0m �[2msui_benchmark::benchmark::validator_preparer�[0m�[2m:�[0m Spawning a validator thread...
�[2m2022-07-11T18:21:46.524715Z�[0m �[32m INFO�[0m �[2msui_core::authority_server�[0m�[2m:�[0m Listening to traffic on /dns/127.0.0.1/tcp/9555/http
Jemalloc: 68 MB allocated / 157 MB resident
Jemalloc: 68 MB allocated / 147 MB resident
Jemalloc: 132 MB allocated / 188 MB resident
Jemalloc: 1113 MB allocated / 1987 MB resident
Throughout: 55537.505866149055 tps

Please sign in to comment.