Custom Build of 12.0-Stable - kern.cam.sa.0.maxio problem

sheepdot

Dabbler
Joined
Aug 10, 2013
Messages
31
Hi everyone,

I pulled TrueNAS 12.0-stable and edited freenas/_BE/os/sys/sys/param.h so that I could update MAXPHYS to 1024*1024. I have done this without issue in the past for FreeNAS 11.
I built and installed, but when I run sysctl kern.cam, it still shows kern.cam.sa.0.maxio: 131072 (the original value, 128*1024).

uname-a confirms that I am running the version I built. I'm not sure what to look for at this point to hunt down the problem. Any advice would be appreciated.

Thanks.
 
Last edited:

sheepdot

Dabbler
Joined
Aug 10, 2013
Messages
31
For anyone who runs into the same problem: MAXPHYS was already set at 1024*1024 via an options file. But apparently some people had problems with LSI HBAs freaking out, and MAXPHYS was thought to be the culprit. So they added hw.mps.max_io_pages = 32 as a tunable, which forces the maxio value back down to 131072. I changed it to 256 and can now access my tape drive again.

I'll just hope it doesn't cause problems with anything else.
 
Top