tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel memory allocation failures



On Dec 11,  6:44am, dholland-tech%netbsd.org@localhost (David Holland) wrote:
-- Subject: Re: kernel memory allocation failures

|  > how about instead we fix the kmem_alloc() implementation to match
|  > the man page?  that seems much more practical to me.  adding
|  > failure checks and recovery code to the thousands of *alloc() calls
|  > in the kernel would be a vast amount of work for very little
|  > benefit.  an attempt to allocate an amount of memory large enough
|  > that it can never succeed sounds like a bug to me, and it seems
|  > better to fix any such bugs rather than add a vast amount of mostly
|  > useless error handling code in hopes of papering over them.
| 
| concur

I agree if it is feasible. It does not look easy to do.

christos


Home | Main Index | Thread Index | Old Index