Re: phk malloc, was (Re: ptmalloc2)

看板DFBSD_kernel作者時間21年前 (2005/02/24 09:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串35/57 (看更多)
Dan Melomedman wrote: > Bill Hacker wrote: > >>If the 'email proxy in question' is that fragile - your statement would >>appear to be true. > > > It's only fragile because the OS doesn't guarantee preallocated memory. > That's all. Anyway, I've made the decision to only run software like > this on Linux. Linux actually has the system-wide overcommit switch through > 'sysctl'. I wish I could switch it on and off per process through an > environment variable instead. Oh well, can't have it all. 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! 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
文章代碼(AID): #127Iwc00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #127Iwc00 (DFBSD_kernel)