
Linux
文章平均质量分 75
ixidof
这个作者很懒,什么都没留下…
展开
-
linux异步IO编程实例分析
linux异步IO编程实例分析转载 2016-04-21 18:16:18 · 3374 阅读 · 0 评论 -
使用 nice、cpulimit 和 cgroups 限制 cpu 占用率
文章出处:http://www.linux.cn/article-4742-1.htmlLinux内核是一名了不起的马戏表演者,它在进程和系统资源间小心地玩着杂耍,并保持系统的正常运转。 同时,内核也很公正:它将资源公平地分配给各个进程。但是,如果你需要给一个重要进程提高优先级时,该怎么做呢? 或者是,如何降低一个进程的优先级? 又或者,如何限制一组进程所使用的转载 2015-01-26 18:45:53 · 2341 阅读 · 0 评论 -
Queueing in the Linux Network Stack
文章出处:http://www.coverfire.com/articles/queueing-in-the-linux-network-stack/转载 2014-08-30 19:42:22 · 2880 阅读 · 0 评论 -
SO_DONTROUTE和SO_BINDTODEVICE的深层次分析
文章出处:http://blog.youkuaiyun.com/dog250/article/details/5814023转载 2014-08-27 18:42:37 · 3427 阅读 · 0 评论 -
高性能网络编程 之 TCP连接的内存使用
文章出处:http://taohui.org.cn/tcpperf7.html转载 2014-05-26 21:08:51 · 1134 阅读 · 0 评论 -
Linux内核调度算法
文章出处:http://www.uml.org.cn/embeded/201203024.asp转载 2014-05-23 11:38:40 · 941 阅读 · 0 评论 -
TCP的那些事儿(上)
文章出处:http://coolshell.cn/articles/11564.html TCP是一个巨复杂的协议,因为他要解决很多问题,而这些问题又带出了很多子问题和阴暗面。所以学习转载 2014-06-01 11:49:59 · 3792 阅读 · 0 评论 -
技巧:Linux动态库与静态库制作及使用详解
文章出处:http://www.ibm.com/developerworks/cn/linux/l-cn-linklib/简介转载 2014-04-28 21:53:13 · 902 阅读 · 0 评论 -
线程模型
文章出处:http://bdxnote.blog.163.com/blog/static/8444235200810179235444/ 当今的各种不同的操作转载 2014-04-27 21:08:58 · 785 阅读 · 0 评论 -
IPC通信陷阱之六万五千分之一
文章出处:http://qa.baidu.com/blog/?p=48【摘要】在本文中,作者剖析了转载 2014-04-12 15:34:55 · 906 阅读 · 0 评论 -
管理处理器的亲和性(affinity)
文章出处:http://www.ibm.com/developerworks/cn/linux/l-affinity.html转载 2014-04-27 19:28:55 · 3013 阅读 · 1 评论 -
UNIX Load Average Part 1: How It Works
文章来源: 网络转载 2014-05-06 19:37:48 · 1312 阅读 · 0 评论 -
LINUX AND THE MAXIMUM NUMBER OF PROCESSES (THREADS)
文章出处:http://kavassalis.com/2011/03/linux-and-the-maximum-number-of-processes-threads/转载 2014-05-06 15:16:47 · 1387 阅读 · 0 评论 -
Linux静态库和动态库调用
文章出处:http://blog.youkuaiyun.com/able_zhou/article/details/6303905转载 2014-04-29 19:44:42 · 1057 阅读 · 0 评论 -
I/O重定向和管道:使用pipe、fork、exec详解
文章出处:http://blog.youkuaiyun.com/yake25/article/details/7447086I/O重定向和管道:使用pipe、fork、exec详解。转载 2013-09-23 16:12:45 · 1526 阅读 · 0 评论 -
Argument list too long
文章出处:http://bencane.com/2011/07/13/argument-list-too-long/If you've been an administrator for long enough eventually you will have run into an issue like so.[bcane@bcane toomany]$ rm * bas转载 2015-01-12 19:30:53 · 1119 阅读 · 0 评论 -
Advanced Linux System Statistics and Diagnostics with SystemTap
文章出处:http://bencane.com/2012/08/20/advanced-linux-system-statistics-and-diagnostics-with-systemtap/In one of the first posts of this blog I covered some basic SystemTap functionality from an e转载 2015-01-12 20:08:40 · 832 阅读 · 0 评论 -
Understanding load average vs. cpu usage
文章出处:http://stackoverflow.com/questions/21617500/understanding-load-average-vs-cpu-usageFirst, top does not calculate load average itself. It just readsload average from the /proc/loadavg转载 2015-06-19 19:16:00 · 908 阅读 · 0 评论 -
Linux上如何查看某个进程的线程
文章出处:https://linux.cn/article-5633-1.html问题: 我的程序在其内部创建并执行了多个线程,我怎样才能在该程序创建线程后监控其中单个线程?我想要看到带有它们名称的单个线程详细情况(如,CPU/内存使用率)。线程是现代操作系统上进行并行执行的一个流行的编程方面的抽象概念。当一个程序内有多个线程被叉分出用以执行多个流时,这些线程就会在它们转载 2015-06-18 19:24:49 · 3977 阅读 · 0 评论 -
在linux上使用交换文件扩展交换空间
文章出处:https://linux.cn/article-5654-1.html想像一种情景,当我们的Linux系统用尽交换空间时,在这种情况下,我们想要使用swap分区扩展交换空间,但在某些情况下磁盘上已经没有可用的空闲分区了,致使我们不能把它扩大。因此,在这种情况下,我们可以使用交换文件增加swap空间。以下是使用交换文件在Linux上扩展sw转载 2015-06-18 18:57:39 · 891 阅读 · 0 评论 -
I/O重定向的原理和实现
文章出处:http://www.cnblogs.com/weidagang2046/p/io-redirection.html在Unix系统中,每个进程都有STDIN、STDOUT和STDERR这3种标准I/O,它们是程序最通用的输入输出方式。几乎所有语言都有相应的标准I/O函数,比如,C语言可以通过scanf从终端输入字符,通过printf向终端输出字符。熟悉Shell的朋友转载 2015-03-29 15:51:16 · 5083 阅读 · 0 评论 -
popen和pclose
文章出处:http://coderworm.com/unix/2013/12/16/unix-process-communicate-b.html上边介绍了unix进程通信的其中一个方式:pipe, 不过如果直接使用原生的函数的话,需要我们自己去fork进程,关闭管道的不使用端等等。这里,介绍标准I/O库提供的两个函数:FILE* popen(const char *cmdst转载 2015-01-24 20:10:23 · 3234 阅读 · 0 评论 -
聊聊多线程程序的load balance
文章出处:http://www.searchtb.com/2014/11/%E8%81%8A%E8%81%8A%E5%A4%9A%E7%BA%BF%E7%A8%8B%E7%A8%8B%E5%BA%8F%E7%9A%84load-balance.html说起load balance,一般比较容易想到的是大型服务在多个replica之间的load balance、和kernel的l转载 2015-01-24 16:50:31 · 1423 阅读 · 0 评论 -
10 examples to help you understand top command usage in Unix/Linux
文章出处:http://www.golinuxhub.com/2014/03/8-examples-to-help-you-understand-top.htmltop is one of my favorite tool for monitoring system usage and also to make any change for improving system perfo转载 2015-01-17 19:46:21 · 1291 阅读 · 0 评论 -
daemon reparented / init --user
文章出处:https://www.osso.nl/blog/daemon-reparented-init-user/While I was battling an obscure Ubuntu shutdown issue — more about that later — I noticed that daemonized jobs started from my X sessi转载 2015-01-17 16:31:30 · 1417 阅读 · 0 评论 -
Daemonizing and Upstart
文章出处:https://blog.nekoconeko.nl/blog/2014/11/12/daemonizing-and-upstart.htmlWhen creating command-line applications, the user is usually present at the terminal to provide commands to the appl转载 2015-01-17 15:19:10 · 1022 阅读 · 0 评论 -
在VMware和iSCSI阵列上关闭延迟确认
文章出处:http://www.360doc.com/content/15/0115/11/21412_441002570.shtml#有网友发给我一篇关于VMware的文章,说怎么都读不明白。我一开始还不以为然,没想到读了一半就想拍案叫绝——表面看来平淡无奇,但内在隐含的技术细节太妙了!要是早一点看到它,一定会收录到拙作《Wireshark网络分析就这么简单》的第三部分。转载 2015-01-16 20:23:00 · 2700 阅读 · 0 评论 -
一个多线程程序挂起问题解决
文章出处:http://www.dbafree.net/?p=1128N个线程,做同样的事,跑的一直好好的,突然某个线程就挂住了。于是使用 ps -eLf|grep name查看了线程相关的PID,并对其进行了strace.如下:$ strace -p 13251 Process 13251 attached - interrupt to quit futex(0x1fcc转载 2014-12-26 18:18:28 · 11085 阅读 · 0 评论 -
Resident and Virtual memory on Linux: A short example
文章出处:http://www.darkcoding.net/software/resident-and-virtual-memory-on-linux-a-short-example/Tools like top show processes using two kinds of memory:Resident memory, labelled RES: How much转载 2015-02-01 16:14:49 · 926 阅读 · 0 评论 -
Troubleshooting High I/O Wait in Linux --- A walkthrough on how to find processes that are causing h
文章出处:http://bencane.com/2012/08/06/troubleshooting-high-io-wait-in-linux/Linux has many tools available for troubleshooting some are easy to use, some are more advanced.I/O Wait is an issu转载 2015-01-12 18:26:21 · 998 阅读 · 0 评论 -
xargs: Build and Execute Commands with Arguments from Standard Input
文章出处:http://bencane.com/2012/08/13/xargs-build-and-execute-commands-with-arguments-from-standard-input/For me when it comes to useful commands xargs ranks along side commands like find, top an转载 2015-01-12 19:55:45 · 866 阅读 · 0 评论 -
从一道面试题谈linux下fork的运行机制
文章出处:http://www.cnblogs.com/leoo2sk/archive/2009/12/11/talk-about-fork-in-linux.html今天一位朋友去一个不错的外企面试linux开发职位,面试官出了一个如下的题目: 给出如下C程序,在linux下使用gcc编译:#include "stdio.h"#include "sys转载 2013-09-23 21:26:01 · 914 阅读 · 0 评论 -
一个潜藏4年之久的内核bug
文章出处:http://blog.chinaunix.net/uid-20662820-id-3518204.html前段时间,一哥们在论坛里对kernel route部分的一段代码有疑惑,于是就抽空帮忙看了下。代码如下: #ifdef CONFIG_IP_ROUTE_MULTIPATH #define FIB_RES_NH(res) ((res).fi->fi转载 2013-09-23 09:20:58 · 1599 阅读 · 0 评论 -
Linux Makefile
Linux Makefile转载 2010-08-27 01:08:00 · 1665 阅读 · 0 评论 -
Makefile 惯例
Makefile 惯例转载 2010-08-26 17:12:00 · 875 阅读 · 0 评论 -
su与sudo的区别与使用技巧
su与sudo的区别与使用技巧转载 2010-08-25 00:40:00 · 747 阅读 · 0 评论 -
自动生成Makefile的全过程详解!automake/autoconf入门
自动生成Makefile的全过程详解!automake/autoconf入门转载 2010-08-24 00:34:00 · 1871 阅读 · 0 评论 -
Makefile.am, Makefile.in 与 Makefile的关系
Makefile.am, Makefile.in 与 Makefile的关系转载 2010-08-24 00:00:00 · 18938 阅读 · 0 评论 -
GNU Gengetopt 2.10 Usage
GNU Gengetopt 2.10 Usage转载 2010-08-08 21:41:00 · 1654 阅读 · 0 评论 -
crontab使用格式说明
crontab使用格式说明转载 2010-08-05 23:00:00 · 1487 阅读 · 0 评论