在linux / arm下对RAM(无ECC)进行基准测试的最佳方法是什么?
我想测试定制板上无ECC内存芯片的完整性和全局性能
是否有一些工具可以在linux下运行,所以我可以同时监控系统和全局温度? 是否有一些无ECC特定测试? 编辑1: 我已经知道如何监控温度(我使用特殊的平台功能/sys/devices/platform/cen/temp1_input). 目前 : > wazoox:它有效,但我要编写自己的测试代码 > ramspeed:手臂不起作用 我发现了这个分布:http://www.stresslinux.org/sl/ 我将继续检查直接在linux下运行的工具而不会有太大的依赖关系,之后我可能会尝试像stresslinux,memtest,fedora这样的解决方案. 谢谢你的回答,我会继续调查 解决方法
这是我有时测试ram的方式:首先挂载两个tmpfs(默认情况下,tmpfs是ram的一半):
# mount -t tmpfs /mnt/test1 /mnt/test1 # mount -t tmpfs /mnt/test2 /mnt/test2 检查空闲内存和可用空间: # free total used free shared buffers cached Mem: 252076 234760 17316 0 75856 62328 -/+ buffers/cache: 96576 155500 Swap: 1048820 332 1048488 # df -h -t tmpfs Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur tmpfs 124M 0 124M 0% /lib/init/rw udev 10M 104K 9,9M 2% /dev tmpfs 124M 0 124M 0% /dev/shm /mnt/test1 124M 0 124M 0% /mnt/test1 /mnt/test2 124M 0 124M 0% /mnt/test2 现在用dd填充tmpfs: # dd if=/dev/zero of=/mnt/test1/test bs=1M dd: écriture de `/mnt/test1/test': Aucun espace disponible sur le périphérique 123+0 enregistrements lus 122+0 enregistrements écrits 128802816 octets (129 MB) copiés,1,81943 seconde,70,8 MB/s # dd if=/dev/zero of=/mnt/test2/test bs=1M dd: écriture de `/mnt/test2/test': Aucun espace disponible sur le périphérique 123+0 enregistrements lus 122+0 enregistrements écrits 128802816 octets (129 MB) copiés,5,78563 seconde,22,3 MB/s 你可以检查你的记忆是否真的很满: # free total used free shared buffers cached Mem: 252076 248824 3252 0 1156 226380 -/+ buffers/cache: 21288 230788 Swap: 1048820 50020 998800 现在您可以运行各种测试,例如检查两个临时文件是否相同,直接或运行md5sum,sha1sum等: # time cmp /mnt/test1/test /mnt/test2/test real 0m4.328s user 0m0.041s sys 0m1.117s 关于温度监控,我只知道lm-sensors.我不知道它是否管理你的特定硬件,但你可能还是试试看. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |