
linux kernel
文章平均质量分 77
samssm
所有耐性用完 做个有文化的流氓~~
展开
-
eth fixed link
Fixed link Device Tree binding ------------------------------ Some Ethernet MACs have a "fixed link", and are not connected to a normal MDIO-managed PHY device. For those situations, a Devic...转载 2019-04-18 09:43:46 · 1711 阅读 · 0 评论 -
Lmbench
LmbenchContents [hide] 1 About2 Source Download Location3 Cross compiling4 Test setup5 Execution with logsAboutlmbench is a suite of simple, portable, ANSI/转载 2015-05-07 09:48:47 · 4793 阅读 · 0 评论 -
How long does it take to make a context switch?
How long does it take to make a context switch?That's a interesting question I'm willing to spend some of my time on. Someone at StumbleUpon emitted the hypothesis that with all the improvem转载 2015-05-07 09:46:41 · 1391 阅读 · 0 评论 -
Real-Time Linux, Multicore ARM and Fast Context Switch a couple of year later: performance analysis
Vanni Genua, Consorzio Roma RicercheLuca Recchia, MBDANicola Baroncini, Selex ElsagMauro Olivieri, La Sapienza University of RomeThe following research deals with a set of real-time perf转载 2015-05-07 09:44:57 · 998 阅读 · 0 评论 -
Performance Measurement on ARM
Performance Measurement on ARMAfter working mostly with different ARM processors in the 200...400 MHz range in lots of Embedded Linux projects over the last years, we have seen an interesting deve转载 2015-05-07 09:49:56 · 1594 阅读 · 0 评论 -
Linux上程序调试的基石(1)--ptrace
http://javadino.blog.sohu.com/101228695.html2008-10-04 23:16阅读(3298)评论(3)引子: 1.在Linux系统中,进程状态除了我们所熟知的TASK_RUNNING,TASK_INTERRUPTIBLE,TASK_STOPPED等,还有一个TASK_TRACED。这表明这个进程处于什么状态?转载 2015-05-14 09:14:00 · 715 阅读 · 0 评论 -
如何在程序中升高和降低权限
http://blog.youkuaiyun.com/leptune/article/details/8713468 在做LinuxFtp项目进行权限管理时,如果是某个非root用户登录,则必须进行降权限处理。而有些系统调用又只能以root权限调用,所以那时又需要进行升权限处理。 降低权限单调用setegid和seteuid是不够的,因为进程还有个supplementary转载 2015-05-14 15:28:54 · 1271 阅读 · 0 评论 -
如何指定进程运行的CPU
http://www.cnblogs.com/liuhao/archive/2012/06/21/2558069.html如何指定进程运行的CPUcoolshell最新的文章《性能调优攻略》在“多核CPU调优”章节,提到“我们不能任由操作系统负载均衡,因为我们自己更了解自己的程序,所以,我们可以手动地为其分配CPU核,而不会过多地占用CPU0,或是让我们关键转载 2015-05-14 14:48:07 · 608 阅读 · 0 评论 -
linux lglock
Aug 25, 20101 Preventing overly-optimistic spinning为了避免大量线程spinning同一个锁,线程连续两次检查mutex的owner,如果owner发生了变化,表明该锁竞争激烈,这时候线程应该睡眠,见 patch2 When memory allocation failure is not an option去掉__GFP_NO转载 2015-05-14 10:24:52 · 975 阅读 · 0 评论 -
Linux 用户空间审计系统
Linux 用户空间审计系统2012-05-21 17:02 曹江华 51cto.com 字号:T | TLinux内核有用日志记录事件的能力,比如记录系统调用和文件访问。然后管理员可以评审这些日志,确定可能存在的安全漏洞,比如失败的登录尝试,或者用户对系统文件不成功的访问。这种功能称为Linux用户空间审计系统,在Red Hat Enterprise Linux转载 2015-05-15 11:49:20 · 1663 阅读 · 0 评论 -
linux KDB
http://elinux.org/KDBhttps://www.kernel.org/pub/linux/kernel/people/jwessel/kdb/https://www.kernel.org/pub/linux/kernel/people/jwessel/kdb/usingKDB.htmlhttps://www.ibm.com/developerworks/cn/转载 2015-05-15 11:48:16 · 907 阅读 · 0 评论 -
ARM Linux 如何模拟X86 PTE中的Present Young和Dirty标志位
ARM Linux 如何模拟X86 PTE中的Present Young和Dirty标志位原创文章,转载请注明出处.转载自: Li Haifeng's Blog本文链接地址: ARM Linux 如何模拟X86 PTE中的Present Young和Dirty标志位注:本文是参考Kernel的代码并加上个人揣测,欢迎指正在X86 MMU Page t转载 2015-05-08 10:07:25 · 2363 阅读 · 0 评论 -
DTrace for Linux 2016
27 Oct 2016With the final major capability for BPF tracing (timed sampling) merging in Linux 4.9-rc1, the Linux kernel now has raw capabilities similar to those provided by DTrace, the advance转载 2016-10-29 09:13:42 · 2679 阅读 · 0 评论 -
latencytop深度了解你的Linux系统的延迟
原创文章,转载请注明: 转载自系统技术非业余研究本文链接地址: latencytop深度了解你的Linux系统的延迟我们在系统调优或者定位问题的时候,经常会发现多线程程序的效率很低,但是又不知道问题出在哪里,就知道上下文切换很多,但是为什么上下文切换,是谁导致切换,我们就不知道了。上下文切换可以用dstat这样的工具查看,比如:$dstat转载 2016-03-14 10:18:20 · 1510 阅读 · 0 评论 -
Linux-3.10-x86_64 内核配置选项简介
http://www.jinbuguo.com/kernel/longterm-3_10-options.htmlLinux-3.10-x86_64 内核配置选项简介作者:金步国版权声明本文作者是一位开源理念的坚定支持者,所以本文虽然不是软件,但是遵照开源的精神发布。无担保:本文作者不保证作品内容准确无误,亦不承担任何由于使用此文档所导致的损转载 2015-06-01 13:57:45 · 13164 阅读 · 0 评论 -
Virtio:针对 Linux 的 I/O 虚拟化框架
http://www.ibm.com/developerworks/cn/linux/l-virtio/http://www.linux-kvm.org/page/Virtiohttp://www.ibm.com/developerworks/cn/linux/l-hypervisor/http://www.jinbuguo.com/kernel/longterm-3_10-o转载 2015-06-01 13:50:15 · 651 阅读 · 0 评论 -
(KVM连载) 5.1.3 使用virtio_balloon(KVM中的Ballooning)(上)
5.1.3 使用virtio_balloon1. Ballooning简介通常来说,要改变客户机占用的宿主机内存,是要先关闭客户机,修改启动时的内存配置,然后重启客户机才能实现。而内存的ballooning(气球)技术可以在客户机运行时动态地调整它所占用的宿主机内存资源,而不需要关闭客户机。Ballooning技术形象地在客户机占用的内存中引入气球(Balloon)的概念,转载 2015-06-01 13:42:16 · 953 阅读 · 0 评论 -
Linux KVM - 記憶體最佳化管理與應用
Linux KVM 研究室http://linuxkvm.blogspot.com/2011/06/linux-kvm_19.html即使到現在,大部分的虛擬系統,在面對虛擬電腦記憶體的管理與分配上,所採用的方式,就是設定多少記憶體的容量,只要虛擬電腦一開機,實體電腦就會切割出多大的記憶體來讓虛擬電腦使用,例如,建立虛擬電腦時,若設定記憶體為 512 MB,只要虛擬電腦一開機,转载 2015-06-01 13:35:13 · 596 阅读 · 0 评论 -
图解VMware内存机制
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://delxu.blog.51cto.com/975660/288682在写《VMware内存机制初探》之后,原本是计划写一篇《VMware内存机制再探》的,讲一讲VMware内存机制中的另外几个重要内容,比如透明内存共享(TPS, Transparent Page Sha转载 2015-06-01 13:34:44 · 645 阅读 · 0 评论 -
10. Bootmem机制
http://lli_njupt.0fees.net/ar01s10.html10. Bootmem机制10.1. 简介Bootmem机制是内核在启动时对内存的一种简单的页面管理方式。 它为建立页表管理代码中的数据结构提供动态分配内存的支持,为了对页面管理机制作准备,Linux使用了一种叫bootmem分配器(bootmem allocator)的机制,转载 2015-05-08 13:13:46 · 631 阅读 · 0 评论 -
Linux Namespaces机制——实现
http://www.cnblogs.com/lisperl/archive/2012/05/03/2480573.html转载 2015-05-14 09:57:11 · 876 阅读 · 0 评论 -
Jump label
Jump labelBy Jonathan CorbetOctober 27, 2010The kernel is filled with tests whose results almost never change. A classic example is tracepoints, which will be disabled on running systems w转载 2015-05-14 15:22:45 · 786 阅读 · 0 评论 -
Linux内核分析笔记----Page Cache和Page Writeback
Linux内核分析笔记----Page Cache和Page Writeback 2011-09-30 22:28:29分类: LINUX页高速缓存是linux内核实现的一种主要磁盘缓存,它主要用来减少对磁盘的IO操作,具体地讲,是通过把磁盘中的数据缓存到物理内存中,把对磁盘的访问变为对物理内存的访问。为什么要这么做呢?一,速度;二临时局部原理。有关这两转载 2015-05-11 16:30:30 · 3464 阅读 · 0 评论 -
To free pagecache
PS:前天有童鞋问我,为啥我的Linux系统没运行多少程序,显示的可用内存这么少?其实Linux与Win的内存管理不同,会尽量缓存内存以提高读写性能,通常叫做Cache Memory。有时候你会发现没有什么程序在运行,但是使用top或free命令看到可用内存free项会很少,此时查看系统的 /proc/meminfo 文件,会发现有一项 Cached Memory:输入cat /p转载 2015-05-08 16:15:17 · 1279 阅读 · 0 评论 -
linux内存管理各文件简介
linux内存管理各文件简介转自: http://blog.youkuaiyun.com/u011955950/article/details/188603791、内存分配机制page_alloc:伙伴分配系统debug-pagealloc:伙伴分配系统辅助函数slab、slub、slob:基于伙伴系统之上的内存分配算法huge_memory、hug转载 2015-05-08 15:31:07 · 1684 阅读 · 0 评论 -
Driver porting: per-CPU variables
Driver porting: per-CPU variables[Posted February 17, 2003 by corbet]This article is part of the LWNPorting Drivers to 2.6 series.The 2.6 kernel makes extensive use of per-CP转载 2015-03-20 14:03:20 · 530 阅读 · 0 评论 -
Driver porting: low-level memory allocation
Driver porting: low-level memory allocation[Posted February 17, 2003 by corbet]This article is part of the LWNPorting Drivers to 2.6 series.The 2.5 development series has bro转载 2015-03-20 13:59:41 · 562 阅读 · 0 评论 -
GFP_KERNEL or SLAB_KERNEL?
GFP_KERNEL or SLAB_KERNEL?[Posted February 18, 2003 by corbet]The low-level kernel memory allocation functions take a set of flags describing how that allocation is to be performed. Among转载 2015-03-20 13:58:55 · 744 阅读 · 0 评论 -
linux内核的移植与遭遇问题的解决 启动调试 printascii
<br />前些日子,完成u-boot的移植,随后所作的事情就是进行linux内核的移植,在移植的过程中遭遇了一些莫名其妙的错误,但无论如何,已经实现了最终的移植工作,在移植的过程中学会了一些内核的debug方法,依据此方法对内核启动过程进行了跟踪,相关的内容也将在本章节内进行阐述。<br /> 移植硬件平台 友善之臂 s3c2410,内核版本 linux 2.6.20.3,交叉编译器gcc4.0.2。<br /> 交叉编译器的建立文章参见ARM-Linux交叉编译工具链转载 2011-05-25 16:49:00 · 850 阅读 · 0 评论 -
Linux下谁在消耗我们的cache
原创文章,转载请注明: 转载自系统技术非业余研究本文链接地址: Linux下谁在消耗我们的cacheLinux下对文件的访问和设备的访问通常会被cache起来加快访问速度,这个是系统的默认行为。 而cache需要耗费我们的内存,虽然这个内存最后可以通过echo 3>/proc/sys/vm/drop_caches这样的命令来主动释放。但是有时候我们还是需要理解谁消耗了我们的内存转载 2015-05-11 16:56:05 · 1863 阅读 · 0 评论 -
Linux 时钟管理
Linux 时钟管理时钟管理是操作系统不可或缺的一个重要组成部分。无论是应用程序还是内核本身都在大量使用各种各样的timer。本文介绍了Linux操作系统曾经使用和现在正在使用的时钟管理机制,着重阐述了内核时钟子系统的整体架构以及在x86平台上的应用。1 评论:陈 功, 软件工程师, Intel2010 年 7 月 08 日转载 2015-05-12 16:27:50 · 578 阅读 · 0 评论 -
Relay:一种内核到用户空间的高效数据传输技术
Relay 是一种从 Linux 内核到用户空间的高效数据传输技术。通过用户定义的 relay 通道,内核空间的程序能够高效、可靠、便捷地将数据传输到用户空间。Relay 特别适用于内核空间有大量数据需要传输到用户空间的情形,目前已经广泛应用在内核调试工具如 SystemTap中。本文介绍了 Relay 的历史和原理,并且用一个简单的实例介绍了 Relay 的具体用法。Re转载 2015-05-13 15:21:14 · 1976 阅读 · 0 评论 -
User namespaces and setgroups()
User namespaces and setgroups()By Jonathan CorbetDecember 17, 2014Back in November, we looked at a patch that would allow unprivileged processes to drop groups from their credentials. Afte转载 2015-05-14 15:24:00 · 834 阅读 · 0 评论 -
一次内核hung task分析
http://blog.chinaunix.net/uid-14528823-id-4406510.html1、内核hung task检测机制由来我们知道进程等待IO时,经常处于D状态,即TASK_UNINTERRUPTIBLE状态,处于这种状态的进程不处理信号,所以kill不掉,如果进程长期处于D状态,那么肯定不正常,原因可能有二:1)IO路径上的硬件出问题了,比如硬盘坏了(转载 2015-05-14 15:05:59 · 2789 阅读 · 0 评论 -
SystemTap–Linux下的万能观测工具
原创文章,转载请注明: 转载自系统技术非业余研究本文链接地址: SystemTap –Linux下的万能观测工具SystemtapView more presentations from Feng Yu.Post Footer automatically generated by wp-posturl plugin for wordpress.转载 2015-05-14 11:07:47 · 704 阅读 · 0 评论 -
为什么中断向量表重映射到高地址
为什么中断向量表重映射到高地址(转) 2013-04-13 09:51:33分类: LINUX原文地址:对ARM中MMU映射过程的理解(转) 作者:nuaagcjhttp://blog.chinaunix.net/u1/58780/showart_458039.htmlMMU给我感觉是个很复杂的东西,网上看了一些资料,勉强知道了一些表面的东西。它有两个作转载 2015-05-06 16:18:31 · 3363 阅读 · 0 评论 -
perf Examples
http://www.brendangregg.com/perf.htmlperf ExamplesImage license: creative commons Attribution-ShareAlike 4.0.These are some examples of using the perf Linux profiler, which has also be转载 2015-05-15 09:56:12 · 2807 阅读 · 0 评论 -
delayacct-utils
delayacct-utilsDelay Accounting UtilitiesDelay accounting allows the administrator to track the time an application spends waiting on disk I/O, swap I/O and CPU scheduling. This can help pin-poi转载 2015-05-15 10:43:59 · 546 阅读 · 0 评论 -
Linux Cgroups - freezer子系统
http://www.cnblogs.com/lisperl/archive/2012/04/25/2469587.html转载 2015-05-15 09:22:03 · 804 阅读 · 0 评论 -
perf 使用教程
https://perf.wiki.kernel.org/index.php/Main_Pagehttps://perf.wiki.kernel.org/index.php/Tutorialhttps://www.ibm.com/developerworks/cn/linux/l-cn-perf1/http://en.wikipedia.org/wiki/Perf_(Linux转载 2015-05-15 10:00:54 · 2628 阅读 · 0 评论