当前位置:网站首页>I.MX6UL核心模块使用连载-eMMC读写测试 (四)
I.MX6UL核心模块使用连载-eMMC读写测试 (四)
2022-07-26 01:58:00 【szembed】
以下内容已经在Iot-6ULX/EVB-6ULX平台上验证通过,Iot-6ULX/EVB-6ULX介绍如下:

3. eMMC读写测试
3.1 eMMC写速度测试
eMMC根文件系统下包含了多个目录,我们需要选择其中的某个目录进行测试。可以执行以下指令查看根目录下包含的目录。
[email protected] ~# cd / //进入根目录
[email protected] /# pwd //查看当前所在目录
[email protected] /# ls //显示当前目录下的文件和目录

根目录下的内容
从上图中可以看到,根目录下包含了多个子目录。其中,root目录就是系统登陆时的默认所在目录(主目录)。在测试过程中,我们进入到root目录下进行测试。
[email protected] /# cd /root //进到root目录
[email protected] ~# pwd //查看当前所在目录

进入到root目录下
使用dd指令往root目录下写入数据,并生成largefile文件,文件大小为80 MiB,测试写速度。
[email protected] ~# dd if=/dev/zero of=./largefile bs=8k count=10240 conv=fdatasync

eMMC写速度测试
从终端显示的信息中,写入的文件大小为80MiB,速度为12.2MB/s。
3.2 eMMC读速度测试
说明:因为Linux的内核机制,一般情况下不需要特意去释放已经使用的cache。这些cache内容可以增加文件的读写速度。
测试过程是为了能够测试出从eMMC中读取数据的准确速度,所以需要先清除缓存。
执行以下指令,清除缓存:
[email protected] ~# sh -c "sync && echo 3 > /proc/sys/vm/drop_caches" //清除页面缓存,目录项和inode

清除缓存
再次使用dd指令读取前面用dd指令写入的largefile文件,测试读速度:
[email protected] ~# dd if=./largefile of=/dev/null bs=8k

eMMC读速度测试
从终端显示的信息中,读取的文件大小为80MiB,速度为101MB/s。
测试完成后,用指令删除掉测试文件:
[email protected] ~# ls -alh largefile //查看largefile文件
[email protected] ~# rm largefile //移除largefile文件

删除测试文件
边栏推荐
- HTC手机官解、S-ON/S-OFF与超级CID的关系
- 推荐系统-协同过滤在Spark中的实现
- D. Permutation restoration (greedy + double pointer)
- Navica tool imports remote MySQL into local MySQL database
- Web3.0 blog DAPP development practice [2022]
- Relationship between HTC mobile official solution, s-on/s-off and super CID
- [C language brush leetcode] 735. Planetary collision (m)
- pt-onnx-ncnn转换的问题记录(接yolov5训练)
- [in simple terms, play with FPGA learning 11 --- testbench writing skills 2]
- 【Verilog数字系统设计(夏宇闻)4-----Verilog语法的基本概念2】
猜你喜欢

Worthington产气荚膜梭菌神经氨酸酶的特征及测定

Sqlyog data import and export graphic tutorial

i.MX6ULL SNVS电源域GPIO状态保持验证

I.MX6UL核心模块使用连载-CAN、蜂鸣器测试 (十一)

Cross Site Request Forgery (CSRF): impact, examples, and Prevention

保护系统日志服务器和设备

flutter 下 grpc list没有Setter 方法 ,如何使用相关属性
![Niuke - bm39 serialized binary tree [hard]](/img/c4/f14fe8488bbf28689fa3f02cdf4dae.png)
Niuke - bm39 serialized binary tree [hard]

excel中怎么显示数字/英文时间

IDEA如何快速删除最近打开的项目
随机推荐
leetcode/只出现一次的数字
Redis6.x配置参数详解
Redis cluster construction (based on 6.x)
D. Permutation restoration (greedy + double pointer)
Dataframe modifies the value of a row or column position
Worthington核酸酶、微球菌相关研究及测定方案
Protect syslog servers and devices
There is no setter method in grpc list under flutter. How to use related attributes
[in simple terms, play with FPGA learning 11 --- testbench writing skills 1]
How to install opengauss manually (non om mode)
1205 Lock wait timeout exceeded; Try restarting transaction processing
Characteristics and determination of neuraminidase from Clostridium perfringens in Worthington
Overview of database stress testing methods
【Verilog数字系统设计(夏宇闻)3-----Verilog语法的基本概念1】
proto转换Dart | 项目使用Protobuf | flutter 使用grpc
Cross Site Request Forgery (CSRF): impact, examples, and Prevention
npm ERR! code ETIMEDOUTnpm ERR! syscall connectnpm ERR! errno ETIMEDOUTnpm ERR! network request t
Pt onnx ncnn conversion problem record (followed by yolov5 training)
劳驾问一下各位老师 oracle 到pg cdc oracle 那边字段大写 pg 这边小写 同
【LeetCode】32、 最长有效括号