Editing 1495: Hard Reboot

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
  
 
==Explanation==
 
==Explanation==
{{w|Paging|Swap space}} is an area of a computer's hard drive reserved for use when the computer runs out of RAM. Ideally, RAM + SWAP >= MAX, where MAX is the amount of memory the computer will ever try to use at the same time. However, some (broken) programs may keep requesting memory from the system until computer runs out of resources (a {{w|Memory leak|memory leak}}), or the system may be misconfigured to run more and more programs simultaneously. Rebooting the computer will empty the RAM and swap space so resources can be reallocated, but this only temporarily alleviates the underlying issue. Determining the root cause of the problem is often nontrivial.
+
This comic is about using a simple and unrelated trick to fix a problem.
  
It would take Randall anywhere between 1 and 10 hours to figure out why the server is running out of swap space, and possibly more to actually fix the problem. Alternatively, Randall could just take 5 minutes and plug the server into a light timer. This attitude to problem solving is in contrast to the attitude shown in [[974: The General Problem]].
+
{{w|Paging|Swap space}} is a reserved area of a computer's hard drive reserved for use when the computer runs out of RAM.  Ideally, RAM + SWAP <= MAX, where MAX is the amount of memory the computer will ever try to use at the same time. However, some [broken] programs may keep requesting memory from the system until computer runs out of resources. Alternatively, system may be misconfigured to run more and more programs simultaneously. Rebooting the computer will empty the RAM and swap space so resources can be reallocated, but this only temporarily alleviates the underlying issue. Determining the root cause of the problem is often nontrivial.
  
Timers [http://www.diytrade.com/china/pd/10081499/Analog_Electric_Light_on_off_Timer_Dual_Outlet_Switch.html like the one in the comic] typically have four switches or notches per hour, so using the timer would replace an unpredictable and indefinite loss of service with a regular 15 minute downtime event once a day. Also, it can be scheduled during, say, the middle of the night when most users are sleeping to minimize disruption.
+
It would take up to 10 hours to figure out why the server is running out of swap space and fix the problem.  Alternatively, Randall could just take 5 minutes and plug the server into a light timer.
  
The correct method of scheduling a regular reboot would be using a ''cron'' task, but perhaps the server is "crashing" in such a dramatic manner that ''cron,'' or ''shutdown,'' or ''init'' stops working. The comic title alludes to this, in that a "hard" reboot scheduled with an analog timer is more guaranteed to work than a "soft" one scheduled with ''cron.''
+
Timers [http://www.diytrade.com/china/pd/10081499/Analog_Electric_Light_on_off_Timer_Dual_Outlet_Switch.html like the one in the comic] typically have four switches or notches per hour, so using the timer would replace an unpredictable and indefinite loss of service with a regular 15 minute downtime event once a day.  Also, it can be scheduled during, say, the middle of the night when most users are sleeping to minimize disruption.
  
If a memory leak is not present, the problem might be fixable by simply increasing swap space; however, if there is a more complex underlying issue, this is the first step along the path of 10 hours of troubleshooting. As a general stereotype, the type of person who has a home server is probably also the kind of person who would start by 'just' increasing the swap size, and before they know it has spent 10 hours completely engrossed in the challenge of fixing the problem. (See [[349: Success]])
+
The correct method of scheduling a regular reboot would be using a ''cron'' task, but perhaps the server is "crashing" in such a dramatic manner that ''cron,'' or ''shutdown,'' or ''init'' stops working.  The comic title alludes to this, in that a "hard" reboot scheduled with an analog timer is more guaranteed to work than a "soft" one scheduled with ''cron.''
  
The subtitle reads "Why everything I have is broken". This indicates that Randall frequently finds himself doing non-standard {{w|Life hacking|workarounds}} that temporarily solve a problem but may ultimately damage the system to the point of becoming nonfunctional. Indeed, a kitchen/light timer used to cut power to a server overnight may affect the server's performance if it is in the middle of a process when the reboot happens. Alternatively, this can be interpreted to mean that everything Randall has is broken and held together by metaphorical duct tape.
+
The title text's first sentence refers to situations where the given solution to a problem is just the original problem rephrased to sound like a solution.  It may also refer to bug trackers, where someone found out and posted what causes the issue, but the bug is marked as "Unresolved," "Waiting," or "Will not fix."
  
The title text's first sentence reveals that Randall is aware that looking further for a fix is futile: The problem is caused by a bug which has already been analyzed and is known to be triggered by using the system in the very way Randall is using it. He may get around the bug by changing what the system does, but then it would not provide the services he needs anymore. It may also refer to bug trackers, where someone found out and posted what causes the issue, but the bug is marked as "Unresolved," "Waiting," or "Will not fix."
+
The title text's second sentence is about the human tendency to wait on someone else to fix a problem rather than doing it yourself.  Since everyone is waiting on someone else to do it, such problems tend to never be fixed, hence the solution of "wait[ing] a few years until I don't want that combination of things anymore."
  
It is not clear why the title text refers to a kitchen timer while the comic itself refers to a light timer. It might be a small error, or it might be that Randall just considers these to be two synonymous terms. Typically, however, a kitchen timer refers to an alarm that will go off, rather than a timer that cuts power to a device like a light timer.
+
==Transcript==
 +
''A section of a screen with a white-on-black color scheme is shown. The screen is covered in lines of illegible text.''
  
The title text's second sentence refers to the fact that operating system bugs take a long time to be solved, hence the solution of "wait[ing] a few years until I don't want that combination of things anymore." Humor in that sentence is found in the fact that readers will anticipate "wait a few years until..." would be followed by "the bug is fixed", however, Randall is indicating that usually his needs change before the bugs get fixed, or that he has very low confidence in that the bug will be fixed in time, if ever.
+
Figuring out why my home server keeps running out of swap space and crashing: 1-10 hours
  
==Transcript==
+
''Next to the section of the screen is a timer plugged into a power port with cable running off to the side.''
:[Inside a frame there are two pictures. To the left there is a section of a computer screen with white text on a black background. The screen is covered in lines of illegible text.]
 
:[Above the screen it says:]
 
:Figuring out why my home server keeps running out of swap space and crashing:
 
:[Below the screen it says:]
 
:1-10 hours
 
  
:[To the right there is a frame with a drawing of a timer plugged into a power port with cable running off to the side.]
+
Plugging it into a light timer so it reboots every 24 hours: 5 minutes
:[Above the frame it says:]
 
:Plugging it into a light timer so it reboots every 24 hours:
 
:[Below the frame it says:]
 
:5 minutes
 
  
:[Below the main frame.]
+
'''Why everything I have is broken'''
:'''Why everything I have is broken'''
 
  
 
{{comic discussion}}
 
{{comic discussion}}
[[Category:Computers‏‎]]
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)