Hello,
I currently use an image disk built by nanobsd to power a custom firewall at work but I have a small problem (more like a nuisance).
We run this image on two hardware and until now I managed to keep one kernel config for both meaning that you just need to write the image on the flash disk and you are ready to go BUT after some tests I had to create two different kernel config because the HZ need to be different for the two hardware (the soekris works better with 400 where the other bigger router prefer the standard 1000) so after all this talk my question is:
is there any way I can adjust the HZ while booting the kernel and adapt to the hardware it runs on ?
A pretty naive version of what I wish could be this:
except that kern.hz is only writable during boot :\
I still hope there is something letting me use the same firmware for both boxes.
I currently use an image disk built by nanobsd to power a custom firewall at work but I have a small problem (more like a nuisance).
We run this image on two hardware and until now I managed to keep one kernel config for both meaning that you just need to write the image on the flash disk and you are ready to go BUT after some tests I had to create two different kernel config because the HZ need to be different for the two hardware (the soekris works better with 400 where the other bigger router prefer the standard 1000) so after all this talk my question is:
is there any way I can adjust the HZ while booting the kernel and adapt to the hardware it runs on ?
A pretty naive version of what I wish could be this:
Code:
if soekris
sysctl -w kern.hz=400
else
sysctl -w kernk.hz=1000
end
except that kern.hz is only writable during boot :\
I still hope there is something letting me use the same firmware for both boxes.