forked from sigp/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set jemalloc as default, configure arenas
- Loading branch information
1 parent
4331ef8
commit 42eb539
Showing
5 changed files
with
89 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ authors = ["Sigma Prime <[email protected]>"] | |
edition = "2018" | ||
|
||
[features] | ||
default = ["jemalloc"] | ||
# Writes debugging .ssz files to /tmp during block processing. | ||
write_ssz_files = ["beacon_node/write_ssz_files"] | ||
# Compiles the BLS crypto code so that the binary is portable across machines. | ||
|
@@ -18,7 +19,7 @@ spec-minimal = [] | |
# Support spec v0.12 (used by Medalla testnet). | ||
spec-v12 = [] | ||
# Use jemalloc as the global allocator | ||
jemalloc = ["environment/jemalloc", "beacon_node/jemalloc"] | ||
jemalloc = ["beacon_node/jemalloc", "jemallocator", "libc", "jemalloc-sys"] | ||
|
||
[dependencies] | ||
beacon_node = { "path" = "../beacon_node" } | ||
|
@@ -43,6 +44,9 @@ directory = { path = "../common/directory" } | |
lighthouse_version = { path = "../common/lighthouse_version" } | ||
account_utils = { path = "../common/account_utils" } | ||
remote_signer = { "path" = "../remote_signer" } | ||
jemallocator = { version = "0.3.2", optional = true } | ||
jemalloc-sys = { version = "0.3.2", optional = true } | ||
libc = { version = "0.2.86", optional = true } | ||
|
||
[dev-dependencies] | ||
tempfile = "3.1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters