<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)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲天堂在线视频| 免费无码不卡视频在线观看| 免费一区二区三区在线视频| 日本视频免费观看| 免费久久精品国产片香蕉| 亚洲精品成人无码中文毛片不卡| 亚洲国产人成在线观看69网站| 亚洲电影唐人社一区二区| 亚洲国产美女精品久久久| 在线免费观看伊人三级电影| 免费下载成人电影| 亚洲伊人成无码综合网| jizz中国免费| 欧洲精品免费一区二区三区 | 亚洲欧美国产精品专区久久| 岛国岛国免费V片在线观看| 免费看a级黄色片| 337P日本欧洲亚洲大胆精品 | 亚洲欧美成人av在线观看| 我要看免费的毛片| 亚洲狠狠婷婷综合久久久久| 在线观看的免费网站无遮挡| 全部免费毛片免费播放| 国产特黄一级一片免费| 亚洲国产综合无码一区二区二三区| 精品亚洲成在人线AV无码| 久久er国产精品免费观看8| 亚洲AV永久无码精品水牛影视 | 一个人免费视频在线观看www | 成全高清在线观看免费| 亚洲高清视频在线播放| 99在线免费观看| 亚洲国产福利精品一区二区| 久久国产精品免费视频| 国产亚洲大尺度无码无码专线| 国产成人亚洲精品91专区高清 | 亚洲视频免费播放| 亚洲色图在线播放| 成人黄动漫画免费网站视频 | 亚洲视频在线免费观看| 成人国产mv免费视频|