This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about madvise(DONTNEED) in glibc malloc


Hi!
> > If vrange can fail to "get back" the range,
> > this makes it a lot harder to use robustly.
> 
> Any linux syscall _can_ return ENOMEM if system has really no memory.
> but we've never seen practically because kernel handle memory starvation enough
> clever.

Unless somebody has set ulimit for memory, you can actually see pretty
weird crashes and bugs in that case.

-- 
Cyril Hrubis
chrubis@suse.cz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]