December 2008 Archives

Kernel Log Buffer Size

| No Comments

I’ve been working on some kernel code recently. The default log buffer size is only 4 KB so it doesn’t take much before you lose messages (not that I recommend you use logging for debugging purposes, but there are some times when it’s necessary). Anyway to increase it, you need to set the msgbuf boot argument. For example, in Terminal type this:

sudo nvram boot-args=msgbuf=65536