From e718c694f5baa875bf00af23fc1543e9f54dee15 Mon Sep 17 00:00:00 2001 From: Alexandru Gheorghe Date: Fri, 20 Sep 2024 10:59:37 +0300 Subject: [PATCH 1/2] bitfield_distribution: Move on blocking pool and use custom capacity Signed-off-by: Alexandru Gheorghe --- polkadot/node/overseer/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/node/overseer/src/lib.rs b/polkadot/node/overseer/src/lib.rs index 26a6a907e324..23adf4f4d8a4 100644 --- a/polkadot/node/overseer/src/lib.rs +++ b/polkadot/node/overseer/src/lib.rs @@ -521,7 +521,7 @@ pub struct Overseer { ])] bitfield_signing: BitfieldSigning, - #[subsystem(BitfieldDistributionMessage, sends: [ + #[subsystem(blocking, message_capacity: 8192, BitfieldDistributionMessage, sends: [ RuntimeApiMessage, NetworkBridgeTxMessage, ProvisionerMessage, From 358452f5d77e40331237bf010c93e860d79ad65d Mon Sep 17 00:00:00 2001 From: Alexandru Gheorghe Date: Fri, 20 Sep 2024 14:08:50 +0300 Subject: [PATCH 2/2] Add prdoc Signed-off-by: Alexandru Gheorghe --- prdoc/pr_5787.prdoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 prdoc/pr_5787.prdoc diff --git a/prdoc/pr_5787.prdoc b/prdoc/pr_5787.prdoc new file mode 100644 index 000000000000..59d4118f1905 --- /dev/null +++ b/prdoc/pr_5787.prdoc @@ -0,0 +1,13 @@ +title: "Move bitfield_distribution to blocking task pool and set capacity to 8192" + +doc: + - audience: Node Dev + description: | + This is moving bitfield_distribution to the blocking task pool because it does cpu + intensive work and to make it snappier. Additionally, also increase the message + capacity of the subsystem to make sure the queue does not get full if there is a + burst of messages. + +crates: + - name: polkadot-overseer + bump: patch