LINUX
qiuen311
这个作者很懒,什么都没留下…
展开
-
buffer 与cache 的区别 (转)
buffer 与cache 的区别 A buffer is something that has yet to be “written” to disk. A cache is something that has been “read” from the disk and stored for later use. 对于共享内存(Shared memory),主要用于在UNIX 环境下不同进...转载 2018-11-07 15:28:31 · 712 阅读 · 0 评论 -
strace
我很意外大部分人都不知道如何使用strace。strace一直是我的首选debug工具,因为它非常的有效,很多问题都能够用它进行排查。 strace是什么? Strace是一个用来跟踪系统调用的简易工具。它最简单的用途就是跟踪一个程序整个生命周期里所有的系统调用,并把调用参数和返回值以文本的方式输出。 当然它还可以做更多的事情: strace可以过筛选出特定的系统调用。 strace可以...转载 2018-11-22 09:07:55 · 5449 阅读 · 0 评论