易截截图软件、单文件、免安装、纯绿色、仅160KB

linux kernel: HZ, tick and jiffies

http://linux.chinaunix.net/bbs/archiver/tid-985372.html
Linux Kernel: 简介HZ, tick and jiffie
               
Linux[/b]核心幾個重要跟時間有關的名詞或變數,底下將介紹HZ[/b]、tick與jiffies。
HZ[/b]
Linux[/b]核心每隔固定週期會發出timer interrupt (IRQ 0),HZ[/b]是用來定義每一秒有幾次timer
interrupts。舉例來說,HZ[/b]為1000,代表每秒有1000次timer
interrupts。HZ[/b]可在編譯核心時設定,如下所示 (以核心版本2.6.20-15為例):
adrian@adrian-desktop:~$ cd /usr/src/linux[/b]
adrian@adrian-desktop:/usr/src/linux[/b]$ make menuconfig
Processor type and features  ---> Timer frequency (250 HZ[/b])  --->
其中HZ[/b]可設定100、250、300或1000。以小弟的核心版本預設值為250。
小實驗
觀察/proc/interrupt的timer中斷次數,並於一秒後再次觀察其值。理論上,兩者應該相差250左右。
adrian@adrian-desktop:~$ cat /proc/interrupts | grep timer && sleep 1 && cat /proc/interrupts | grep timer
0:             9309306               IO-APIC-edge          timer
0:                    9309562               IO-APIC-edge         timer
上面四個欄位分別為中斷號碼、CPU中斷次數、PIC與裝置名稱。
問題來了,timer interrupt會做哪些事情? 答案如下所列:
[list][*]更新時間、日期與系統從開機至目前經過多少時間
。[*]更新系統資源使用率統計[*]


相关文档:

Linux 各模块架构图


 
  Resources on the site
• Interactive map of GNU/Linux OS and FOSS
• "GNU/Linux is my home" - map of GNU/Linux system
• Interactive map of Linux kernel
• Linux inside
• Linux Technology Reference (single page view)
• Linux kernel diagram
• Li ......

七步骤建立更加可靠的Linux系统

http://linux.chinaitlab.com/safe/794893.html
许多刚接触Linux的网络管理员发现,他们很难由指向点击式的安全
配置界面转换到另一种基于编辑复杂而难以捉摸的文本文件的界面。本文列出七条管理员能够也应该可以做到的步骤,从而帮助他们建立更加安全
的Linux服务器
,并显著降低他们所面临的风险。
  &nbs ......

Qt for symbian环境搭建(Linux)

Programming your application or library based on Qt has always had the promise that you can deploy your application on many different platforms. Development of those applications can, likewise, happen on many different platforms. QtCreator runs on Windows, Mac & Linux among others.
Qt很简单,易 ......

OMAP DSP 学习笔记(LINUX平台)(二)DMAI

DMAI(DaVinci Multimedia Application Interface)是DSP提供给ARM端应用程序的调用接口,DSP也是依赖于DSPLINK的。 DMAI中也提供了许多VISA (video, imaging, speech and audio)编解码的实例。DMAI提供的是一种功能的抽象,而在具体实现上,不同硬件平台,不同系统是不一个样的。另外,由于DMAI是以源代码的形式提供的,所以 ......

Linux 下 etc/ 目录文件详解

3. 网络配置文件
3.1 /etc/hosts
#/etc/hosts
#文件格式: IPaddress hostname aliases
#文件功能: 提供主机名到IP地址的对应关系,建议将自己经常使用的主机
# 加入此文件中,也可将没有DNS记录的机器加入到此文件中,
# 这样会方便网络应用
127.0.0.1 localhost localhost.localdomain
202.118.66.81 helius.dlut. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号