- 博客(8)
- 收藏
- 关注
转载 Linux中查看系统资源占用情况的命令
用 'top -i' 看看有多少进程处于 Running 状态,可能系统存在内存或 I/O 瓶颈,用 free 看看系统内存使用情况,swap 是否被占用很多,用 iostat 看看 I/O 负载情况.. 还有一种办法是 ps -ef | sort -k7 ,将进程按运行时间排序,看哪个进程消耗的cpu时间最多。 top: 主要参数 d:指定更新的间隔,以秒计算。 q:没有任何延迟的更
2013-07-23 22:44:33 575
原创 敢想敢做,执着追求才能超越极致!------ 我的mslist之mslist.h
/* mslist.h -- Function include file. Copyright (C) 2013 meng shi. mslist is a control node list, which is based on the offset to achieve, and it is not related to a node type.
2013-07-23 15:22:18 460
原创 敢想敢做,执着追求才能超越极致!------ 我的mslist之mslist.c
/* mslist.c -- Function implementation file. Copyright (C) 2013 meng shi. mslist is a control node list, which is based on the offset to achieve, and it is not related to a node type
2013-07-23 15:20:03 588
原创 敢想敢做,执着追求才能超越极致!------ 我的mslist之mslist_dome.c
/* mslist_dome.h -- How to use? dome file. Copyright (C) 2013 meng shi. mslist is a control node list, which is based on the offset to achieve, and it is not related to a node type.
2013-07-23 15:15:24 521
原创 几种反转字符串函数,你更喜欢那一种?
/* 2013 7.21 23:55 */ #include #include #include void reverse (char *s); void re_reverse (int i, char *s, int len); void q_reverse (char *s); void q_re_reverse (char *s, char *t); int main (v
2013-07-22 00:29:23 447
原创 pcap简单抓包程序框架
/* meng shi pcap use mengshi19860812@163.com */ #include #include #include #include "pcap.h" void pkt_callback (u_char *arg, const struct pcap_pkthdr *pkt_hd, const u_char *pkt_content);
2013-07-18 16:32:55 832
原创 我最爱的链表实现方法
/* meng shi list. mengshi19860812@163.com */ #include #include #include #include #define OFFSET sizeof (struct node) - sizeof (void *) #define FIND_NODE(node) *((char *)node + OFFSET) #def
2013-07-18 16:08:39 402
原创 大并发 ip, prot 连接 -- 客户端模型
/* gbf_connect.c -- this program is client that parallel a large numbers of connnections, using non-block mode, use the epoll function to achieve. Copyright (C) 2013 meng shi. This
2013-07-13 23:42:59 461
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人