良玉的博客 点点滴滴,积水成河_良玉的博客_页游、手游linux运维工程师之路

RAMspeed/ramsmp对linux的内存进行测试

RAMspeed SMP 1.4.1,pts/ramspeed-1.4.1

其实就是使用RAMspeed

下载地址不多,好多都失效了

安装

wget http://sources.buildroot.net/ramsmp-3.5.0.tar.gz

tar xvf ramsmp-3.5.0.tar.gz

cd ramsmp-3.5.0

export CFLAGS="-O3 -march=native $CFLAGS"

cc $CFLAGS -o ramsmp fltmark.c fltmem.c intmark.c intmem.c ramsmp.c

./ramsmp -b 3

如果有报错,不要慌:

# cc $CFLAGS -o ramsmp fltmark.c fltmem.c intmark.c intmem.c ramsmp.c

fltmark.c:1: error: CPU you selected does not support x86-64 instruction set

fltmem.c:1: error: CPU you selected does not support x86-64 instruction set

intmark.c:1: error: CPU you selected does not support x86-64 instruction set

intmem.c:1: error: CPU you selected does not support x86-64 instruction set

ramsmp.c:1: error: CPU you selected does not support x86-64 instruction set

# export CFLAGS="-O3 -march=x86-64 "                                 

# cc $CFLAGS -o ramsmp fltmark.c fltmem.c intmark.c intmem.c ramsmp.c

#

这样就可以了



    size: small; font-family: Arial, helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);" class=" list-paddingleft-2">
  •  RAMspeed is an open source tool for benchmarking memory and cache on a system. Version 3.3.0 was used for testing. The command that was used to run the tests is as follows:

    • ./ramsmp -b 6 -g 4 -p 2

     -b 6 indicates to run benchmark number 6 (FLOATmem)
     -g 4 indicates number of GBytes to use
     -p 2 indicates number of processes to start
  • DDR-SDRAM Info

    • PC-1600: running at 100 MHz using DDR-200 chips should get 1.600 GByte/s bandwidth per channel

    • PC-2100: running at 133 MHz using DDR-266 chips should get 2.133 GByte/s bandwidth per channel

    • PC-2700: running at 166 MHz using DDR-333 chips should get 2.667 GByte/s bandwidth per channel

    • PC-3200: running at 200 MHz using DDR-400 chips should get 3.200 GByte/s bandwidth per channel

    Test1: Nemo Prototype White-Box Solution

  • MSI Neo2-F Motherboard

  • AMD Opteron 175 2.2GHz

  • 2x 1GB ECC Registered PC3200 double-sided RAM

  • nforce3 Ultra chipset

Dual Channel Configuration:
Instruction SetTestBandwidthMMXCopy:2069.67 Mb/sMMXScale:2452.00 Mb/sMMXAdd:3164.09 Mb/sMMXTriad:3143.93 Mb/sMMXAverage:2707.42 Mb/s
Single Channel Configuration:
Instruction SetTestBandwidthMMXCopy:1131.15 Mb/sMMXScale:1068.18 Mb/sMMXAdd:1338.79 Mb/sMMXTriad:1338.56 Mb/sMMXAverage:1219.17 Mb/s

    Test2: Medusa Slave Node

  • intel Motherboard

  • Intel Pentium 3 1.0GHz

  • 2x 256MB ECC Registered PC133 double-sided RAM

  • intel chipset

Single Channel Configuration:
Instruction SetTestBandwidth
FL-PointCopy:240.12 Mb/s
FL-PointScale:251.15 Mb/s
FL-PointAdd:286.53 Mb/s
FL-PointTriad:285.46 Mb/s
FL-PointAverage:265.81 Mb/s

    Test3: Nemo Prototype Provided By ASA

  • Supermicro H8DAR-T Motherboard

  • 1x AMD Opteron 265 1.8GHz

  • 4x 1GB ECC Registered PC3200 double-sided RAM

Dual Channel Configuration: 4x 1GB
Instruction SetTestBandwidthFL-PointCopy:2521.87 Mb/sFL-PointScale:2526.58 Mb/sFL-PointAdd:2972.41 Mb/sFL-PointTriad:2988.70 Mb/sFL-PointAverage:2752.39 Mb/s
Dual Channel Configuration: 2x 1GB
Instruction SetTestBandwidthFL-PointCopy:2599.61 Mb/sFL-PointScale:2392.03 Mb/sFL-PointAdd:3016.89 Mb/sFL-PointTriad:2990.41 Mb/sFL-PointAverage:2749.74 Mb/s
Single Channel Configuration: 2x 1GB
Instruction SetTestBandwidthFL-PointCopy:1683.51 Mb/sFL-PointScale:1677.77 Mb/sFL-PointAdd:1913.39 Mb/sFL-PointTriad:1913.68 Mb/sFL-PointAverage:1797.09 Mb/s



留言列表
发表评论
来宾的头像