<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BLE subsystem host RAM increase when migrating from NCS 2.5.0 to 2.7.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114048/ble-subsystem-host-ram-increase-when-migrating-from-ncs-2-5-0-to-2-7-0</link><description>Hi, 
 I am hit with a noticeable ram usage bump (~10%) when migrating from 2.5.0 to 2.7.0. Upon generating the ram_report, I notice that net_buf_data_hci_rx_pool has a huge ram usage increase (from 1.5k to 5k) while all of the BT configs remain to be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Aug 2024 08:06:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114048/ble-subsystem-host-ram-increase-when-migrating-from-ncs-2-5-0-to-2-7-0" /><item><title>RE: BLE subsystem host RAM increase when migrating from NCS 2.5.0 to 2.7.0</title><link>https://devzone.nordicsemi.com/thread/499912?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 08:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1b6b982-34aa-4bf2-9782-e0032197c3cd</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;These two are application configurable buffers with defaults set in&amp;nbsp;zephyr\subsys\bluetooth\common\Kconfig&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think the difference comes from here&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:186px;max-width:915px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1830x372/__key/communityserver-discussions-components-files/4/pastedimage1724745830720v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;And we can see that the BT_RECV_BLOCKING is removed in new version so it looks like the default changed from 3 to 20&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:104px;max-width:773px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1546x208/__key/communityserver-discussions-components-files/4/pastedimage1724745992829v4.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE subsystem host RAM increase when migrating from NCS 2.5.0 to 2.7.0</title><link>https://devzone.nordicsemi.com/thread/499626?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 19:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2600244d-55c4-441a-920c-3d2795056ed7</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;You are right it looks like the option is deprecated in Zephyr 3.4.99. I wonder if there is a way to see which config selects&amp;nbsp;the count value in previous Zephyr releases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE subsystem host RAM increase when migrating from NCS 2.5.0 to 2.7.0</title><link>https://devzone.nordicsemi.com/thread/499467?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 04:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0eca44b-5363-46e9-856c-569105af7edf</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I do not see this config (&lt;span&gt;COFIG_BT_RECV_IS_RX_THREAD&amp;nbsp;) at all in both the SDK versions. Can you please link me to the documentation for this?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE subsystem host RAM increase when migrating from NCS 2.5.0 to 2.7.0</title><link>https://devzone.nordicsemi.com/thread/499110?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 17:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f86bac-8a3a-4880-a2c2-2914a64e3d95</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;Actually, I see the default was 3 when&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span&gt;COFIG_BT_RECV_IS_RX_THREAD is selected. However, the default seems to be set to 10 and 6 for the latest version, and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;COFIG_BT_RECV_IS_RX_THREAD no longer seem to exist?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE subsystem host RAM increase when migrating from NCS 2.5.0 to 2.7.0</title><link>https://devzone.nordicsemi.com/thread/499108?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 16:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f99d0fd-0aa3-4b5a-9990-cfc8e200dd7e</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;For some reason&amp;nbsp;BT_BUF_EVT_RX_COUNT was set to 10, and&amp;nbsp;BT_BUF_ACL_RX_COUNT was set to 6. Both of them were set to 3 in the previous SDK version(2.5.0). I manually changed them back to 3 and I was able to get back to the memory usage before. However, I am not sure which module is setting these numbers and I am a bit concerned to if I should manually set them to a lower value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE subsystem host RAM increase when migrating from NCS 2.5.0 to 2.7.0</title><link>https://devzone.nordicsemi.com/thread/498956?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 06:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e0d88c0-c65c-4e14-8015-202944e8f30d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have checked the peripheral_uart sample and&amp;nbsp;&lt;span&gt;net_buf_data_hci_rx_pool&amp;nbsp;&lt;/span&gt;changed from 730-&amp;gt;740 bytes in this sample.&lt;/p&gt;
&lt;p&gt;Looking into the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/bluetooth/host/buf.c#L61"&gt;host\buf.c&lt;/a&gt;&amp;nbsp;it looks like this buffer is depending on&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BT_BUF_EVT_RX_COUNT&lt;br /&gt;CONFIG_BT_BUF_EVT_RX_SIZE&lt;br /&gt;CONFIG_BT_BUF_ACL_RX_COUNT&amp;nbsp;&lt;br /&gt;CONFIG_BT_BUF_ACL_RX_SIZE&lt;br /&gt;&lt;br /&gt;Check if these things changed in your new port. I do not see anything else affecting this.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>