From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tru64@sxu.edu Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: hard vs. soft reboot Date: Thu, 20 Feb 2003 10:32:28 -0600 (CST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200302201632.KAA0000014902@alpha4.sxu.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1045759057 25295 80.91.224.249 (20 Feb 2003 16:37:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 16:37:37 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18lthV-0006ZP-00 for ; Thu, 20 Feb 2003 17:37:34 +0100 Original-Received: (qmail 14332 invoked by uid 5); 20 Feb 2003 16:37:29 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14323 invoked by uid 49493); 20 Feb 2003 16:37:29 -0000 Original-Received: from tru64@sxu.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(1.9/5.0):. Processed in 0.457998 secs); 20 Feb 2003 16:37:29 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 20 Feb 2003 16:37:28 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAM00MKT8UF19@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 20 Feb 2003 11:37:28 -0500 (EST) Original-Received: from alpha4.sxu.edu (alpha4.sxu.edu [64.107.80.38]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAM001BO8U8MY@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 20 Feb 2003 11:37:21 -0500 (EST) Original-Received: by alpha4.sxu.edu id KAA0000014902; Thu, 20 Feb 2003 10:32:28 -0600 (CST) Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:3395 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3395 Thanks to Bluejay Adametz, Selden E Ball Jr, Corinne Haesaerts, Nick Hill, Bruce Hines, Jeffrey Hummel, Jim Kurtenbach, Tom Linden, Daniel Pettersson, David Rabjohns, Chris Ruhnke, and many others. Response to my question was swift, vocal, and highly entertaining. A representative sample of the feedback I received: When UNIX starts, it is impossible for a resident process that may have been previously running to still have any of the ethernet ports. With regards to physical ports, I would be extremely surprised to find out they were not initialized by the kernel during startup. Whatever type of reboot you do there is no carry over of threads and port allocations. I question why you should need to reboot monthly, I have run systems with uptimes of well over a year between reboots and there are no "ghost threads" or other such problems. UNIX is quite capable of running multi-threaded applications correctly. Turning off power is only needed if the hardware locks up, and that is very, very rare. On the other hand, hardware such as hard drives and fans break down faster when power cycling them. Some devices may need to be powered down to be reset, this is sometimes the case with scsi contollers. But I don't know why you should perform the reboots in the first place. You are not wrong. I believe the SRM code on the ES40 will also perform an init whenever shutdown -h or shutdown -r is run. This would clear hardware registers and such. A powercycle will guarantee that your HARDWARE is reset to power-on status. There is nothing in the SOFTWARE that is affected by a powercycle. In most cases, anything at the software level that is cleared by a reboot is cleared by a "soft" reboot. Software, such as Java, cannot preserve ports across a boot unless they are an artifact of a hardware setting -- e.g. conceivably a "smart" network interface which makes/breaks/preserves connections via on-board firmware code. a. UNIX systems are now doing many things, quite well, that they were not originally intended to do (SMP, LANs, SANs, just to name a few). b. A thread is a run-time operating system construct. When the operating system goes away (reboots), it's gone. Period. c. I've never seen any sign of "ghost threads", much less seen any problems as a result of them. And I have systems that run, literally, for years at a time between reboots. d. I have seen cases where some odd bit of hardware does not reset properly during a soft boot, but this is rare and usually indicates a hardware problem. Setting the console variable BOOT_RESET to ON would usually workaround this sort of problem. Bottom line: not only do I think a hard boot is not necessary, I don't think a soft boot is either. A reboot really does stop all images and since the network stacks are programs. There should not be any open ports, ghosts, poltergheists, etc. In my opinion, those that recommend a boot have been running programs that do not free memory properly and the resultant memory leaks consume the system resources, forcing a reboot. Actually stopping the misbehaving program and restarting it would have the same effect. A reboot, however works everytime and is faster than really finding the problem/reason requiring a reboot.