DragonFly bugs List (threaded) for 2008-01
DragonFly BSD
DragonFly bugs List (threaded) for 2008-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue911] panic on kldload


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Fri, 11 Jan 2008 02:47:39 +0100

Sepherosa Ziehau wrote:
Sepherosa Ziehau <sepherosa@gmail.com> added the comment:

On Jan 11, 2008 9:34 AM, Simon 'corecode' Schubert
<corecode@fs.ei.tum.de> wrote:
Sepherosa Ziehau wrote:
I don't think it's the problem of our M_WAITOK implementation.  You
could change the caller to use other kmalloc flag so that the system
will not panic; how to properly handle kmalloc failure in this case
may be difficult.
I realize this.  However, we should avoid panicing if possible.  So why
not print a warning ("allocated more than the limit") and continue?  If
What do you mean by "continue" here?

Just allocate some memory, even if you're over the limit. It's not that we ran out of memory, it's just that we went over the (artificial) limit.


cheers
  simon




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