摘要: 对称加密和分组加密中的四种模式(ECB、CBC、CFB、OFB) 一. AES对称加密: AES加密 分组 二. 分组密码的填充 分组密码的填充 e.g.: ... 阅读全文
posted @ 2013-05-30 08:00 浪里飞 阅读(3361) 评论(0) 推荐(0) 编辑
摘要: 定位高负载的几个命令 Uptime Dmesg Vmstat vmstat 1 ps awwlx --sort=vsz Iostat iostat -x 5 Iotop Top Munin 原文: http://www.tummy.com/articles/isolating-heavy-load/ 阅读全文
posted @ 2013-05-30 07:53 浪里飞 阅读(294) 评论(0) 推荐(0) 编辑
摘要: %wa指CPU等待磁盘写入完成的时间。首先看下%wa的解释:Percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request. 用`lsof | less`查看文件的读写情况 `iostat -cdDx 10` 。其中有一列“%... 阅读全文
posted @ 2013-05-30 07:42 浪里飞 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 1、首先,用top命令查看 查看12.6% wa IO等待所占用的CPU时间的百分比,高过30%时IO压力高 2、其次,用iostat -x 1 10 如果 iostat 没有,要 yum install sysstat 查看%util 100.10 %idle 66.29 如果 %util 接近 100%,说明产生的I/O请求太多,I/O系统已经满负荷... 阅读全文
posted @ 2013-05-30 07:30 浪里飞 阅读(919) 评论(0) 推荐(0) 编辑