实验目的
在MR956下进行,cpu,内存等的测试。
提前
将vmlinux.64、hw-memory 和stress 拷入CF卡(确保CF的格式为FAT16)
首先,利用namedalloc分配一块空间给linux内核程序。
命令格式为: namedalloc 块名 大小(十进制)
这里为: namedalloc linux 20000000
运行后会返回分配的首地址。假设为26000000
然后利用fatload 命令装入linux映像
命令格式为: fatload 设备名 首地址 文件名
这里为: fatload ide 0 27000000 vmlinux.64
这里使用27000000的原因是留1m的空间(处于某种用处,暂不知)
然后使用bootoctlinux命令 启动linux
命令格式为: bootoctlinux 地址 核心数
这里使用 bootoctlinux 27000000 coremask=0xffff(16个核)
等待一段时间后
进入linux,使用linux操作查看系统信息。
cat /proc/cpuinfo 查看cpu信息 ,核心数为15既正确。
cat /proc/meminfo 查看内存大小。
使用ifconfig 命令配置ip地址,尝试访问,ping通OK。 注意使用eth口,进行网络是否通畅的测试。
测试cpu和内存
mount /dev/cfa1/ /mnt
依据内存的大小,有以下选项:
8G
# /mnt/stress --cpu 16 --vm 4 --vm-bytes 120M --timeout 30s
4G
# /mnt/stress --cpu 16 --vm 4 --vm-bytes 55M --timeout 30s
2G
# /mnt/stress --cpu 16 --vm 4 --vm-bytes 24M --timeout 30s
1G
# /mnt/stress --cpu 16 --vm 4 --vm-bytes 12M --timeout 30s
c) Wait 30 seconds, the console should not show any error message,
and the console should return to prompt '~ #' as below
+-----------------------------------------------------------------+
|stress: info: [357] dispatching hogs: 16 cpu, 0 io, 4 vm, 0 hdd |
|stress: info: [357] successful run completed in 30s |
|~ # |
+-----------------------------------------------------------------+
##############测试完毕######################################3