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

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

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

    隨筆 - 53, 文章 - 0, 評論 - 3, 引用 - 0
    數據加載中……

    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 閱讀(1017) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 国产hs免费高清在线观看| 亚洲成a∧人片在线观看无码| 国内永久免费crm系统z在线| 亚洲熟女精品中文字幕| 亚洲人成在线播放网站岛国| 成人午夜亚洲精品无码网站| 国产乱色精品成人免费视频 | 美女露隐私全部免费直播| 黄色a级片免费看| 亚洲综合色一区二区三区小说| 国产美女在线精品免费观看| 久久免费观看国产精品88av| 在线视频网址免费播放| 亚洲成人动漫在线观看| 久久久久久久综合日本亚洲| 亚洲国产成人久久精品99 | 最近中文字幕高清免费中文字幕mv| 亚洲香蕉久久一区二区三区四区| 免费一级做a爰片性色毛片| 国产精品久久久久免费a∨| 91精品视频在线免费观看| 中文字幕无码一区二区免费| 国产免费牲交视频免费播放 | 自拍偷自拍亚洲精品偷一| 亚洲精品天堂在线观看| 国内精品久久久久久久亚洲| 免费午夜爽爽爽WWW视频十八禁| 暖暖免费在线中文日本| 成人黄网站片免费视频| 中文字幕免费在线看| 免费在线观影网站| 中文字幕在线免费看| 日本亚洲欧洲免费天堂午夜看片女人员| 亚洲AV男人的天堂在线观看| 亚洲日韩欧洲无码av夜夜摸| 久久亚洲中文字幕精品一区四| 99久久免费精品国产72精品九九| 国产免费一区二区三区不卡| 久久成人a毛片免费观看网站| 免费一级全黄少妇性色生活片| 亚洲最大在线视频|