Reloading the kernel without rebooting?

In linux there is kexec which can reload the kernel without requiring a reboot. AFAIK there is something similar in Solaris.
Is this feature available in FreeBSD?
 
I remember NetBSD having a /dev/reload driver which would reboot using a kernel image written to it. But when it comes to rebooting the kernel without the userland taking notice, that is something that I only heard of from some serious big iron.

Having such a thing in FreeBSD would be great, I think, but not easily done. You can have something like that using [cmd=]cryopid[/cmd] in linux, but porting that to FreeBSD is not straightforward (I tried).
 
SirDice said:
What's wrong with the occasional reboot?

Nothing at all. The topic just came up for discussion in another conversation I had. Wanted to know if it was possible. I have no problem rebooting once every half-year or so.
 
As far as I understand this is a feature supported at the processor level. But my question is: what is the purpose? Sometimes reboots are required just to re-initialize devices (e.g., a locked dvd) and having a kernel to restart from zero without having to set up devices is, in my opinion, quite dangerous.
Can anybody explain me what is the application of such a feature apart for software developers?
 
fluca1978 said:
Can anybody explain me what is the application of such a feature apart for software developers?

Availability mainly. A reboot will cause service interruption therefore features like this "minimize" this kind of problem.

IMHO this is BS. If someone really needs high availability then there are many ways to achieve it. After all, occasional reboots are always good since they show us if a system can reboot or not.

I used to work in a large corp (I will not mention the name) where they were afraid to shutdown the mainframe during DR tests because they didn't know if it will boot again ;)
 
Back
Top