随笔分类 - linux内核
摘要:http://liwei.life/2016/04/07/linux%E7%9A%84%E8%BF%9B%E7%A8%8B%E4%BC%98%E5%85%88%E7%BA%A7/
阅读全文
摘要:http://www.ibm.com/developerworks/cn/linux/l-linux-scheduler-simulator/ LinSched LinSched 是驻留在用户空间中的 Linux 调度器模拟器。它隔离 Linux 调度器子系统并围绕它构建足够的内核环境, 从而可以在
阅读全文
摘要:cpu 缓存:getconf -a LEVEL1_ICACHE_SIZE 32768 LEVEL1_ICACHE_ASSOC 8 LEVEL1_ICACHE_LINESIZE 64 LEVEL1_DCACHE_SIZE 32768 LEVEL1_DCACHE_ASSOC 8 LEVEL1_DCACHE_LINESIZE 64 LEVEL2_CACHE_SIZE 262144 LEVEL2_CAC...
阅读全文
摘要:linux下会看到早期的syslog服务,但后续就看到只使用rsyslog服务了 rsyslog 相当于 syslog的升级版,rsyslog可以将日志写到文件中 客户端程序编写:
阅读全文
摘要:kernel.msgmnb //单个消息队列最大字节数 Specifies the maximum number of bytes in a single message queue, default = 16384 kernel.msgmni //系统范围内消息队列上限 Specifies the
阅读全文
摘要:RHCA-RH442-Linux系统性能调优
阅读全文
摘要:https://access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Linux/6/html/Performance_Tuning_Guide/index.html
阅读全文
摘要:https://www.kernel.org/doc/Documentation/
阅读全文
摘要:http://www.lenky.info/archives/category/nix%E6%8A%80%E6%9C%AF/%E5%86%85%E6%A0%B8%E6%8A%80%E6%9C%AF
阅读全文
摘要:kswapd0、kjournald、pdflush、kblocked、migration进程含义 kswapd0、kjournald、pdflush、kblocked、migration进程含义 kswapd0、kjournald、pdflush、kblocked、migration进程含义 1.k
阅读全文
摘要:注意:在清空缓存之前使用sync命令同步数据到磁盘 vvm.lowmem_reserve_ratio For some specialised workloads on highmem machines it is dangerous for the kernel to allow process
阅读全文
摘要:NUMA CPU affinity:CPU绑定 (不会交错访问内存,性能提高) numa: numactl numad numdemo numastat numastat:numa_miss 出现大量值出现,使用绑定 CPU调度域概念:可以把进程绑定到CPU上 Group processors in
阅读全文
摘要:http://blog.csdn.net/wudongxu/article/details/8574753 参数位置: /proc/sys/kernel/ 编绎内核时参数 [root@monitor boot]# pwd/boot[root@monitor boot]# vi config-2.6.
阅读全文
摘要:http://blog.csdn.net/wudongxu/article/category/791519 PAE:物理地址扩展:32bit+4=64G 32位操作系统:1G内核+3G用户 缓存:比原始存储设快,但小,因为贵,程序运行局部性 缓存置换算法:LRU MRU 程序运行局部性:空间局部性,
阅读全文
摘要:Mapping virtual addresses(x86) 1.由于线性地址非常广,逐一查找非常慢,才用三级页表,索引查找 2.TLB:Transfer lookaside buffer(存储地址映射关系) 1.cpu >tlb (大页bigpage:提高TLB 命中,也可以提高分配效益) 2.c
阅读全文
摘要:curl 127.0.0.1 | | | \--ngx_epoll_process_events | | | | \--ngx_time_update | | | | | \--ngx_gmtime | | | |...
阅读全文
摘要:http://blog.csdn.net/jianqiangchen/article/details/29175285 http://blog.csdn.net/jianqiangchen/article/details/29201415 http://blog.csdn.net/allenlinr
阅读全文
摘要:http://www.ttlsa.com/tools/use-strace-to-track-multiple-processes/ strace是Linux环境下的一款程序调试工具,用来监察一个应用程序所使用的系统调用及它所接收的系统信息。追踪程序运行时的整个生命周期,输出每一个系统调用的名字,参
阅读全文
摘要:https://github.com/elcritch/etrace 窗口1: 监控窗口,执行监控程序,显示监控结果 [root@monitor example]# pwd /root/etrace-master/example [root@monitor example]# ll total 28 -rwxr-xr-x 1 root root 16687 Jun 9 08:49 cru...
阅读全文
摘要:http://blog.csdn.net/oujunli/article/details/8138172 http://blog.csdn.net/oujunli/article/details/50575115 http://blog.csdn.net/oujunli/article/detail
阅读全文