-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Getting rid of heapsize step 1: miner #9977
Conversation
It looks like @mocsy hasn't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement at the following URL: https://cla.parity.io Once you've signed, please reply to this thread with Many thanks, Parity Technologies CLA Bot |
[clabot:check] |
It looks like @mocsy signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
6 byte is the size of the data of: Using heapsize the linux story is different: I propose to measure the data size using std::mem and remove heapsize. Note: heap_size_of_children needs to be removed later when all packages use heap_size_of_data instead. |
My understanding is the goal here is to generate statistics and for that size_of_val should work fine. |
What block the usage of heapsize is rustc switching migrating off of jemalloc. On #9953 two approaches were discussed, switching back to jemalloc and keep using heapsize, or embracing the new default and stop depending on heapsize. This PR proposes a way to do the second. About heapsize being precise: it assumes jemalloc and it's precise as long as jemalloc is used, but if you look at the screenshot and data I posted above, it shows it's not precise with the new version of rust. |
needs a 2nd reviewer, @ordian @seunlanlege anyone? :) |
@mocsy thanks for your contribution. The fix for #9953 is being worked on in paritytech/parity-common/pull/89. I believe |
size_of_val in std seems to work fine.
This would allow this project to get rid of heapsize crate dep.
May or may not help out with #9953