Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2008 15:55:58 -0800
From:      "Bharma Ji" <bharmaji@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Graceful failure instead of panicking in kmem_malloc
Message-ID:  <67beabb0801081555v4ca3b729x294322fa724afa09@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
In FreeBSD 6_2, if kmem_malloc is unable to find space it panics. The
relevant code is in vm_kern.c
  if ((flags & M_NOWAIT) == 0)
                         panic("kmem_malloc(%ld): kmem_map too small: %ld
total allocated",
                                (long)size, (long)map->size);

Is there any way to make the system log and then gracefully shut off instead
of panicking?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?67beabb0801081555v4ca3b729x294322fa724afa09>