Users browsing this thread: 1 Guest(s)
venam
Administrators
Hello fellow nixers,
In this thread we'll discuss an old myth that we've actually never brought as a discussion on the forums yet: To reboot or not to reboot.

It is often said that rebooting to solve an issue is the equivalent of giving up. It might be the norm on some other operating systems but on Unix-like OS with users that should intimately know their machine it's regarded as heresy.

having a high uptime is looked at as an epic tale. A show off of stability and rigidness.

https://hardware.slashdot.org/story/13/0...-of-uptime
https://web.archive.org/web/201806232200...cs/uptimes
https://www.infoworld.com/article/262344...boxes.html

[Image: devotion_to_duty.png]

There's even a command uprecords for keeping track of reliability.

However, sometimes, especially when the machine runs as a development one and not a server, it seems mandatory to reboot. Let's say for a kernel upgrade or full system upgrade. Or init system upgrade. Or hardware upgrade. Or even in some cases some kernel modules update (if the system doesn't have a dynamic way to load those).

Still even when updating the kernel some OS, for example Linux, allow to update/patch the kernel without rebooting via features such as kexec.

So here we go:
Nixers, what's your opinion on this topic of rebooting. Do you reboot often, on which type of machines. Do you have any special tricks, any story to share about a time you rebooted and it was worthless, or a time when you actually never found out why the issue was happening in the first place.



My take on the topic. I usually avoid rebooting unless there's a kernel update. I have uptimes going around a 100 days in a row.
On my server I actually almost never reboot.

Code:
00:27:49 up 391 days, 10:18,  1 user,  load average: 0.00, 0.00, 0.00
Code:
00:42:28 up 359 days, 11:43,  1 user,  load average: 0.08, 0.03, 0.05
So on both of my two servers I haven't rebooted in around a year.

When the service is running fine I think there's not much to worry about unless there's an important security update to do on the kernel.

I reboot most often, on my home machine and work dev machine, when I run into the kind of issues that make me pull my hair off and after trying everything else and that didn't work.

My latest story was about a card reader that wasn't being recognized by the official proprietary driver. For those who have no clue about card readers on Unix, they work through a daemon called pcscd that will match the appropriate driver (/usr/lib/pcsc/drivers/ for instance) depending on the device vendor ID and product ID. There are some drivers that are open that can come from the package manager or along with other tools such as opensc.
In all cases, the reader I wanted to try wasn't recognized by pcscd even after following all I thought was right. So I gave up, thought something might have been messed up in udev or something that I didn't caught.

But still after rebooting there was nothing.
Oh no the uptime went away!

Digging further in the issue. Checking dmesg for the venderID and productID that was being reported and trying to match it with the Info.plist that should contain what points to the proprietary driver, I found out that the IDs aren't even listed. I tried adding them but in vain, the driver doesn't support the device. Apparently they forgot to update their Linux driver.

So I ended up using another card reader (acr38) that's widely supported.

Reboot lesson learned.


So what do you think about rebooting and how frequently it should be done.


Messages In This Thread
To reboot or not to reboot - by venam - 18-04-2019, 01:53 AM
RE: To reboot or not to reboot - by biniar - 18-04-2019, 03:11 AM
RE: To reboot or not to reboot - by pkal - 18-04-2019, 04:42 AM
RE: To reboot or not to reboot - by jkl - 18-04-2019, 05:09 AM
RE: To reboot or not to reboot - by z3bra - 18-04-2019, 09:14 AM
RE: To reboot or not to reboot - by venam - 18-04-2019, 09:34 AM
RE: To reboot or not to reboot - by pkal - 18-04-2019, 01:32 PM
RE: To reboot or not to reboot - by movq - 18-04-2019, 01:59 PM
RE: To reboot or not to reboot - by prx* - 19-04-2019, 04:30 AM
RE: To reboot or not to reboot - by xero - 19-04-2019, 03:44 PM
RE: To reboot or not to reboot - by venam - 21-04-2019, 05:47 AM
RE: To reboot or not to reboot - by JoshuaRLi - 21-04-2019, 06:19 PM
RE: To reboot or not to reboot - by z3bra - 22-04-2019, 11:31 AM
RE: To reboot or not to reboot - by Dworin - 08-05-2019, 05:07 AM
RE: To reboot or not to reboot - by Deathbox - 19-07-2019, 07:31 AM