Re: trap_pfault growstack vs vm_fault ordering?

看板DFBSD_kernel作者時間16年前 (2010/03/02 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
:Hi, : :Currently trap_pfault for each of the three DragonFly platforms :attempts to grow the stack region (via growstack()) before attempting :vm_fault. For any faults not in stack growth regions, this will result :in lots of work (3 crit_enter/crit_exit pairs, a number of zone :allocations). Would it be worth moving the stack growth call into :vm_fault, after the vm_map_lookup call? You're absolutely right, plus your patch allows us to get rid of some machine-dependend code too. I'll incorporate it, thanks! -Matt
文章代碼(AID): #1BZ5L14G (DFBSD_kernel)
文章代碼(AID): #1BZ5L14G (DFBSD_kernel)