随笔分类 - linux性能
摘要:一、ping 检测网络的连通性 [root@master ~]# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=45 time=29.0 ms 64 by
阅读全文
摘要:一、iostat - 磁盘建议 1. 尽可能用内存的读写代替直接磁盘I/O,使频繁访问的文件或数据放入内存中进行操作处理,因为内存读写操作比直接磁盘读写的效率要高千倍。 2. 将经常进行读写的文件与长期不变的文件独立出来,分别放置到不同的磁盘设备上。 3. 对于写操作频繁的数据,可以考虑使用裸设备代
阅读全文
摘要:一、free available<20%,表示内存紧缺 [root@master ~]# free -m total used free shared buff/cache available Mem: 1819 1010 135 10 673 646 Swap: 二、vmstat swap长期不为
阅读全文
摘要:一、vmstat [root@master ~]# vmstat 3 5 procs memory swap-- io -system-- cpu r b swpd free buff cache si so bi bo in cs us sy id wa st 9 0 0 96112 0 7288
阅读全文