Posted by admin on May 13th, 2013
1.配合使用systemtap 监控系统对于文件的读写:
[root@db-42 systemtap]# uname -a
Linux db-42 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GN[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »
Posted by admin on April 23rd, 2013
systemtap发行版本提供了socktop,用于监控socket套接字之间的通信,具体如下:
[root@db-42 ~]# socktop -h
USAGE: socktop [-d] [-i interval] [-N num] [-P protocol]... [-f family].[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »
Posted by admin on April 2nd, 2013
Testing three PCIE cards’s performance for all of scenes using fio
Read more
Tags: test
Posted in Unix/Linux | No Comments »
Posted by admin on March 19th, 2013
基于上次的nicstat linux还提供了nethogs,可以监控指定pid的具体流量,在这里可以下到源码.
获取过程:
open("/proc/$pid/fd")
open("/proc/net/tcp")
open("/proc[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »
Posted by admin on March 13th, 2013
Nmap (“Network Mapper”) is an open source tool for network exploration and security auditing. It was designed to rapidly scan large networks, although[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »
Posted by admin on March 8th, 2013
对于业务的激活码需求做了一次关于mysql,mongodb的比对.mysql分为normal,key partition 数量分别是1亿和10亿数据,mysql采用直接访问PK键,partition key为PK,mysql table size 为90G,mongodb table size为15[......]
Read more
Tags: test
Posted in Unix/Linux | No Comments »
Posted by admin on March 5th, 2013
iotop是一个类似top的检测process IO 的Python 项目。可以在这里下载到源码,可以在这里找到具体的说明。下面做一个演示:
首先下载源码,要求python version>=2.6
wget http://guichaz.free.fr/iotop/files/io[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »
Posted by admin on February 28th, 2013
pidstat是一款很不错的针对linux pid状态监控的程序
The pidstat command is used for monitoring individual tasks currently being managed by the Linux kernel.
It writ[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »
Posted by admin on February 27th, 2013
本来想写一篇关于nicstat的文章,霸爷已经写的非常好了参考这里nicstat 网络流量统计利器
这里说明一下使用nicstat 可以完美替代iptraf ,nload 等工具
同样可以替代watch –命令行模式:
eg:
Every 1.0s: /sbin/ifconfi[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »
Posted by admin on February 27th, 2013
Perf is a profiler tool for Linux 2.6+ based systems that abstracts away CPU hardware differences in Linux performance measurementsand presents a simp[......]
Read more
Tags: linux tools
Posted in Unix/Linux | No Comments »