:em02:请教大虾们,下面两条宏定义做如何理解. 1.#define per_cpu(var, cpu) (*((void)(cpu), &per_cpu__##var)) 2.#define per_cpu(var, cpu) (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu])) 有两个问题: 1.第一条宏的返回值是什么(相比之下,第二条倒好理解,就是RELOC_HIDE的返回值)? 2.两条宏定义中的##是连接符吗? 还请大虾不吝赐教,谢谢! [ 本帖最后由 fineamy 于 2006-9-15 13:41 编辑 ]
by fineamy - 内核/嵌入技术 - 2006-09-16 09:47:04 阅读(1388) 回复(3)
在现场使用ps aux 查看发现[kernel idel]占用cpu10-15%,vmstat显示idel为0,而在家里[kernel idel]占用cpu为0。 现场机器为ES40,1G内存。 请问谁帮我解释原因吗?
各位老大帮忙呀! 我的机器是dell2650双cpu系统,安装后用top看到cpu状态如下: last pid: 7; load averages: 0.39, 0.36, 0.34 17:30:47 51 processes: 48 sleeping, 1 zombie, 1 stopped, 1 on cpu cpu states: 81.8% idle, 0.3% user, 16.0% kernel, 1.9% iowait, 0.0% swap Memory: 2047M real, 1843M free, 80M swap in use, 3610M swap fre...
我想在所有cpu上执行一个函数, 有这样的kernel api吗? 还是必须得自己产生IPI? :em02:
Anatomy of the linux kernel History and architectural decomposition Document options Print this page E-mail this page Document options requiring JavaScript are not displayed Watch these demos Integrate new tools and architectures into your environment - fast! --> Rate this page Help us improve this content Level: Intermediate M. Tim Jones ( [email=mtj@mtjones.com?subject=Anatomy ...
有个职位跟大家分享下... 北京(Bei Jing) Senior Software Developer(C/linux) 1 4年以上的linux相关的工作经验。 2 熟悉linux系统,精通linux下的c编程 3 对常用的应用代理协议(http,smtp,pop3,ftp)有较深入的了解,有应用代理协议的编程经验。 或者对linux kernel有深入的了解,有kernel相关的编程经验。 4 有良好的团队合作精神。能够承受较大的工作压力。 有兴趣请加:[email]zhangjing.easy@hotmail.com[/email]