__uc_malloc

Denys Vlasenko vda.linux at googlemail.com
Mon Jun 9 13:57:46 UTC 2008


On Monday 09 June 2008 12:55, Bernd Schmidt wrote:
> > IOW: crypt() which uses static buffers is as likely
> > to die/lock up on OOMing machine as malloc() based one.
> 
> Incorrect on some systems, notably nommu which is quite a likely setup 
> for uClibc.  Also, an order-5 malloc on nommu is much more likely to 
> fail than taking an order-0 page fault on mmu.  A 70k allocation _will_ 
> fail occasionally, even on systems that have plenty of memory free.

In this situation, execv'ing of an application with additional 70k
of static buffers will fail even more readily, right? Because
you do not require two smaller contiguous areas
(N kb for app and 70k for buffer) but one contiguous area of N+70 kb.
--
vda



More information about the uClibc mailing list