当前位置: 技术问答>linux和unix
几个关于linux的问题,请求解答!
来源: 互联网 发布时间:2015-08-04
本文导语: 1. When I demoed to view running kernel source code via “ddd vmlinux /proc/kcore” at last class, I failed looking up some labels. That means ddd can not find out all the possible labels within the source tree while Emacs(and any other edit...
1. When I demoed to view running kernel source code via “ddd vmlinux /proc/kcore” at last class, I failed looking up some labels. That means ddd can not find out all the possible labels within the source tree while Emacs(and any other editors) can. Pls explain why?
2.1 I tried to append a test item with null content to /etc/grub.conf at last class. But at the next bootup we did not see the expected new selection item. Based on this result, pls describe grub, a specific BootManager, featuring what kind of functionality.
2.2 From the brief description about grub.conf which I gave at that class, grub should only knew (hd0,0) where /boot was resided. Did you have questions on how /etc/grub.conf could affect the next grub’s behavior?
2.3 Further more, from the features which grub shows you, can you tell the power of grub?
3. As I mentioned at class, vmlinux is an executable kernel file, while bzImage is a compressed vmlinux with some extra headers to help loading and uncompressing bzImage as to vmlinux. Try to explain why we need compressing kernel file?
4. Suppose we have a global counter, jiffies, which will be automatically increased with the setting time interval. And we have another Macro-instruction, MIPS. Please design to measure how many MIPSs can be run within ONE jiffy
2.1 I tried to append a test item with null content to /etc/grub.conf at last class. But at the next bootup we did not see the expected new selection item. Based on this result, pls describe grub, a specific BootManager, featuring what kind of functionality.
2.2 From the brief description about grub.conf which I gave at that class, grub should only knew (hd0,0) where /boot was resided. Did you have questions on how /etc/grub.conf could affect the next grub’s behavior?
2.3 Further more, from the features which grub shows you, can you tell the power of grub?
3. As I mentioned at class, vmlinux is an executable kernel file, while bzImage is a compressed vmlinux with some extra headers to help loading and uncompressing bzImage as to vmlinux. Try to explain why we need compressing kernel file?
4. Suppose we have a global counter, jiffies, which will be automatically increased with the setting time interval. And we have another Macro-instruction, MIPS. Please design to measure how many MIPSs can be run within ONE jiffy
|
question 4: pls take a reference of how kernel get BogoMIPS...
|
if you change the config of grub, please use grub-install to active.
since the vmlinux is so big, and will be growing, bzImage is a good idea
since the vmlinux is so big, and will be growing, bzImage is a good idea