From 9f37cfc7fcaec35b1abfe1f3e742e027209c0f28 Mon Sep 17 00:00:00 2001 From: WangShichang Date: Tue, 10 Aug 2021 19:26:58 +0800 Subject: [PATCH 1/2] add docs "How to improve Wi-Fi performance" in api-guides for esp32s3. --- docs/en/api-guides/wifi.rst | 172 ++++++++++++++++-- docs/zh_CN/api-guides/wifi.rst | 163 ++++++++++++++++- .../wifi/iperf/sdkconfig.defaults.esp32s3 | 4 +- 3 files changed, 316 insertions(+), 23 deletions(-) diff --git a/docs/en/api-guides/wifi.rst b/docs/en/api-guides/wifi.rst index d268ac5d34..61def912bc 100644 --- a/docs/en/api-guides/wifi.rst +++ b/docs/en/api-guides/wifi.rst @@ -2075,10 +2075,6 @@ The parameters not mentioned in the following table should be set to the default +----------------------------+-------+---------+---------+ | TCP_WND_DEFAULT(KB) | 40 | 16 | 6 | +----------------------------+-------+---------+---------+ - | WIFI_IRAM_OPT | - | - | - | - +----------------------------+-------+---------+---------+ - | WIFI_RX_IRAM_OPT | - | - | - | - +----------------------------+-------+---------+---------+ | LWIP_IRAM_OPTIMIZATION | 13 | 13 | 0 | +----------------------------+-------+---------+---------+ | TCP TX throughput (Mbit/s) | 38.1 | 27.2 | 20.4 | @@ -2090,12 +2086,64 @@ The parameters not mentioned in the following table should be set to the default | UDP RX throughput (Mbit/s) | 52.4 | 44.5 | 44.2 | +----------------------------+-------+---------+---------+ -.. only:: esp32 or esp32s2 +.. only:: esp32s3 + + +----------------------------+-------+---------+---------+ + | Rank | Iperf | Default | Minimum | + +============================+=======+=========+=========+ + | Available memory(KB) | 133.9 | 183.9 | 273.6 | + +----------------------------+-------+---------+---------+ + | WIFI_STATIC_RX_BUFFER_NUM | 24 | 8 | 3 | + +----------------------------+-------+---------+---------+ + | WIFI_DYNAMIC_RX_BUFFER_NUM | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | WIFI_DYNAMIC_TX_BUFFER_NUM | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | WIFI_RX_BA_WIN | 32 | 16 | 6 | + +----------------------------+-------+---------+---------+ + | TCP_SND_BUF_DEFAULT (KB) | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | TCP_WND_DEFAULT (KB) | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | WIFI_IRAM_OPT | 15 | 15 | 15 | + +----------------------------+-------+---------+---------+ + | WIFI_RX_IRAM_OPT | 16 | 16 | 16 | + +----------------------------+-------+---------+---------+ + | LWIP_IRAM_OPTIMIZATION | 13 | 13 | 0 | + +----------------------------+-------+---------+---------+ + | INSTRUCTION_CACHE | 32 | 32 | 16 | + +----------------------------+-------+---------+---------+ + | INSTRUCTION_CACHE_LINE | 32 | 32 | 32 | + +----------------------------+-------+---------+---------+ + | INSTRUCTION_CACHE_WAYS | 8 | 8 | 4 | + +----------------------------+-------+---------+---------+ + | TCP TX throughput (Mbit/s) | 83.93 | 64.28 | 23.17 | + +----------------------------+-------+---------+---------+ + | TCP RX throughput (Mbit/s) | 73.98 | 60.39 | 18.11 | + +----------------------------+-------+---------+---------+ + | UDP TX throughput (Mbit/s) | 98.69 | 96.28 | 48.78 | + +----------------------------+-------+---------+---------+ + | UDP RX throughput (Mbit/s) | 88.58 | 86.57 | 59.45 | + +----------------------------+-------+---------+---------+ + +.. only:: esp32 or esp32s3 .. note:: - The result is tested with a single stream in a shielded box using an ASUS RT-N66U router. + The test was performed with a single stream in a shielded box using an ASUS RT-N66U router. {IDF_TARGET_NAME}'s CPU is dual core with 240 MHz, {IDF_TARGET_NAME}'s flash is in QIO mode with 80 MHz. +.. only:: esp32s2 + + .. note:: + The test was performed with a single stream in a shielded box using an ASUS RT-N66U router. + {IDF_TARGET_NAME}'s CPU is single core with 240 MHz, {IDF_TARGET_NAME}'s flash is in QIO mode with 80 MHz. + +.. only:: esp32c3 + + .. note:: + The test was performed with a single stream in a shielded box using an ASUS RT-N66U router. + {IDF_TARGET_NAME}'s CPU is single core with 160 MHz, {IDF_TARGET_NAME}'s flash is in QIO mode with 80 MHz. + .. only:: esp32 **Ranks:** @@ -2147,7 +2195,7 @@ The parameters not mentioned in the following table should be set to the default - **Minimum rank** This is the minimum configuration rank of {IDF_TARGET_NAME}. The protocol stack only uses the necessary memory for running. It is suitable for scenarios that have no requirement for performance and the application requires lots of space. -.. only:: esp32 or esp32s2 +.. only:: esp32 or esp32s2 or esp32s3 Using PSRAM ++++++++++++++++++++++++++++ @@ -2160,7 +2208,7 @@ The parameters not mentioned in the following table should be set to the default +----------------------------+-------+---------+---------------+---------+ | Rank | Iperf | Default | Memory saving | Minimum | +============================+=======+=========+===============+=========+ - | Available memory(KB) | 113.8 | 152.4 | 181.2 | 202.6 | + | Available memory (KB) | 113.8 | 152.4 | 181.2 | 202.6 | +----------------------------+-------+---------+---------------+---------+ | WIFI_STATIC_RX_BUFFER_NUM | 16 | 8 | 4 | 2 | +----------------------------+-------+---------+---------------+---------+ @@ -2170,9 +2218,9 @@ The parameters not mentioned in the following table should be set to the default +----------------------------+-------+---------+---------------+---------+ | WIFI_RX_BA_WIN | 16 | 16 | 8 | Disable | +----------------------------+-------+---------+---------------+---------+ - | TCP_SND_BUF_DEFAULT(KB) | 65 | 65 | 65 | 65 | + | TCP_SND_BUF_DEFAULT (KB) | 65 | 65 | 65 | 65 | +----------------------------+-------+---------+---------------+---------+ - | TCP_WND_DEFAULT(KB) | 65 | 65 | 65 | 65 | + | TCP_WND_DEFAULT (KB) | 65 | 65 | 65 | 65 | +----------------------------+-------+---------+---------------+---------+ | WIFI_IRAM_OPT | 15 | 15 | 15 | 0 | +----------------------------+-------+---------+---------------+---------+ @@ -2194,7 +2242,7 @@ The parameters not mentioned in the following table should be set to the default +----------------------------+-------+---------+---------------+---------+ | Rank | Iperf | Default | Memory saving | Minimum | +============================+=======+=========+===============+=========+ - | Available memory(KB) | 70.6 | 96.4 | 118.8 | 148.2 | + | Available memory (KB) | 70.6 | 96.4 | 118.8 | 148.2 | +----------------------------+-------+---------+---------------+---------+ | WIFI_STATIC_RX_BUFFER_NUM | 8 | 8 | 6 | 4 | +----------------------------+-------+---------+---------------+---------+ @@ -2204,9 +2252,9 @@ The parameters not mentioned in the following table should be set to the default +----------------------------+-------+---------+---------------+---------+ | WIFI_RX_BA_WIN | 16 | 6 | 6 | Disable | +----------------------------+-------+---------+---------------+---------+ - | TCP_SND_BUF_DEFAULT(KB) | 32 | 32 | 32 | 32 | + | TCP_SND_BUF_DEFAULT (KB) | 32 | 32 | 32 | 32 | +----------------------------+-------+---------+---------------+---------+ - | TCP_WND_DEFAULT(KB) | 32 | 32 | 32 | 32 | + | TCP_WND_DEFAULT (KB) | 32 | 32 | 32 | 32 | +----------------------------+-------+---------+---------------+---------+ | WIFI_IRAM_OPT | 15 | 15 | 15 | 0 | +----------------------------+-------+---------+---------------+---------+ @@ -2234,6 +2282,104 @@ The parameters not mentioned in the following table should be set to the default .. note:: Reaching peak performance may cause task watchdog. It is a normal phenomenon considering the CPU may have no time for lower priority tasks. + .. only:: esp32s3 + + **PSRAM with 4 lines:** + + +----------------------------+-------+--------+---------------+----------+ + | Rank | Iperf | Default| Memory saving | Minimum | + +============================+=======+========+===============+==========+ + | Available memory (KB) | 50.3 | 158.7 | 198.2 | 228.9 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_STATIC_RX_BUFFER_NUM | 24 | 8 | 6 | 4 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_DYNAMIC_RX_BUFFER_NUM | 85 | 64 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_STATIC_TX_BUFFER_NUM | 32 | 32 | 6 | 4 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_RX_BA_WIN | 32 | 16 | 12 | Disable | + +----------------------------+-------+--------+---------------+----------+ + | TCP_SND_BUF_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | TCP_WND_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_IRAM_OPT | 15 | 15 | 15 | 0 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_RX_IRAM_OPT | 16 | 16 | 0 | 0 | + +----------------------------+-------+--------+---------------+----------+ + | LWIP_IRAM_OPTIMIZATION | 13 | 0 | 0 | 0 | + +----------------------------+-------+--------+---------------+----------+ + | LWIP_UDP_RECVMBOX_SIZE | 16 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | INSTRUCTION_CACHE | 32 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | INSTRUCTION_CACHE_LINE | 32 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | INSTRUCTION_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+--------+---------------+----------+ + | DATA_CACHE | 64 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | DATA_CACHE_LINE | 32 | 32 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | DATA_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+--------+---------------+----------+ + | TCP TX throughput (Mbit/s) | 93.1 | 62.5 | 41.3 | 42.7 | + +----------------------------+-------+--------+---------------+----------+ + | TCP RX throughput (Mbit/s) | 88.9 | 46.5 | 46.2 | 37.9 | + +----------------------------+-------+--------+---------------+----------+ + | UDP TX throughput (Mbit/s) | 106.4 | 106.2 | 60.7 | 50.0 | + +----------------------------+-------+--------+---------------+----------+ + | UDP RX throughput (Mbit/s) | 99.8 | 92.6 | 94.3 | 53.3 | + +----------------------------+-------+--------+---------------+----------+ + + **PSRAM with 8 lines:** + + +----------------------------+-------+--------+---------------+----------+ + | Rank | Iperf | Default| Memory saving | Minimum | + +============================+=======+========+===============+==========+ + | Available memory (KB) | 49.1 | 151.3 | 215.3 | 243.6 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_STATIC_RX_BUFFER_NUM | 24 | 8 | 6 | 4 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_DYNAMIC_RX_BUFFER_NUM | 85 | 64 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_STATIC_TX_BUFFER_NUM | 32 | 32 | 6 | 4 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_RX_BA_WIN | 32 | 16 | 12 | Disable | + +----------------------------+-------+--------+---------------+----------+ + | TCP_SND_BUF_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | TCP_WND_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_IRAM_OPT | 15 | 15 | 15 | 0 | + +----------------------------+-------+--------+---------------+----------+ + | WIFI_RX_IRAM_OPT | 16 | 16 | 0 | 0 | + +----------------------------+-------+--------+---------------+----------+ + | LWIP_IRAM_OPTIMIZATION | 13 | 0 | 0 | 0 | + +----------------------------+-------+--------+---------------+----------+ + | LWIP_UDP_RECVMBOX_SIZE | 16 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | INSTRUCTION_CACHE | 32 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | INSTRUCTION_CACHE_LINE | 32 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | INSTRUCTION_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+--------+---------------+----------+ + | DATA_CACHE | 64 | 16 | 16 | 16 | + +----------------------------+-------+--------+---------------+----------+ + | DATA_CACHE_LINE | 32 | 32 | 32 | 32 | + +----------------------------+-------+--------+---------------+----------+ + | DATA_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+--------+---------------+----------+ + | TCP TX throughput (Mbit/s) | 93.3 | 58.4 | 37.1 | 35.6 | + +----------------------------+-------+--------+---------------+----------+ + | TCP RX throughput (Mbit/s) | 86.1 | 43.6 | 42.5 | 35.0 | + +----------------------------+-------+--------+---------------+----------+ + | UDP TX throughput (Mbit/s) | 104.7 | 82.2 | 60.4 | 47.9 | + +----------------------------+-------+--------+---------------+----------+ + | UDP RX throughput (Mbit/s) | 104.6 |104.8 | 104.0 | 55.7 | + +----------------------------+-------+--------+---------------+----------+ + Wi-Fi Menuconfig ----------------------- diff --git a/docs/zh_CN/api-guides/wifi.rst b/docs/zh_CN/api-guides/wifi.rst index 60bbd022c2..397b55fd5b 100644 --- a/docs/zh_CN/api-guides/wifi.rst +++ b/docs/zh_CN/api-guides/wifi.rst @@ -1884,7 +1884,7 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 +----------------------------+-------+---------+---------+ | 等级 | Iperf | 默认 | 最小 | +============================+=======+=========+=========+ - | 可用内存(KB) | 59 | 160 | 180 | + | 可用内存 (KB) | 59 | 160 | 180 | +----------------------------+-------+---------+---------+ | WIFI_STATIC_RX_BUFFER_NUM | 20 | 8 | 3 | +----------------------------+-------+---------+---------+ @@ -1894,9 +1894,9 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 +----------------------------+-------+---------+---------+ | WIFI_RX_BA_WIN | 32 | 16 | 6 | +----------------------------+-------+---------+---------+ - | TCP_SND_BUF_DEFAULT(KB) | 40 | 16 | 6 | + | TCP_SND_BUF_DEFAULT (KB) | 40 | 16 | 6 | +----------------------------+-------+---------+---------+ - | TCP_WND_DEFAULT(KB) | 40 | 16 | 6 | + | TCP_WND_DEFAULT (KB) | 40 | 16 | 6 | +----------------------------+-------+---------+---------+ | LWIP_IRAM_OPTIMIZATION | 13 | 13 | 0 | +----------------------------+-------+---------+---------+ @@ -1909,9 +1909,60 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 | UDP 接收数据吞吐量 (Mbit/s)| 52.4 | 44.5 | 44.2 | +----------------------------+-------+---------+---------+ -.. note:: - 以上结果由使用华硕RT-N66U路由器,在屏蔽箱中进行单流测试得出。{IDF_TARGET_NAME} 的 CPU 为双核,频率为 240 MHz,flash 为 QIO 模式,频率为 80 MHz。 +.. only:: esp32s3 + +----------------------------+-------+---------+---------+ + | 等级 | Iperf | 默认 | 最小 | + +============================+=======+=========+=========+ + | 可用内存 (KB) | 133.9 | 183.9 | 273.6 | + +----------------------------+-------+---------+---------+ + | WIFI_STATIC_RX_BUFFER_NUM | 24 | 8 | 3 | + +----------------------------+-------+---------+---------+ + | WIFI_DYNAMIC_RX_BUFFER_NUM | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | WIFI_DYNAMIC_TX_BUFFER_NUM | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | WIFI_RX_BA_WIN | 32 | 16 | 6 | + +----------------------------+-------+---------+---------+ + | TCP_SND_BUF_DEFAULT (KB) | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | TCP_WND_DEFAULT (KB) | 64 | 32 | 6 | + +----------------------------+-------+---------+---------+ + | WIFI_IRAM_OPT | 15 | 15 | 15 | + +----------------------------+-------+---------+---------+ + | WIFI_RX_IRAM_OPT | 16 | 16 | 16 | + +----------------------------+-------+---------+---------+ + | LWIP_IRAM_OPTIMIZATION | 13 | 13 | 0 | + +----------------------------+-------+---------+---------+ + | INSTRUCTION_CACHE | 32 | 32 | 16 | + +----------------------------+-------+---------+---------+ + | INSTRUCTION_CACHE_LINE | 32 | 32 | 32 | + +----------------------------+-------+---------+---------+ + | INSTRUCTION_CACHE_WAYS | 8 | 8 | 4 | + +----------------------------+-------+---------+---------+ + | TCP 发送数据吞吐量 (Mbit/s)| 83.93 | 64.28 | 23.17 | + +----------------------------+-------+---------+---------+ + | TCP 接收数据吞吐量 (Mbit/s)| 73.98 | 60.39 | 18.11 | + +----------------------------+-------+---------+---------+ + | UDP 发送数据吞吐量 (Mbit/s)| 98.69 | 96.28 | 48.78 | + +----------------------------+-------+---------+---------+ + | UDP 接收数据吞吐量 (Mbit/s)| 88.58 | 86.57 | 59.45 | + +----------------------------+-------+---------+---------+ + +.. only:: esp32 or esp32s3 + + .. note:: + 以上结果使用华硕RT-N66U路由器,在屏蔽箱中进行单流测试得出。{IDF_TARGET_NAME} 的 CPU 为双核,频率为 240 MHz,flash 为 QIO 模式,频率为 80 MHz。 + +.. only:: esp32s2 + + .. note:: + 以上结果使用华硕RT-N66U路由器,在屏蔽箱中进行单流测试得出。{IDF_TARGET_NAME} 的 CPU 为单核,频率为 240 MHz,flash 为 QIO 模式,频率为 80 MHz。 + +.. only:: esp32c3 + + .. note:: + 以上结果使用华硕RT-N66U路由器,在屏蔽箱中进行单流测试得出。{IDF_TARGET_NAME} 的 CPU 为单核,频率为 160 MHz,flash 为 QIO 模式,频率为 80 MHz。 .. only:: esp32 @@ -1964,7 +2015,7 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 - **最小等级** {IDF_TARGET_NAME} 的最小配置等级。协议栈只使用运行所需的内存。适用于对性能没有要求,而应用程序需要大量内存的场景。 -.. only:: esp32 or esp32s2 +.. only:: esp32 or esp32s2 or esp32s3 使用 PSRAM ++++++++++++++++++++++++++++ @@ -1976,7 +2027,7 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 +----------------------------+-------+-------+----------+-------+ | 等级 | Iperf | 默认 | 节省内存 | 最小 | - +----------------------------+-------+-------+----------+-------+ + +============================+=======+=======+==========+=======+ | 可用内存 (KB) | 113.8 | 152.4 | 181.2 | 202.6 | +----------------------------+-------+-------+----------+-------+ | WIFI_STATIC_RX_BUFFER_NUM | 16 | 8 | 4 | 2 | @@ -2010,7 +2061,7 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 +----------------------------+-------+------+----------+-------+ | 等级 | Iperf | 默认 | 节省内存 | 最小 | - +----------------------------+-------+------+----------+-------+ + +============================+=======+======+==========+=======+ | 可用内存 (KB) | 70.6 | 96.4 | 118.8 | 148.2 | +----------------------------+-------+------+----------+-------+ | WIFI_STATIC_RX_BUFFER_NUM | 8 | 8 | 6 | 4 | @@ -2048,7 +2099,103 @@ Wi-Fi 使用的堆内存峰值是 Wi-Fi 驱动程序 **理论上消耗的最大 | UDP 接收数据吞吐量 (Mbit/s)| 45.3 | 43.1 | 28.5 | 15.1 | +----------------------------+-------+------+----------+-------+ + .. only:: esp32s3 + **四线PSRAM:** + + +----------------------------+-------+------+----------+-------+ + | 等级 | Iperf | 默认 | 节省内存 | 最小 | + +============================+=======+======+==========+=======+ + | 可用内存 (KB) | 50.3 | 158.7| 198.2 | 228.9 | + +----------------------------+-------+------+----------+-------+ + | WIFI_STATIC_RX_BUFFER_NUM | 24 | 8 | 6 | 4 | + +----------------------------+-------+------+----------+-------+ + | WIFI_DYNAMIC_RX_BUFFER_NUM | 85 | 64 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | WIFI_STATIC_TX_BUFFER_NUM | 32 | 32 | 6 | 4 | + +----------------------------+-------+------+----------+-------+ + | WIFI_RX_BA_WIN | 32 | 16 | 12 | 禁用 | + +----------------------------+-------+------+----------+-------+ + | TCP_SND_BUF_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | TCP_WND_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | WIFI_IRAM_OPT | 15 | 15 | 15 | 0 | + +----------------------------+-------+------+----------+-------+ + | WIFI_RX_IRAM_OPT | 16 | 16 | 0 | 0 | + +----------------------------+-------+------+----------+-------+ + | LWIP_IRAM_OPTIMIZATION | 13 | 0 | 0 | 0 | + +----------------------------+-------+------+----------+-------+ + | LWIP_UDP_RECVMBOX_SIZE | 16 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | INSTRUCTION_CACHE | 32 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | INSTRUCTION_CACHE_LINE | 32 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | INSTRUCTION_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+------+----------+-------+ + | DATA_CACHE | 64 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | DATA_CACHE_LINE | 32 | 32 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | DATA_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+------+----------+-------+ + | TCP 发送数据吞吐量 (Mbit/s)| 93.1 | 62.5 | 41.3 | 42.7 | + +----------------------------+-------+------+----------+-------+ + | TCP 接收数据吞吐量 (Mbit/s)| 88.9 | 46.5 | 46.2 | 37.9 | + +----------------------------+-------+------+----------+-------+ + | UDP 发送数据吞吐量 (Mbit/s)| 106.4 | 106.2| 60.7 | 50.0 | + +----------------------------+-------+------+----------+-------+ + | UDP 接收数据吞吐量 (Mbit/s)| 99.8 | 92.6 | 94.3 | 53.3 | + +----------------------------+-------+------+----------+-------+ + + **八线PSRAM:** + + +----------------------------+-------+------+----------+-------+ + | 等级 | Iperf | 默认 | 节省内存 | 最小 | + +============================+=======+======+==========+=======+ + | 可用内存 (KB) | 49.1 | 151.3| 215.3 | 243.6 | + +----------------------------+-------+------+----------+-------+ + | WIFI_STATIC_RX_BUFFER_NUM | 24 | 8 | 6 | 4 | + +----------------------------+-------+------+----------+-------+ + | WIFI_DYNAMIC_RX_BUFFER_NUM | 85 | 64 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | WIFI_STATIC_TX_BUFFER_NUM | 32 | 32 | 6 | 4 | + +----------------------------+-------+------+----------+-------+ + | WIFI_RX_BA_WIN | 32 | 16 | 12 | 禁用 | + +----------------------------+-------+------+----------+-------+ + | TCP_SND_BUF_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | TCP_WND_DEFAULT (KB) | 85 | 32 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | WIFI_IRAM_OPT | 15 | 15 | 15 | 0 | + +----------------------------+-------+------+----------+-------+ + | WIFI_RX_IRAM_OPT | 16 | 16 | 0 | 0 | + +----------------------------+-------+------+----------+-------+ + | LWIP_IRAM_OPTIMIZATION | 13 | 0 | 0 | 0 | + +----------------------------+-------+------+----------+-------+ + | LWIP_UDP_RECVMBOX_SIZE | 16 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | INSTRUCTION_CACHE | 32 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | INSTRUCTION_CACHE_LINE | 32 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | INSTRUCTION_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+------+----------+-------+ + | DATA_CACHE | 64 | 16 | 16 | 16 | + +----------------------------+-------+------+----------+-------+ + | DATA_CACHE_LINE | 32 | 32 | 32 | 32 | + +----------------------------+-------+------+----------+-------+ + | DATA_CACHE_WAYS | 8 | 8 | 8 | 8 | + +----------------------------+-------+------+----------+-------+ + | TCP 发送数据吞吐量 (Mbit/s)| 93.3 | 58.4 | 37.1 | 35.6 | + +----------------------------+-------+------+----------+-------+ + | TCP 接收数据吞吐量 (Mbit/s)| 86.1 | 43.6 | 42.5 | 35.0 | + +----------------------------+-------+------+----------+-------+ + | UDP 发送数据吞吐量 (Mbit/s)| 104.7 | 82.2 | 60.4 | 47.9 | + +----------------------------+-------+------+----------+-------+ + | UDP 接收数据吞吐量 (Mbit/s)| 104.6 |104.8 | 104.0 | 55.7 | + +----------------------------+-------+------+----------+-------+ Wi-Fi Menuconfig ----------------------- diff --git a/examples/wifi/iperf/sdkconfig.defaults.esp32s3 b/examples/wifi/iperf/sdkconfig.defaults.esp32s3 index ea100e5fa2..874399e3b7 100644 --- a/examples/wifi/iperf/sdkconfig.defaults.esp32s3 +++ b/examples/wifi/iperf/sdkconfig.defaults.esp32s3 @@ -2,8 +2,8 @@ # ESP32S3-specific # CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=16 -CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=32 -CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=32 +CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=64 +CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=64 CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y CONFIG_ESP32_WIFI_TX_BA_WIN=32 CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y From 0cee65390ee82669aaf04316e7ebaae16102c813 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 12 Aug 2021 16:10:26 +0800 Subject: [PATCH 2/2] esp_phy: fix esp32s3 phy issue 1. fix esp32s3 channel 7,8,9 issue 2. sleep: force off tsens xpd_sar to fix the leakage current of esp32s3 RTC_PERIPH domain --- components/esp_phy/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_phy/lib b/components/esp_phy/lib index 0ae4bb88c0..74658eb4fe 160000 --- a/components/esp_phy/lib +++ b/components/esp_phy/lib @@ -1 +1 @@ -Subproject commit 0ae4bb88c00faa641be5d2a613184735f484edb8 +Subproject commit 74658eb4fe30e42599a459ef89294010e26d57b6