Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
flashDB
外部flash
文件系统
FLASHDB 使用文件模式 保存参数至 片外FLASH W25Q128时间过长
发布于 2022-09-14 16:04:01 浏览:1455
订阅该版
硬件:STM32F429IGT6核心板 操作系统:RTT V4.1.0 FLASHDB 使用文件模式 保存参数至 片外FLASH W25Q128时间过长 fal bench 和 SFUD测试结果如下 ```c msh /flash/logs>fal bench 4096 DANGER: It will erase full chip or partition! Please run 'fal bench 4096 yes'. msh /flash/logs>fal bench 4096 yes Erasing 1048576 bytes data, waiting... Erase benchmark success, total time: 3.548S. Writing 1048576 bytes data, waiting... Write benchmark success, total time: 4.097S. Reading 1048576 bytes data, waiting... Read benchmark success, total time: 1.546S. Erase benchmark success, total time: 33.946S. Writing the sf_cmd 16777216 bytes data, waiting... Write benchmark success, total time: 65.537S. Reading the sf_cmd 16777216 bytes data, waiting... Read benchmark success, total time: 26.302S. ``` 使用KVDB bench ```c msh />kvdb ben msh />kvdb bench msh />kvdb bench [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:1155) Trigger a GC check after created KV. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:1051) The remain empty sector is 1, GC threshold is 1. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (boot_count) from 0x000006D1 to 0x00001014. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (save flag) from 0x000006F9 to 0x0000103C. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH501) from 0x00000720 to 0x00001063. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH502) from 0x00000744 to 0x00001087. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH503) from 0x00000768 to 0x000010AB. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH504) from 0x0000078C to 0x000010CF. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH505) from 0x000007B0 to 0x000010F3. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH506) from 0x000007D4 to 0x00001117. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH507) from 0x000007F8 to 0x0000113B. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH508) from 0x0000081C to 0x0000115F. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH509) from 0x00000840 to 0x00001183. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH510) from 0x00000864 to 0x000011A7. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH511) from 0x00000888 to 0x000011CB. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH521) from 0x000008AC to 0x000011EF. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH522) from 0x000008D0 to 0x00001213. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH523) from 0x000008F4 to 0x00001237. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH524) from 0x00000918 to 0x0000125B. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH525) from 0x0000093C to 0x0000127F. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH526) from 0x00000960 to 0x000012A3. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH527) from 0x00000984 to 0x000012C7. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH699) from 0x000009A8 to 0x000012EB. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (__ver_num__) from 0x000009F0 to 0x0000130F. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (MBH700) from 0x00000A1B to 0x0000133A. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:0) from 0x00000A41 to 0x00001360. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:1) from 0x00000A69 to 0x00001388. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:2) from 0x00000A91 to 0x000013B0. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:3) from 0x00000AB9 to 0x000013D8. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:4) from 0x00000AE1 to 0x00001400. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:5) from 0x00000B09 to 0x00001428. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:6) from 0x00000B31 to 0x00001450. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:7) from 0x00000B59 to 0x00001478. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:8) from 0x00000B81 to 0x000014A0. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:9) from 0x00000BA9 to 0x000014C8. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:10) from 0x00000BD1 to 0x000014F0. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:11) from 0x00000BFB to 0x0000151A. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:12) from 0x00000C25 to 0x00001544. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:13) from 0x00000C4F to 0x0000156E. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:14) from 0x00000C79 to 0x00001598. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:15) from 0x00000CA3 to 0x000015C2. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:16) from 0x00000CCD to 0x000015EC. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:17) from 0x00000CF7 to 0x00001616. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:18) from 0x00000D21 to 0x00001640. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:19) from 0x00000D4B to 0x0000166A. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:20) from 0x00000D75 to 0x00001694. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:21) from 0x00000D9F to 0x000016BE. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:22) from 0x00000DC9 to 0x000016E8. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:23) from 0x00000DF3 to 0x00001712. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:24) from 0x00000E1D to 0x0000173C. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:25) from 0x00000E47 to 0x00001766. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:26) from 0x00000E71 to 0x00001790. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:27) from 0x00000E9B to 0x000017BA. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:28) from 0x00000EC5 to 0x000017E4. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:29) from 0x00000EEF to 0x0000180E. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:30) from 0x00000F19 to 0x00001838. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:31) from 0x00000F43 to 0x00001862. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:32) from 0x00000F6D to 0x0000188C. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:961) Moved the KV (key:33) from 0x00000F97 to 0x000018B6. [FlashDB][kv][env] (packages/FlashDB-latest/src/fdb_kvdb.c:1031) Collect a sector @0x00000000 48 KVs has been added , total 307066 tick, avg 6397 tick/per 48 KVs has been queried, total 3951 tick, avg 82 tick/per 48 KVs has been deleted, total 30367 tick, avg 632 tick/per ``` `#define RT_TICK_PER_SECOND 1000` 这样就是 平均 添加一个参数 6秒? 查询一个参数 0.082s 删除一个参数 0.632s 这效率太低了吧。正常吗? 准备换成在片内flash存储了
查看更多
红枫
认证专家
2022-09-15
这家伙很懒,什么也没写!
可以了解下qparam组件,支持快速存取
6
个回答
默认排序
按发布时间排序
CharlesX
2022-09-15
Make science fiction science
benchmark只是跑个测试程序测一下极限场景下的flash读写速度罢了,正常应用场景下哪会这么用的。
用户名由3_15位
2022-09-26
这家伙很懒,什么也没写!
片外FLASH就是慢。片外用来做文件系统,对读写时间要求不高的就好了。 片内没法用文件系统,直接存储快多了
swet123
2022-10-28
ztlchina@foxmail.com
外部SPI flash 开了DMA 读写速度上有多大改善?
前程晨
2023-06-20
这家伙很懒,什么也没写!
你好 up 小白想问下 测试性能的是在哪里呀 咋找不到 或者需要添加什么东西呀😂
数码小叶
2023-06-20
这家伙很懒,什么也没写!
单个参数,保存在哪都不咋快,最适合的是多参数,周期一起
撰写答案
登录
注册新账号
关注者
0
被浏览
1.5k
关于作者
用户名由3_15位
这家伙很懒,什么也没写!
提问
62
回答
229
被采纳
32
关注TA
发私信
相关问题
1
程序分散加载到外部QSPI FLASH 启动问题
2
stm32f429如何下载程序到外部flash
3
安卓手机不能识别挂载w25q flash
4
rtthread stlink加载外部算法问题
5
flashdb kv value的最大字节
6
关于F1使用通用BOOT+片外FLASH升级SFUD初始化失败的问题
7
文件系统挂载到指定内存区域
8
ART-Pi的APP运行在外部Flash,那还能对内部flash进行读写操作吗?
9
外部flash是nm25q128挂载不上有大神指点嘛
10
挂载外部flash出现这个问题有大神解决吗
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
2
RT-Thread 发布 EtherKit开源以太网硬件!
3
rt-thread使用cherryusb实现虚拟串口
4
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
5
《原子操作:程序世界里的“最小魔法单位”解析》
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
13
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
本月文章贡献
程序员阿伟
8
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
4
次点赞
ThinkCode
1
篇文章
1
次点赞
Betrayer
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部