自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

韦编二绝

读书破万卷 下笔如有神

  • 博客(15)
  • 收藏
  • 关注

转载 使用 nice、cpulimit 和 cgroups 限制 cpu 占用率

文章出处:http://www.linux.cn/article-4742-1.htmlLinux内核是一名了不起的马戏表演者,它在进程和系统资源间小心地玩着杂耍,并保持系统的正常运转。 同时,内核也很公正:它将资源公平地分配给各个进程。但是,如果你需要给一个重要进程提高优先级时,该怎么做呢? 或者是,如何降低一个进程的优先级? 又或者,如何限制一组进程所使用的

2015-01-26 18:45:53 2242

转载 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 3185

转载 为什么寄存器比内存快?

文章出处:http://www.ruanyifeng.com/blog/2013/10/register.html计算机的存储层次(memory hierarchy)之中,寄存器(register)最快,内存其次,最慢的是硬盘。同样都是晶体管存储设备,为什么寄存器比内存快呢?Mike Ash写了一篇很好的解释,非常通俗地回答了这个问题,有助于加深对硬件的理解。下面就是我

2015-01-24 17:45:10 600

转载 聊聊多线程程序的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 1388

转载 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 1250

转载 Thrift的安装和简单示例

文章出处:http://www.open-open.com/lib/view/open1400460273402.html本文只是简单的讲解Thrift开源框架的安装和简单使用示例,对于详细的讲解,后面在进行阐述。Thrift简述                                                                       

2015-01-17 17:40:47 727

转载 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 1395

转载 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 989

转载 在VMware和iSCSI阵列上关闭延迟确认

文章出处:http://www.360doc.com/content/15/0115/11/21412_441002570.shtml#有网友发给我一篇关于VMware的文章,说怎么都读不明白。我一开始还不以为然,没想到读了一半就想拍案叫绝——表面看来平淡无奇,但内在隐含的技术细节太妙了!要是早一点看到它,一定会收录到拙作《Wireshark网络分析就这么简单》的第三部分。

2015-01-16 20:23:00 2616

转载 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 797

转载 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 840

转载 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 1069

转载 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 973

转载 使用iptables抵抗常见攻击

文章出处:http://drops.wooyun.org/tips/1424#yjs_add_arg=658711.  防止syn攻击思路一:限制syn的请求速度(这个方式需要调节一个合理的速度值,不然会影响正常用户的请求)iptables -N syn-flood iptables -A INPUT -p tcp --syn -j syn-flood iptabl

2015-01-10 17:14:00 6874

转载 SSL handshake latency and HTTPS optimizations.

文章出处:http://www.semicomplete.com/blog/geekery/ssl-latency.htmlAt work today, I started investigating the latency differences for similarrequests between HTTP and HTTPS. Historically, I was run

2015-01-10 14:58:00 995

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除