huge ktr buffer

Andriy Gapon avg at FreeBSD.org
Thu Dec 6 15:19:08 UTC 2012


So I configured a kernel with the following option:
options       KTR_ENTRIES="(1024UL*1024)"
then booted the kernel and did
$ sysctl debug.ktr.clear=1
and got an insta-reboot.

No panic, nothing, just a reset.

I suspect that the huge static buffer resulting from the above option could be a
cause.  But I would like to understand the details, if possible.

Also, perhaps ktr could be a little bit more sophisticated with its buffer than
just using a static array.

-- 
Andriy Gapon


More information about the freebsd-hackers mailing list