登录 注册
您的位置:首页> 建站知识 > 导示设计公司
三网合一网站建设公司:VSZ和RSS
标签:导示设计公司
发表日期:2018-11-05 06:52:20     文章编辑:admin     浏览次数:186

 三网合一网站建设公司:VSZ和RSS

 

其中“-b”I”指定的都已经是Linux可接受的最小值,以获取尽可能大的mnodes

    又比如,采用tmpfs的缓存盘mnodes不足的时候,没法用reiserfs来挂载内存,但是

可以单独指定让tmpfs本身也放开这个mnodes的限制。

    Linux源码文档中,对tmpfsmnodes有如下描述。

nr_inodes: The maximum number of modes for this instance. The default

         is half of the number of your physical RAM pages, or (on a

        machine with highmem) the number of lowmem RAM pages,

         whichever is the lower. .

These parameters accept a suffix k, m or g for kilo, mega and giga and

can be changed on remount. The size parameter also accepts a suffix%to limit

this tmpfs instance t.that percentage of your physical RAM:

    the default, when neither size nor nr blocks is specified, is size=50%

    if nr inodes=0, mnodes will not be limited.

    所以,我们只要在mount的时候指定nr mnodes参数为0,就可以不受mnodes限制了,

$ mount -t tmpfs -o s;ize=2000M,mode=777,n:c_inodes-0 tmpfs /tmpfs

$ df -ilgrep tmpfs

tmpfs                   :0~0' .  '.0 .  -  /tmpfs

1.2.4  ps

    ps命令也有多种用法。最常见的是ps auxfww,其输出如下。

    这样,能以树的形式显示进程间的父子关系,又能比pstree命令多出CPUMEM

其他性能数据。

    在这里,需要注意的是VSZRSS两列。

      VSZ(Virtual Memory Size):指进程可以占用的内存地址空间的大小。

    @RSS(Resident Set Size):指进程实际占用的内存地址空间的大小。

    但是要注意:RSS中包括了共享库占用的内存大小,比如“libc”等。我们可以通过

pmap命令看到进程调用的各种库占用的内存如下。

 

留言预约
关于我们
易神州网络-专业的软件开发和品牌营销公司,提供互联网基础服务与数字营销产品解决方案专家,14年丰富的软件开发、品牌策划营销。擅长于系统化解决企业品牌在互联网上的统一性传播,企业品牌在互联网上的应用。我们协助您通过在线品牌的塑造,建立长久的企业品牌价值。
联系我们
400-611-0508
周一至周六9:00-18:00
全方位的营销咨询   精准的解决方案
地址:北京市丰台科技园汉威国际四区8号楼7层
关注公众号