Module Name: src Committed By: msaitoh Date: Wed Nov 22 02:20:22 UTC 2017
Modified Files: src/sys/kern: kern_softint.c Log Message: Increase the size of softint's data to prevent panic on big machine. Nowadays, some device drivers and some pseudo interfaces allocate a lot of softints. The resource size for softints are static and it panics when it execeed the limit. It can be dynamically resized. Untill dynamically resizing is implemented, increase softint_bytes from 8192 to 32768. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/kern/kern_softint.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_softint.c diff -u src/sys/kern/kern_softint.c:1.43 src/sys/kern/kern_softint.c:1.44 --- src/sys/kern/kern_softint.c:1.43 Mon Jul 4 04:20:14 2016 +++ src/sys/kern/kern_softint.c Wed Nov 22 02:20:21 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_softint.c,v 1.43 2016/07/04 04:20:14 knakahara Exp $ */ +/* $NetBSD: kern_softint.c,v 1.44 2017/11/22 02:20:21 msaitoh Exp $ */ /*- * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc. @@ -170,7 +170,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.43 2016/07/04 04:20:14 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.44 2017/11/22 02:20:21 msaitoh Exp $"); #include <sys/param.h> #include <sys/proc.h> @@ -217,7 +217,7 @@ typedef struct softcpu { static void softint_thread(void *); -u_int softint_bytes = 8192; +u_int softint_bytes = 32768; u_int softint_timing; static u_int softint_max; static kmutex_t softint_lock;