qileilove

          blog已經轉移至github,大家請訪問 http://qaseven.github.io/

          內存測試工具memtester

           Memtester是用戶態工具,用于測試內存子系統的故障。非常方便,支持32位 或64位Unix-like系統。對于硬件開發開發者來說,memtester可以定位到物理地址。

            1. 安裝

            下載地址http://pyropus.ca/software/memtester/

            獲取memtester-4.2.2.tar.gz源碼包。

          #tar –zxvf memtester-4.2.2.tar.gz
          #make
          #make install

            2.測試

            ./memtester [-p physaddrbase] <mem>[B|K|M|G] [loops]

            其中:

            Physaddrbase: 需要測試的物理地址;

            <mem>[B|K|M|G]:測試內存的大小;

            [loops]:測試次數

            案例:

          [root@RedHat memtester-4.2.2]# ./memtester -p 0x0a0000 4k 1
          memtester version 4.2.2 (32-bit)
          Copyright (C) 2010 Charles Cazabon.
          Licensed under the GNU General Public License version 2 (only).
          pagesize is 4096
          pagesizemask is 0xfffff000
          want 0MB (4096 bytes)
          Loop 1/1:
          Stuck Address       : testing   0FAILURE: possible bad address line at physical address 0x000a0000.
          Skipping to next test...
          Random Value        : ok
          Compare XOR         : ok
          Compare SUB         : ok
          Compare MUL         : ok
          Compare DIV         : ok
          Compare OR          : ok
          Compare AND         : ok
          Sequential Increment: ok
          Solid Bits          : ok
          Block Sequential    : ok
          Checkerboard        : ok
          Bit Spread          : ok
          Bit Flip            : ok
          Walking Ones        : ok
          Walking Zeroes      : ok
          8-bit Writes        : ok
          16-bit Writes       : ok
          Done.
          [root@RedHat memtester-4.2.2]#

          posted on 2013-08-06 10:34 順其自然EVO 閱讀(466) 評論(0)  編輯  收藏 所屬分類: 測試學習專欄

          <2013年8月>
          28293031123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 义马市| 嘉定区| 田林县| 洪泽县| 枣强县| 江川县| 平乐县| 平阳县| 金沙县| 安国市| 泰州市| 建瓯市| 渭南市| 峨边| 二连浩特市| 云浮市| 开江县| 东城区| 栾城县| 大城县| 临夏县| 尼玛县| 昆明市| 夏邑县| 明光市| 维西| 山阳县| 许昌市| 岳西县| 军事| 博爱县| 津南区| 宣城市| 苍溪县| 收藏| 象山县| 贺州市| 麟游县| 油尖旺区| 平南县| 双柏县|