<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 53, 文章 - 0, 評(píng)論 - 3, 引用 - 0
    數(shù)據(jù)加載中……

    How Linux kernel decrease the Kernel Stack Size in 2.6

    The kernel are trying to use as little resource as possible. Here is an example, Originally, in kernerl 2.4, the size of Kernel Stack is 8K. Now, in kernel 2.6, it could be 4K, if you enable it in compilaiton time.

    Why will kernel spend effort to support such a feature when most of PC have more than 1 Gigabyte memonry. I think it has something to do with the C10K probleum; C10K means Concurrent 10 Thousand Processes(Threads). considering a system with more thant 10 thousand processes, such as a WEB server, the save of 4K in every kernel stack will become 4K * 10 K = 40 M tatal save of memory, which is a big deal!

    How is it possible to achieve that? originally the kernel mode stack is also used in Exception and Interrupt handling, but Exception and Interrupt handling is not specific to any process. so in 2.6, Interrupt and Exception will have their own Stack for each CPU. Kernel stack is only used by process in the kernel mode. so the acutal kernel stack did not become small.
    2.4     8K Stack shared between process kernel mode, Exception, Interrupt.
    v.s    
    2.6     4K Stack specific for process kernel mode Stack
            4K Stack specific for Exception Stack
            4K Stack specific for Interrupt Stack
    Besides this, in 8K stack of 2.4, task_struct is at the bottom of stack, which may cost about 1K, in 4K stack of 2.6, only thread_info is at the bottom of stack, the task_struct is put into a per-CPU data structre, thread_info is only about 50 bytes.

    posted on 2008-08-01 09:26 InPractice 閱讀(1018) 評(píng)論(0)  編輯  收藏


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 国产偷v国产偷v亚洲高清| h视频在线观看免费完整版| 亚洲国产精品无码久久青草 | 亚洲av午夜国产精品无码中文字| 3344永久在线观看视频免费首页| 亚洲av成人无码久久精品| 免费91麻豆精品国产自产在线观看| 亚洲人成人77777网站| a级日本高清免费看| 亚洲综合自拍成人| 日本高清在线免费| 亚洲国产aⅴ成人精品无吗| 在线免费观看色片| 亚欧乱色国产精品免费视频| 亚洲中文字幕无码永久在线| 99视频免费播放| 亚洲sss综合天堂久久久| 国产精品视_精品国产免费| 免费人成视频在线观看免费| 亚洲色成人中文字幕网站| 2019中文字幕在线电影免费| 中文字幕精品三区无码亚洲| 免费人成年激情视频在线观看| 香蕉免费看一区二区三区| 亚洲最新黄色网址| 无码欧精品亚洲日韩一区夜夜嗨 | 在线观看免费大黄网站| 美女裸免费观看网站| 亚洲一区二区三区香蕉| 国产精品免费网站| 小说专区亚洲春色校园| 无码乱人伦一区二区亚洲| 在线观看免费成人| 你是我的城池营垒免费看 | 亚洲欧美自偷自拍另类视| 亚洲一级特黄无码片| 人成午夜免费视频在线观看| 免费看一级一级人妻片| 亚洲性69影院在线观看| 亚洲精品乱码久久久久久不卡| 日本人的色道免费网站|