Date: Fri, 30 Nov 2001 16:21:30 -0800 (PST) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_mbuf.c src/sys/vm vm_kern.c Message-ID: <200112010021.fB10LUW84726@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
luigi 2001/11/30 16:21:30 PST Modified files: sys/kern subr_mbuf.c sys/vm vm_kern.c Log: vm/vm_kern.c: rate limit (to once per second) diagnostic printf when you run out of mbuf address space. kern/subr_mbuf.c: print a warning message when mb_alloc fails, again rate-limited to at most once per second. This covers other cases of mbuf allocation failures. Probably it also overlaps the one handled in vm/vm_kern.c, so maybe the latter should go away. This warning will let us gradually remove the printf that are scattered across most network drivers to report mbuf allocation failures. Those are potentially dangerous, in that they are not rate-limited and can easily cause systems to panic. Unless there is disagreement (which does not seem to be the case judging from the discussion on -net so far), and because this is sort of a safety bugfix, I plan to commit a similar change to STABLE during the weekend (it affects kern/uipc_mbuf.c there). Discussed-with: jlemon, silby and -net Revision Changes Path 1.11 +14 -1 src/sys/kern/subr_mbuf.c 1.74 +9 -3 src/sys/vm/vm_kern.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112010021.fB10LUW84726>