Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document / measure resource consumption #16

Open
gakonst opened this issue Feb 25, 2020 · 0 comments
Open

Document / measure resource consumption #16

gakonst opened this issue Feb 25, 2020 · 0 comments

Comments

@gakonst
Copy link

gakonst commented Feb 25, 2020

We should document how many resources are required, depending on:

  1. ceremony size
  2. batch size
  3. number of threads the program is run with (easily configurable via the RAYON_NUM_THREADS env var)

Preliminary notes

In each batch we load:

batch * (3 * g1 + g2) elements. Assuming g2 = 2*g1 in size, this means we will hold 5 * g1 * batch per concurrent thread on each batch.

In the contribution, the received input is uncompressed, while the output is compressed, so g1_in = g1_out * 2.

in_batch = 5 * g1_in * batch_size_size
out_batch= 5 * g1_out * batch
total_per_batch = in_batch + out_batch = 15 * g1 * batch_size

If we're on BLS12, g1 = 48.

So memory_per_batch ~= 720 * batch_size bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant