zoukankan      html  css  js  c++  java
  • 003_内存的深入理解

    一、内存测试

    memtester内存测试

    memtester主要是捕获内存错误和一直处于很高或者很低的坏位,其测试的主要项目有:随机值、异或比较、减法、乘法、除法、与或运算等等。通过给定测试内存的大小和次数,可以对系统现有的内存进行上面项目的测试。

    测试步骤:

    首先安装memtester

    emerge -av  memtester

     

    memtester参数解释:

    memtester  ram-size  【 runs 】

    例如:memtester  1G 10 

    以上命令解释为测试内存1G 循环测试10次,runs不加则默认无限次

     

     

    测试结果全部为OK即为正常

    以下为错误代码解释:

    x01    error allocating or locking memory, or invocation error

    x02    error during stuck address test

    x04    error during one of the other tests

    注意:

    1、测试内存一定要比实际内存小,否则可能造成因内存耗尽而宕机。

    2、对于多cpu的大内存服务器而言,可开启多个进程放进后台执行

    3、测试过程中尽量关闭其他应用程序,以免宕机

    建议:

    如需要详细靠谱进行内存测试,可以使用memtest86或memteste86+配置

     

     

     

     

  • 相关阅读:
    跨域处理
    intellij idea远程调试
    sring boot特性
    spring mvc与struts2的区别
    jenkins集成sonar
    hibernate笔记
    python脚本
    python 字符框
    python操作
    python环境配置
  • 原文地址:https://www.cnblogs.com/itcomputer/p/6436423.html
Copyright © 2011-2022 走看看