Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add nomination pools to Polkadot runtime #5582

Merged
merged 15 commits into from
Aug 14, 2022

Conversation

kianenigma
Copy link
Contributor

@kianenigma kianenigma commented May 22, 2022

  • targeting release 0.9.23

  • Also sets the initial configs of the pools:

  • 5 DOT to join a pool.

  • 100 DOT to create a pool.

  • 64 initial pools: only for initial safety: can be set to infinity when needed.

  • 4096 members per pool: only for initial safety: can be set to infinity when needed.

  • 128k total pool members: only for initial safety: can be set to infinity when needed.

Should only be merged once the following is merged on substrate:

UPDATE:

The above numbers are still my suggestion, but I this PR as it is has all the max counters set to 0, meaning that we can deploy this but no pool can be created. This will be helpful in making the process of enabling pools independent of a runtime upgrade.

@kianenigma kianenigma added A0-please_review Pull request needs code review. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels May 22, 2022
@kianenigma kianenigma added this to the v0.9.23 milestone May 22, 2022
@paritytech-ci paritytech-ci requested review from a team May 22, 2022 13:31
@kianenigma
Copy link
Contributor Author

/bench runtime polkadot pallet_nomination_pools

@parity-benchapp
Copy link

parity-benchapp bot commented May 22, 2022

Benchmark Runtime Polkadot Pallet for branch "kiz-pools-polkadot" with command cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Results
Wrote dot graph to /home/benchbot/bench-bot/git/polkadot/target/production/build/orchestra-proc-macro-65cc68db4b7d857b/out/overseer-subsystem-messaging.dot

ERROR: Unable to commit file ./runtime/polkadot/src/weights/

@kianenigma kianenigma changed the title Add nomination poools to Polkadot runtime Add nomination pools to Polkadot runtime May 22, 2022
@kianenigma
Copy link
Contributor Author

/bench runtime polkadot pallet_nomination_pools

@parity-benchapp
Copy link

parity-benchapp bot commented May 23, 2022

Benchmark Runtime Polkadot Pallet for branch "kiz-pools-polkadot" with command cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Results
2022-05-23 07:28:36 [0] 💸 generated 1 npos voters, 1 from validators and 0 nominators    
2022-05-23 07:28:36 Took active validators from set with wrong size    
2022-05-23 07:28:36 Took active validators from set with wrong size    
2022-05-23 07:28:36 Took active validators from set with wrong size.    
2022-05-23 07:28:36 Took active validators from set with wrong size    
Error: 
   0: �[91mInvalid input: Did not find the benchmarking metadata. This could mean that you either did not build the node correctly with the `--features runtime-benchmarks` flag, or the chain spec that you are using was not created by a node that was compiled with the flag: cannot create module: memory index 0 has a minimum page size of 4119 which exceeds the limit of 4096�[0m

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2022-05-23 07:28:37 Cannot create a runtime error=Other("cannot create module: memory index 0 has a minimum page size of 4119 which exceeds the limit of 4096")

ERROR: Unable to commit file ./runtime/polkadot/src/weights/

@ggwpez
Copy link
Member

ggwpez commented May 23, 2022

I think you currently have to copy&paste the benchmark command without the --heap-pages flag to make it work like here: paritytech/substrate#11431 (comment).
Should be fixed after: paritytech/substrate#11482

@kianenigma
Copy link
Contributor Author

/benchmark runtime custom pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

@parity-benchapp
Copy link

parity-benchapp bot commented May 24, 2022

Benchmark Runtime Custom for branch "kiz-pools-polkadot" with command cargo run --quiet --profile=production --features runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Results
2022-05-24 09:30:03 [0] 💸 generated 1 npos voters, 1 from validators and 0 nominators    
2022-05-24 09:30:03 Took active validators from set with wrong size    
2022-05-24 09:30:03 Took active validators from set with wrong size    
2022-05-24 09:30:03 Took active validators from set with wrong size.    
2022-05-24 09:30:03 Took active validators from set with wrong size    
Error: 
   0: �[91mInvalid input: Did not find the benchmarking metadata. This could mean that you either did not build the node correctly with the `--features runtime-benchmarks` flag, or the chain spec that you are using was not created by a node that was compiled with the flag: cannot create module: memory index 0 has a minimum page size of 4119 which exceeds the limit of 4096�[0m

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2022-05-24 09:30:05 Cannot create a runtime error=Other("cannot create module: memory index 0 has a minimum page size of 4119 which exceeds the limit of 4096")

ERROR: Unable to commit file ./runtime/polkadot/src/weights/

@ggwpez
Copy link
Member

ggwpez commented May 24, 2022

/benchmark runtime custom pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic="*" --execution=wasm --wasm-execution=compiled --header=./file_header.txt --output=./runtime/polkadot/src/weights/

@parity-benchapp
Copy link

parity-benchapp bot commented May 24, 2022

Benchmark Runtime Custom for branch "kiz-pools-polkadot" with command cargo run --quiet --profile=production --features runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic="*" --execution=wasm --wasm-execution=compiled --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Results
Wrote dot graph to /home/benchbot/bench-bot/git/polkadot/target/production/build/orchestra-proc-macro-dc1fc454fe539c9d/out/overseer-subsystem-messaging.dot
Pallet: "pallet_nomination_pools", Extrinsic: "join", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools MinJoinBond (r:1 w:0)
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: NominationPools RewardPools (r:1 w:0)
Storage: System Account (r:2 w:1)
Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
Storage: NominationPools MaxPoolMembers (r:1 w:0)
Storage: NominationPools CounterForPoolMembers (r:1 w:1)
Storage: Staking Bonded (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: VoterList ListNodes (r:3 w:3)
Storage: VoterList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    113.1
              µs

Reads = 17
Writes = 11

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    113.1
              µs

Reads = 17
Writes = 11

Pallet: "pallet_nomination_pools", Extrinsic: "bond_extra_transfer", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: NominationPools RewardPools (r:1 w:1)
Storage: System Account (r:2 w:2)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Bonded (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: VoterList ListNodes (r:3 w:3)
Storage: VoterList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    105.8
              µs

Reads = 13
Writes = 12

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    105.8
              µs

Reads = 13
Writes = 12

Pallet: "pallet_nomination_pools", Extrinsic: "bond_extra_reward", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: NominationPools RewardPools (r:1 w:1)
Storage: System Account (r:3 w:3)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Bonded (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: VoterList ListNodes (r:2 w:2)
Storage: VoterList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=      116
              µs

Reads = 13
Writes = 12

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=      116
              µs

Reads = 13
Writes = 12

Pallet: "pallet_nomination_pools", Extrinsic: "claim_payout", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: NominationPools RewardPools (r:1 w:1)
Storage: System Account (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    45.35
              µs

Reads = 4
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    45.35
              µs

Reads = 4
Writes = 4

Pallet: "pallet_nomination_pools", Extrinsic: "unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: NominationPools RewardPools (r:1 w:1)
Storage: System Account (r:2 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Nominators (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: VoterList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: VoterList ListBags (r:2 w:2)
Storage: NominationPools SubPoolsStorage (r:1 w:1)
Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    110.9
              µs

Reads = 18
Writes = 13

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    110.9
              µs

Reads = 18
Writes = 13

Pallet: "pallet_nomination_pools", Extrinsic: "pool_withdraw_unbonded", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools BondedPools (r:1 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    35.85
    + s    0.028
              µs

Reads = 4 + (0 * s)
Writes = 2 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     35.77     0.234    0.6%
    2      34.9     0.147    0.4%
    4     35.22     0.118    0.3%
    6      35.4     0.157    0.4%
    8     36.52     0.202    0.5%
   10      35.2     0.152    0.4%
   12     36.28     0.233    0.6%
   14     35.82      0.31    0.8%
   16     36.83     0.266    0.7%
   18     36.74     0.165    0.4%
   20     36.07     0.173    0.4%
   22     36.32     0.154    0.4%
   24     37.87     0.102    0.2%
   26     36.49     0.182    0.4%
   28     37.04     0.172    0.4%
   30      36.7     0.219    0.5%
   32     37.68     0.172    0.4%
   34     37.45     0.125    0.3%
   36      36.8     0.135    0.3%
   38     37.04     0.138    0.3%
   40      37.2     0.187    0.5%
   42     37.25     0.155    0.4%
   44     36.97     0.108    0.2%
   46     37.07     0.217    0.5%
   48     37.55     0.173    0.4%
   50     37.23     0.206    0.5%
   52     37.09      0.14    0.3%
   54     38.72     0.143    0.3%
   56      37.4     0.198    0.5%
   58     37.43     0.136    0.3%
   60     37.63     0.156    0.4%
   62     37.59     0.061    0.1%
   64     38.13      0.31    0.8%
   66     38.16     0.242    0.6%
   68     38.47     0.098    0.2%
   70     38.13     0.238    0.6%
   72      37.8       0.1    0.2%
   74     38.32     0.202    0.5%
   76     37.58      0.09    0.2%
   78     37.36     0.185    0.4%
   80     38.05     0.106    0.2%
   82     37.87     0.128    0.3%
   84     37.95     0.208    0.5%
   86     38.81     0.178    0.4%
   88     37.97     0.177    0.4%
   90     38.05     0.141    0.3%
   92     38.52     0.125    0.3%
   94     38.78     0.184    0.4%
   96     38.46     0.252    0.6%
   98     38.32     0.164    0.4%
  100     38.82     0.226    0.5%

Quality and confidence:
param     error
s             0

Model:
Time ~=    35.85
    + s    0.029
              µs

Reads = 4 + (0 * s)
Writes = 2 + (0 * s)

Pallet: "pallet_nomination_pools", Extrinsic: "withdraw_unbonded_update", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: NominationPools SubPoolsStorage (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: NominationPools CounterForPoolMembers (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    72.48
    + s    0.035
              µs

Reads = 8 + (0 * s)
Writes = 7 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     71.67     0.161    0.2%
    2     71.71     0.313    0.4%
    4     71.92     0.157    0.2%
    6     72.02     0.286    0.3%
    8     72.81     0.251    0.3%
   10     71.97     0.383    0.5%
   12     72.73     0.163    0.2%
   14     74.13     0.222    0.2%
   16      75.6     0.338    0.4%
   18     73.63     0.292    0.3%
   20     89.74     21.17   23.5%
   22     74.08      0.44    0.5%
   24     73.98      0.24    0.3%
   26     74.41     0.332    0.4%
   28     73.74     0.227    0.3%
   30     73.26     0.283    0.3%
   32     74.27     0.457    0.6%
   34     74.23     0.167    0.2%
   36     73.47     0.239    0.3%
   38     73.29     0.126    0.1%
   40     73.44     0.155    0.2%
   42     74.71     0.774    1.0%
   44     73.54      0.17    0.2%
   46     75.56     0.288    0.3%
   48     75.81     0.535    0.7%
   50     73.79     0.186    0.2%
   52     73.82      0.31    0.4%
   54     75.45     0.363    0.4%
   56     74.21     0.172    0.2%
   58      74.3     0.256    0.3%
   60     74.36     0.172    0.2%
   62     74.59     0.247    0.3%
   64     74.84     0.304    0.4%
   66      74.4     0.246    0.3%
   68     74.96     0.285    0.3%
   70     75.45     0.552    0.7%
   72     75.03     0.312    0.4%
   74     74.66     0.284    0.3%
   76     74.99      0.47    0.6%
   78     74.74     0.494    0.6%
   80     75.64     0.515    0.6%
   82     75.24     0.251    0.3%
   84     75.38     0.233    0.3%
   86     75.37     0.499    0.6%
   88     75.29     0.271    0.3%
   90     75.48     0.648    0.8%
   92     76.57     0.262    0.3%
   94     76.95     0.618    0.8%
   96     75.61     0.447    0.5%
   98      75.8     0.549    0.7%
  100     75.77     0.219    0.2%

Quality and confidence:
param     error
s         0.005

Model:
Time ~=    73.51
    + s    0.023
              µs

Reads = 8 + (0 * s)
Writes = 7 + (0 * s)

Pallet: "pallet_nomination_pools", Extrinsic: "withdraw_unbonded_kill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: NominationPools SubPoolsStorage (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Locks (r:1 w:1)
Storage: NominationPools CounterForPoolMembers (r:1 w:1)
Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
Storage: NominationPools RewardPools (r:1 w:1)
Storage: NominationPools CounterForRewardPools (r:1 w:1)
Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
Storage: NominationPools CounterForBondedPools (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    127.4
    + s    0.005
              µs

Reads = 19 + (0 * s)
Writes = 16 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     127.5      0.61    0.4%
    2     127.7     1.178    0.9%
    4     130.3     0.365    0.2%
    6     127.4      0.71    0.5%
    8     127.5     1.108    0.8%
   10     127.1     0.791    0.6%
   12     127.7     0.625    0.4%
   14     127.9     1.212    0.9%
   16       127     0.352    0.2%
   18       127     0.349    0.2%
   20     127.3     1.069    0.8%
   22       127     0.496    0.3%
   24     127.3     0.611    0.4%
   26     127.5     1.044    0.8%
   28     129.6     0.399    0.3%
   30     128.5      1.34    1.0%
   32     127.1     0.376    0.2%
   34     126.9     0.402    0.3%
   36     127.6     1.005    0.7%
   38     127.4      0.59    0.4%
   40       127     0.897    0.7%
   42     126.8     0.675    0.5%
   44     127.8     1.157    0.9%
   46     126.5     0.362    0.2%
   48     126.9     0.337    0.2%
   50     127.3     0.766    0.6%
   52     127.7     0.839    0.6%
   54     127.3     0.574    0.4%
   56       128     0.701    0.5%
   58     127.3     0.631    0.4%
   60       130     0.375    0.2%
   62     127.4     0.427    0.3%
   64     127.6     0.292    0.2%
   66       127     0.343    0.2%
   68       130       0.5    0.3%
   70     127.3     0.659    0.5%
   72     127.1     0.547    0.4%
   74     130.2     0.859    0.6%
   76     129.8     0.571    0.4%
   78     127.6     0.347    0.2%
   80     128.2     1.496    1.1%
   82     129.7     0.467    0.3%
   84     128.2      1.19    0.9%
   86     126.9     0.434    0.3%
   88     126.7     0.505    0.3%
   90     126.7     0.623    0.4%
   92     127.2     0.683    0.5%
   94     127.5     0.766    0.6%
   96     127.2     0.383    0.3%
   98     129.8     0.518    0.3%
  100       130     0.584    0.4%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    127.5
    + s    0.007
              µs

Reads = 19 + (0 * s)
Writes = 16 + (0 * s)

Pallet: "pallet_nomination_pools", Extrinsic: "create", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: NominationPools MinCreateBond (r:1 w:0)
Storage: NominationPools MinJoinBond (r:1 w:0)
Storage: NominationPools MaxPools (r:1 w:0)
Storage: NominationPools CounterForBondedPools (r:1 w:1)
Storage: NominationPools PoolMembers (r:1 w:1)
Storage: NominationPools LastPoolId (r:1 w:1)
Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
Storage: NominationPools MaxPoolMembers (r:1 w:0)
Storage: NominationPools CounterForPoolMembers (r:1 w:1)
Storage: System Account (r:2 w:2)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: NominationPools RewardPools (r:1 w:1)
Storage: NominationPools CounterForRewardPools (r:1 w:1)
Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
Storage: NominationPools BondedPools (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    122.7
              µs

Reads = 22
Writes = 15

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    122.7
              µs

Reads = 22
Writes = 15

Pallet: "pallet_nomination_pools", Extrinsic: "nominate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools BondedPools (r:1 w:0)
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:0)
Storage: VoterList ListNodes (r:1 w:1)
Storage: VoterList ListBags (r:1 w:1)
Storage: VoterList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    43.46
    + n    2.014
              µs

Reads = 12 + (1 * n)
Writes = 5 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     43.62     0.182    0.4%
    2     47.95     0.401    0.8%
    3     49.76     0.275    0.5%
    4     51.85     0.297    0.5%
    5     53.94     0.234    0.4%
    6     55.59     0.367    0.6%
    7     57.73     0.145    0.2%
    8     59.54     0.164    0.2%
    9     60.24     0.183    0.3%
   10     63.04     0.459    0.7%
   11     65.04     0.683    1.0%
   12     68.46     0.474    0.6%
   13     68.85     0.707    1.0%
   14     71.01     0.473    0.6%
   15     72.59      0.31    0.4%
   16     77.21     0.417    0.5%

Quality and confidence:
param     error
n         0.015

Model:
Time ~=     43.2
    + n    2.024
              µs

Reads = 12 + (1 * n)
Writes = 5 + (0 * n)

Pallet: "pallet_nomination_pools", Extrinsic: "set_state", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools BondedPools (r:1 w:1)
Storage: Staking Ledger (r:1 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    20.65
              µs

Reads = 2
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    20.65
              µs

Reads = 2
Writes = 1

Pallet: "pallet_nomination_pools", Extrinsic: "set_metadata", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools BondedPools (r:1 w:0)
Storage: NominationPools Metadata (r:1 w:1)
Storage: NominationPools CounterForMetadata (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     9.34
    + n    0.001
              µs

Reads = 3 + (0 * n)
Writes = 2 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     9.337      0.07    0.7%
    6     9.108     0.066    0.7%
   11     9.297      0.06    0.6%
   16     9.267     0.075    0.8%
   21     9.392     0.046    0.4%
   26      9.36     0.072    0.7%
   31      9.35     0.109    1.1%
   36     9.451     0.041    0.4%
   41     9.408     0.054    0.5%
   46     9.276     0.078    0.8%
   51     9.339     0.046    0.4%
   56      9.38     0.086    0.9%
   61     9.439     0.119    1.2%
   66     9.482     0.042    0.4%
   71     9.517     0.062    0.6%
   76     9.451     0.092    0.9%
   81     9.461     0.034    0.3%
   86     9.448     0.064    0.6%
   91     9.559     0.071    0.7%
   96     9.494     0.053    0.5%
  101     9.579     0.084    0.8%
  106     9.546     0.062    0.6%
  111     9.495     0.049    0.5%
  116     9.592     0.063    0.6%
  121     9.519     0.066    0.6%
  126     9.504     0.058    0.6%
  131     9.382     0.056    0.5%
  136     9.549     0.087    0.9%
  141      9.59     0.049    0.5%
  146     9.319     0.075    0.8%
  151     9.582     0.055    0.5%
  156     9.481     0.068    0.7%
  161     9.394     0.095    1.0%
  166     9.458     0.077    0.8%
  171     9.447     0.102    1.0%
  176     9.608     0.068    0.7%
  181     9.639     0.096    0.9%
  186     9.477      0.07    0.7%
  191     9.595     0.086    0.8%
  196     9.569     0.052    0.5%
  201     9.668     0.079    0.8%
  206     9.593     0.067    0.6%
  211     9.654     0.085    0.8%
  216     9.634     0.085    0.8%
  221     9.538     0.091    0.9%
  226     9.746     0.101    1.0%
  231     9.639     0.123    1.2%
  236     9.647     0.077    0.7%
  241     9.672     0.061    0.6%
  246     9.582     0.058    0.6%
  251     9.593     0.092    0.9%
  256     9.453     0.073    0.7%

Quality and confidence:
param     error
n             0

Model:
Time ~=    9.331
    + n    0.001
              µs

Reads = 3 + (0 * n)
Writes = 2 + (0 * n)

Pallet: "pallet_nomination_pools", Extrinsic: "set_configs", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools MinJoinBond (r:0 w:1)
Storage: NominationPools MaxPoolMembers (r:0 w:1)
Storage: NominationPools MaxPoolMembersPerPool (r:0 w:1)
Storage: NominationPools MinCreateBond (r:0 w:1)
Storage: NominationPools MaxPools (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    2.386
              µs

Reads = 0
Writes = 5

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    2.386
              µs

Reads = 0
Writes = 5

Pallet: "pallet_nomination_pools", Extrinsic: "update_roles", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: NominationPools BondedPools (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    16.06
              µs

Reads = 1
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    16.06
              µs

Reads = 1
Writes = 1


Parity Bot added 2 commits May 24, 2022 11:35
…-- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --header=./file_header.txt --output=./runtime/polkadot/src/weights/
Copy link
Member

@shawntabrizi shawntabrizi left a comment

Choose a reason for hiding this comment

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

When does this plan to go out?

I feel we should probably let this bake on Kusama a bit longer, especially given the recent bug reports.

@paritytech-ci paritytech-ci requested review from a team May 25, 2022 01:11
@bkchr
Copy link
Member

bkchr commented May 25, 2022

When does this plan to go out?

I feel we should probably let this bake on Kusama a bit longer, especially given the recent bug reports.

Sounds like a good plan to me.

@coderobe coderobe modified the milestones: v0.9.23, v0.9.24 May 25, 2022
@kianenigma kianenigma modified the milestones: v0.9.24, v0.9.25 Jun 14, 2022
@coderobe coderobe removed this from the v0.9.25 milestone Jun 23, 2022
@paritytech paritytech deleted a comment from command-bot bot Aug 2, 2022
@command-bot
Copy link

command-bot bot commented Aug 2, 2022

@kianenigma Command "$PIPELINE_SCRIPTS_DIR/fmt.sh" 1 has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/1716730 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/1716730/artifacts/download.

@kianenigma
Copy link
Contributor Author

bot rebase

@paritytech-processbot
Copy link

Branch is already up-to-date

Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

Exciting! Lets go 🚀

runtime/polkadot/src/lib.rs Show resolved Hide resolved
runtime/polkadot/src/lib.rs Show resolved Hide resolved
runtime/polkadot/src/lib.rs Outdated Show resolved Hide resolved
runtime/common/src/lib.rs Show resolved Hide resolved
kianenigma and others added 3 commits August 8, 2022 10:05
@kianenigma kianenigma added the E0-runtime_migration PR introduces code that might require downstream chains to run a runtime upgrade. label Aug 9, 2022
@paritytech-ci paritytech-ci requested a review from a team August 10, 2022 14:11
@paritytech-ci paritytech-ci requested a review from a team August 10, 2022 14:11
runtime/polkadot/src/lib.rs Outdated Show resolved Hide resolved
@kianenigma
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Statuses failed for 36e7766

@kianenigma
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit f746d50 into master Aug 14, 2022
@paritytech-processbot paritytech-processbot bot deleted the kiz-pools-polkadot branch August 14, 2022 17:00
ordian added a commit that referenced this pull request Aug 15, 2022
* master:
  Transaction payment runtime apis: query call info and fee details (#5871)
  [ci] Improve cancel-pipeline job (#5874)
  Bump wasmtime from 0.38.1 to 0.38.3 (#5802)
  Incorporate changes from substrate PR #11908 (#5815)
  Add nomination pools to Polkadot runtime (#5582)
  Change request-response protocol names to include genesis hash & fork id (#5870)
  [ci] Run check-runtime only for PRs (#5858)
  Bump tokio from 1.18.2 to 1.19.2 (#5678)
  Zombienet: test disputes with malus garbage candidates (#5857)
  add unit tests to run runtime migrations (#5865)
  Trivial networking changes for Substrate PR #11940 (#5841)
  Renaming CLI prunning and keep-blocks flags (#5863)
  Update yamux to fix a potential crash (#5861)
vimukthi-git pushed a commit to ComposableFi/composable that referenced this pull request Jan 18, 2023
#### Intro

Upgrade polkadot from v0.9.27 to v0.9.30 as a checkpoint, then to
v0.9.33 (latest version without workspace dependencies)

Require ComposableFi/composable-ibc#176 to be merged
first.

#### Migrations
- v0.9.28
    - [x] paritytech/polkadot#5582
        - Nomination not present in our runtimes
- v0.9.29
    - [x] paritytech/substrate#12095
        - Nomination not present in our runtimes
- v0.9.30
    - [x] paritytech/substrate#12034
        - BagList/Staking not present in our runtimes
    - [x] paritytech/polkadot#5930
        - Nomination/BagList/Staking not present in our runtimes
    - [x] paritytech/substrate#12230
        - Staking not present in our runtimes
    - [x] paritytech/polkadot#5996
        - Staking not present in our runtimes
    - [x] paritytech/substrate#12083
        - Contracts not present in our runtimes

Signed-off-by: cor <cor@pruijs.dev>
Co-authored-by: cor <cor@pruijs.dev>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. E0-runtime_migration PR introduces code that might require downstream chains to run a runtime upgrade.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants