Re: phk malloc, was (Re: ptmalloc2)

看板DFBSD_kernel作者時間21年前 (2005/02/24 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串36/57 (看更多)
On Thu, 24 Feb 2005 09:14:56 +0800, David Xu <davidxu@viatech.com.cn> wrote: > You will have an unusable machine if you turn on overcommit, > when memory is about to be exhausted, any code not written by you > will crash because they don't check if malloc will fail! probably the reason for the description for the vm.overcommit_memory sysctl 1 - Always overcommit. Appropriate for some scientific applications. Quite OT but I found the original announcement for the overcommit accounting http://www.uwsg.iu.edu/hypermail/linux/kernel/0207.2/1196.html which gives a bit of background of its purpose. > Any program and system utilities will core dump or be locked there > if memory is exhausted, in the machine, your code only occupies > 1/10000 or less, making 1/10000 code to be overcommit aware does not > make sense. > > Regards, > David Xu > > -- Eduardo Tongson http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6033AC66 Key fingerprint : 0A86 79BA 3EC1 4B34 0D65 0E05 F9EC 98A2 6033 AC66
文章代碼(AID): #127JLa00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #127JLa00 (DFBSD_kernel)