Xalanz's 网络日志(Ethan's blog)

阳光风雨中的泥土Mud under the sunlight and rain

Subscribe to RSS feed

Posts tagged with "Kernel"

A Comparison of Solaris, Linux, and FreeBSD Kernels

, , ,

by Max Bruning
October 14, 2005
http://hub.opensolaris.org/bin/view/Community+Group+advocacy/solaris-linux-freebsd
I spend most of my time teaching classes on Solaris internals, device drivers, and kernel crash dump analysis and debugging. When explaining to classes how various subsystems are implemented in Solaris, students often ask, "How does it work in Linux?" or, "In FreeBSD, it works like this, how about Solaris?" This article examines three of the basic subsystems of the kernel and compares implementation between Solaris 10, Linux 2.6, and FreeBSD 5.3.

The three subsystems examined are scheduling, memory management, and file system architecture. I chose these subsystems because they are common to any operating system (not just Unix and Unix-like systems), and they tend to be the most well-understood components of the operating system.

Read more...

Linux kernel 如何确定哪个程序是最滥的,该Kill的

,

[By Xalanz]在以资源为基础的世界里,哪怕是计算机的Cyber Space,当资源紧张的时候,总要有所选择,我们看看Linux 内核在系统资源告罄的时候,如何确定哪个进程是最差的,然后杀掉它以腾出宝贵的资源,使整个系统得以存活。
Oom_kill.c
Oom_badness()
我们看看什么是好的算法:

Read more...

Linux 的LVM

,

[By Xalanz]Linux 的LVM 有几个非常重的特性:
1、跨越物理磁盘。
2、跨越物理卷。
3、可以在线调整逻辑卷大小。
这几个特性对于需要超越物理磁盘大小的存储卷来说是必须的,LVM(逻辑卷管理)是Linux企业应用必不可少的特性。LVM 同样也是在Linux kernel 的block device 的层次实现的。下面转一片关于创建LVM的简单介绍。对于文件系统来说,LVM设备等同普通的块设备,LVM和MD的加入,使block device的架构复杂了一些.

Read more...

新的Linux kernel性能利器Syslet

,

[By Xalanz]Ingo Molnar 向Linux kernel 提交了一组补丁,以使Linux kernel 具备Syslet 异步I/O 特性。在公布的初步测试数据中,可以看出Syslet确实是提升应用系统性能的利器。
-----------------synchronous IO-----|--Syslets:
uncached:-------45.8 seconds--------|--34.2 seconds---( +33.9% )
cached:---------31.6 msecs----------|--26.5 msecs-----( +19.2% )

Read more...

从ZFS看Solaris的实力

, , ,

[By Xalanz]

在Solaris 10中,Sun 发布了ZFS 文件系统,这个Sun 称之为这个星球上最先进的文件系统。Sun 甚至毫不客气地说,这是最后一个文件系统;从这句话中不难看出Sun作为技术公司的锐气和豪气,同时是否也隐约漏出了一些偏执。
::看到这些人,真的很牛X(抱歉,在中文中实在找不出更合适的词);牛X在他们不象在工作,而是在自由自在,享受地生活。

Read more...

Linux 染上铜臭是GPL的宿命?

, , ,

[By Xalanz]曾几何时,Linux 就是Free 的代名词,这里的Free,我理解有n层的含义:

1、免费 不要钱、使用这个系统不要钱,不用给开发者支付费用,也不用向哪个商业机构支付昂贵的费用。
2、自由 有自己订制,修改的权利;当然也摆脱了各种商业许可的束缚。
3、开放 能够获得复杂的操作系统的原代码,以满足神秘感,甚至是进入Kernel黑客团队的欲望。
而时至今日,也许并非是今天开始,GPL本身就注定了今天的结果:
1、Linux 真的发展壮大了 Linux 成了真正可以运行企业级可靠服务的操作系统。
2、Linux 的一些集聚性能、稳定性、扩展性等超强质量的发行版开始付费了,不再可以自由下载了。
3、Linux 的企业级发行版开始在Open 和Close 之间玩游戏了。

Read more...

Linux 内核线程清单

, ,

[By Xalanz]Linux 不知从何时起,内核的线程越来越多。它们都干啥用呢?

Read more...

Linux Kernel 的kmalloc()

,

[By Xalanz]Linux 内核里面分配内存比用户空间复杂了一些,比如常用的kmalloc()函数,它多了一个参数,呵呵,这个参数可以控制kmalloc()的很多的行为特性.

Read more...

Linux pipe 管道到底是什么? 跟踪mkfifo到内核

,

[By Xalanz]技术问题往往都是这样,当它不出问题的时候,你并不会有特别的兴趣去究根问底,所以,出了问题,往往就是好事.Linux 的Pipe 出了一个问题,我不得不问自己,Pipe 到底是什么,在Linux kernel 里面是怎么实现的.

Read more...