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

Peter Holm peter at holm.cc
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 13:50:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Peter Holm
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
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


	
>Description:
	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:
	http://www.holm.cc/stress/log/cons58.html
	http://www.holm.cc/stress/log/cons59.html
	http://www.holm.cc/stress/log/cons60.html

	Details of the current problem is at
	http://www.holm.cc/stress/log/cons61.html
>How-To-Repeat:
kse_create.c:
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;
}

plus

while true;do
   date
   ./kse_create&
   ./kse_create&
   wait;wait
done

>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list