kern/68987: panic: kmem_malloc(163840): kmem_map too small

Peter Holm peter at
Tue Jul 13 06:50:19 PDT 2004

>Number:         68987
>Category:       kern
>Synopsis:       panic: kmem_malloc(163840): kmem_map too small
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 13:50:19 GMT 2004
>Originator:     Peter Holm
>Release:        FreeBSD 5.2-CURRENT i386
System: FreeBSD current.osted.lan 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue Jul 13 11:04:18 CEST 2004 pho at current.osted.lan:/usr/src/sys/i386/compile/PHO i386

	Stress test of core dump via kse_create seems to create the problem, with
	"define PREEMPTION" removed from sys/i386/include/param.h.

	With PREEMPTION defined I get lock ups or these problems:

	Details of the current problem is at
int main(int argc, char **argv)
        struct kse_mailbox mbx;
        int newgroup = 1;
        int r;
        int i;

        bzero(&mbx, sizeof(mbx));
        mbx.km_version = 1912;
        for (i = 0; i < 499; i++) {
                r = kse_create(&mbx, newgroup);
                if (r == -1)
                        err(1, "kse_create, %d", i);
        return 0;


while true;do




More information about the freebsd-bugs mailing list