PDA

View Full Version : Better to sleep or shutdown?




strausd
Jul 30, 2010, 06:44 PM
I've heard a few different point of views one this. I've heard its better to shut down because you won't be using energy then and not as much stress on component. I have also heard its better to sleep because of the energy required for boot and when you shut down and start up, the heating and cooling of the components make the contract and expand which will put stress on them.

Power isn't one of my major concern, my major concern is which will make a Mac Pro last longer. With an SSD as the boot drive, it won't need as much power as a mechanical drive so I don't need to worry about that.

Does anyone know which is better? Also, which do you prefer?



SatyMahajan
Jul 30, 2010, 08:25 PM
I've heard a few different point of views one this. I've heard its better to shut down because you won't be using energy then and not as much stress on component. I have also heard its better to sleep because of the energy required for boot and when you shut down and start up, the heating and cooling of the components make the contract and expand which will put stress on them.

Power isn't one of my major concern, my major concern is which will make a Mac Pro last longer. With an SSD as the boot drive, it won't need as much power as a mechanical drive so I don't need to worry about that.

Does anyone know which is better? Also, which do you prefer?

Option 3 - On 24/7

:D

Before that, I preferred sleeping, so I wouldn't have to wait through the boot process.

dockingbay94
Jul 30, 2010, 08:33 PM
I've heard a few different point of views one this. I've heard its better to shut down because you won't be using energy then and not as much stress on component. I have also heard its better to sleep because of the energy required for boot and when you shut down and start up, the heating and cooling of the components make the contract and expand which will put stress on them.

Power isn't one of my major concern, my major concern is which will make a Mac Pro last longer. With an SSD as the boot drive, it won't need as much power as a mechanical drive so I don't need to worry about that.

Does anyone know which is better? Also, which do you prefer?

I never even put my MBP to sleep. It's always on using InsomniaX. Regardless it doesn't really matter what computer it is, just do whatever works best for you. Sleep should be fine. It'll wake up in an instant, but if you aren't going to use it for an extended period of time then shut it down.

Wild-Bill
Jul 30, 2010, 09:02 PM
Mine is set to sleep after 3 hours of inactivity. The screen saver comes on at 25, and the display shuts down after 35. Drives are set in Energy Saver to shut off when not in use UNLESS I am using Logic, then that gets unchecked.

Never had a problem with sleep. Well..... back in the Leopard days sometimes it wouldn't sleep when programmed to (insomnia) but that really hasn't happened w/ Snow Leopard.

bedifferent
Jul 30, 2010, 09:17 PM
The general rule back in the day for energy efficiency has been to put the system to sleep, including HDD's/displays/etc. Booting on a daily basis consumes more energy than sleeping the system. Of course this may have changed as systems have become more energy efficient.

As for lasting longer, neither will negatively impact your system. If that's your primary concern, you can do with it as you wish, your hardware will be fine. Booting though may help performance as you typically clear caches and such. Also use maintenance programs such as Onyx or CleanMyMac to maintain system file structure, clean caches and any extraneous software. Hardware wise, you'll be fine.

Freis968
Jul 30, 2010, 10:47 PM
I never sleep mine, always shut it down.

Detrius
Jul 30, 2010, 11:08 PM
Booting though may help performance as you typically clear caches and such.

It also hurts performance because you have to launch programs from the disk, and no matter how fast your drive is, it's not as fast as already having the program open in RAM.


Furthermore, I've never understood this blind following of the notion that clearing caches improves performance. The entire reason for the existence of the cache is to improve performance. This concept is so fundamental that it's even implemented in hardware. There's a tiny cache on the processor close to the registers (L1). There's an additional cache outside the core (L2). There's often now even a larger cache shared by all the cores (L3). In addition, inactive RAM is used to cache data from the hard drive. Hard drives themselves even have a cache onboard, nowadays. Having your own DNS server reduces latencies because it caches DNS requests. Web browsers can load pages faster if you've already been to them because they don't have to download everything all over again--it's been cached.

The notion that clearing a cache improves performance is completely counterintuitive. It can fix errors if the cache has the wrong information stored in it, but it will also slow things down.

Perfect example: after you install a major OS update (e.g. 10.6.4), it takes a while for the system to boot back up. It even reboots a second time. The reason it takes a while is because the boot cache has been cleared, and it has to be rebuilt.

Justinf79
Jul 31, 2010, 12:15 AM
I always shutdown my MP at night, since it's in my bedroom and all. This is more beneficial in the summer when it gets hot in my room, and having the computer on just adds more heat. :)

strausd
Jul 31, 2010, 02:28 AM
I'm not too worried about it clearing the cache when I shut down because I will have an SSD for my boot drive. I am a little surprised hearing that neither will have a negative effect, but only a little surprised seeing as it is a workstation which is supposed to last.

I think I may shut it down at night and long periods of time without use, other than that I will put it to sleep. I live in Texas and it can get very hot, and it will also be in my room. So I think having it completely off might help keep it a little cooler, however I am not sure how much hotter it will be if its only asleep.

What components are turned on while the computer is asleep?

SmilesLots
Jul 31, 2010, 05:44 AM
After my last electric bill (more than doubled from previous year) I have decided to shut everything down that is not being used. I even turn off the UPS's at night. But then I have 7 computers and an 8th on the way.

I say shut it down unless you come back to it frequently; then sleep it.

minifridge1138
Jul 31, 2010, 10:53 AM
It also hurts performance because you have to launch programs from the disk, and no matter how fast your drive is, it's not as fast as already having the program open in RAM.


Furthermore, I've never understood this blind following of the notion that clearing caches improves performance. The entire reason for the existence of the cache is to improve performance. This concept is so fundamental that it's even implemented in hardware. There's a tiny cache on the processor close to the registers (L1). There's an additional cache outside the core (L2). There's often now even a larger cache shared by all the cores (L3). In addition, inactive RAM is used to cache data from the hard drive. Hard drives themselves even have a cache onboard, nowadays. Having your own DNS server reduces latencies because it caches DNS requests. Web browsers can load pages faster if you've already been to them because they don't have to download everything all over again--it's been cached.

The notion that clearing a cache improves performance is completely counterintuitive. It can fix errors if the cache has the wrong information stored in it, but it will also slow things down.

Perfect example: after you install a major OS update (e.g. 10.6.4), it takes a while for the system to boot back up. It even reboots a second time. The reason it takes a while is because the boot cache has been cleared, and it has to be rebuilt.

I would agree with you the vast majority of the time. Especially with modern computers. I think it had some merit on old machines, but is now mostly myth.

On older machines that had less ram (remember 64 mb ram chips?) If you cache is full, and you begin to process a large file (large being relative to the amount of free memory) then the OS is going to spend time working to find a free spots in memory to store that cache. And if it can't fit, then it is going to spend time sweeping through the cache looking for the oldest data to delete. If you had cleared the cache before loading the file, then the OS wouldn't have had to do that work.

As for the original question, sleep takes more power than than shutdown.

The wake sequence and the boot sequence take about the same amount of power (most of the same tasks have to happen: loading files to memory, powering graphics, networking, spinning up hdd, etc). Waking only gets to skip the steps that take the longest, but only because those tasks never stopped running.
The difference is that sleep also required power when the system was 'down.'
Off required no power to be 'down'.
On requires the most power all the time.

Personally, I usually sleep when I'm at home and shut it down if I'm leaving for any length of time.

wonderspark
Jul 31, 2010, 02:14 PM
When not in use for longer than a couple hours, like when I go to sleep, it gets shut down to stop the injestion of dust. I cleaned it out after six months, and there was only the slightest layer of dust inside. I like that.

bedifferent
Jul 31, 2010, 02:49 PM
I would agree with you the vast majority of the time. Especially with modern computers. I think it had some merit on old machines, but is now mostly myth.

On older machines that had less ram (remember 64 mb ram chips?) If you cache is full, and you begin to process a large file (large being relative to the amount of free memory) then the OS is going to spend time working to find a free spots in memory to store that cache. And if it can't fit, then it is going to spend time sweeping through the cache looking for the oldest data to delete. If you had cleared the cache before loading the file, then the OS wouldn't have had to do that work.


Yes, thank you. My reasoning was in regards to cache sizes becoming too large for the system to handle. Many average users never clear their browser or system caches. While the premise for a cache is easy accessibility it may also result in errors. It is wise to reset your caches once in a while, especially with system updates.

zorinlynx
Jul 31, 2010, 05:32 PM
There's really no reason to shut down your Mac Pro unless you won't be around it for a few days. It uses about 6 watts when asleep, which is negligible. Also, all hard drives and fans spin down and the system is completely silent.

I sleep my machine every night and only do a full shutdown when I go on a trip where I'll be away more than a couple of days. And that's more so that my cat can't wake it up by walking across the keyboard, leaving it to be on during the rest of my trip! :)

strausd
Jul 31, 2010, 08:03 PM
So does anyone know what components are actually being used while the computer is asleep?

eemzah
Jul 31, 2010, 08:32 PM
So does anyone know what components are actually being used while the computer is asleep?According to the Apple tech support, only the RAM is being refreshed every minute. All other parts are powered down. Hope that helps.

bedifferent
Jul 31, 2010, 09:21 PM
According to the Apple tech support, only the RAM is being refreshed every minute. All other parts are powered down. Hope that helps.

That and if you have "Wake for Ethernet network access" the system will do occasionally tests while asleep. Also check "Put the hard disk(s) to sleep when possible", saves energy but won't do much in terms of HDD longevity.

strausd
Jul 31, 2010, 11:33 PM
According to the Apple tech support, only the RAM is being refreshed every minute. All other parts are powered down. Hope that helps.

So then its pretty much the same as a shut down in terms of components still using energy besides RAM (and the little light that fades in and out)? And how often will someone have RAM fail on them?

Detrius
Aug 1, 2010, 02:02 AM
I would agree with you the vast majority of the time. Especially with modern computers. I think it had some merit on old machines, but is now mostly myth.

On older machines that had less ram (remember 64 mb ram chips?) If you cache is full, and you begin to process a large file (large being relative to the amount of free memory) then the OS is going to spend time working to find a free spots in memory to store that cache. And if it can't fit, then it is going to spend time sweeping through the cache looking for the oldest data to delete. If you had cleared the cache before loading the file, then the OS wouldn't have had to do that work.

You just described how normal RAM usage works--not the caches that are on disk being cleared by scripts. You have a bunch of 4k pages. If you open an application or load a file, it must go into RAM, and you either have free RAM or you don't. If you don't, the OS goes through the pages and figures out what data can be freed from RAM. If it can't find anything that can simply be freed, then it must find something old to page to disk which then gets written (very slowly) to disk. This is how virtual memory works. If this is noticeably slowing your system down, you need more RAM. The age of the machine has nothing to do with it, and clearing your caches has nothing to do with it. It's like saying that you should reboot to speed your system up. Sure, it frees RAM--and very unfortunately the disk cache--and might make one thing faster momentarily, but it does so at a bigger cost elsewhere--namely that you no longer have access to that program and file you just closed.

See iOS 4 on the iPhone 3G. The problem is that the device doesn't have enough RAM. Clearing caches won't make it work better.

Detrius
Aug 1, 2010, 02:19 AM
Yes, thank you. My reasoning was in regards to cache sizes becoming too large for the system to handle. Many average users never clear their browser or system caches. While the premise for a cache is easy accessibility it may also result in errors. It is wise to reset your caches once in a while, especially with system updates.

Any properly implemented cache will never result in errors, and it will never get too big to handle. If there are errors, there's either a design issue that users MUST be aware of, or there's a bug. The only example of the first that comes to mind for me is the web browser, but it does not require you to clear your cache. This is what the reload button is for. It's the browsers' way of offering the user a chance to say, "I think your information is out of date." Really, though, requiring the user to be aware of this is a design flaw, and thanks to AJAX, it's not the issue it used to be.

Just because the system clears caches in the background doesn't mean you have to do it too. The system did it because it knew the cache was out of date. You clearing caches that aren't out of date and aren't causing problems just slows things down. If a cache is causing problems, the more important question is: how did it break to begin with?

goMac
Aug 1, 2010, 02:50 AM
I never even put my MBP to sleep. It's always on using InsomniaX. Regardless it doesn't really matter what computer it is, just do whatever works best for you. Sleep should be fine. It'll wake up in an instant, but if you aren't going to use it for an extended period of time then shut it down.

Woah. Hope you let it sleep when you carry it, or that you have very good backups.

iZac
Aug 1, 2010, 02:09 PM
I have a startup and and shutdown schedule setup for mine.

I have it turn on for a chunk of the working day so that i don't end up watching a load of 'large miscellaneous files' download all evening. (its a habit I picked up from my old ISP which throttled my connection from 4pm-2am)

If I'm not doing that and feeling fruity, I'll set it up to startup 5 or 10 minutes before I get home from work. How about that for lazy/pathetic!

strausd
Aug 1, 2010, 03:05 PM
So can anyone confirm thats it pretty much the same as shutting down, except for the RAM? And how often will the RAM fail?

Detrius
Aug 2, 2010, 10:45 PM
So can anyone confirm thats it pretty much the same as shutting down, except for the RAM? And how often will the RAM fail?

It's pretty darn close as far as power consumption goes, but it's not just the RAM. Anything capable of waking up the machine also gets power, so that potentially includes at least USB, bluetooth, ethernet, and Airport.

Any third-party RAM will have a lifetime warranty. This is about the best argument I can give to say that using RAM doesn't cause it to fail. Under optimal usage, the vast majority of electronics don't fail. That is, it's things like power surges (including electro-static discharge) that cause them to fail.

strausd
Aug 3, 2010, 01:16 AM
It's pretty darn close as far as power consumption goes, but it's not just the RAM. Anything capable of waking up the machine also gets power, so that potentially includes at least USB, bluetooth, ethernet, and Airport.

Any third-party RAM will have a lifetime warranty. This is about the best argument I can give to say that using RAM doesn't cause it to fail. Under optimal usage, the vast majority of electronics don't fail. That is, it's things like power surges (including electro-static discharge) that cause them to fail.

So would that mean the logic board gets continuous use even while asleep? Wouldn't that make its life shorter?

kuaiyouming
Aug 3, 2010, 01:19 AM
Every computer that I've owned has always been shut down when I wasn't using it for an extended period of time (i.e. at night or if I am not using it for several consecutive hours during a day). All I've seen from sleep-mode and other perpetually on methods is that the computer just gets slower and slower over time and eventually dies an early death, likely from overuse and inappropriate management of its lifecycle.

strausd
Aug 3, 2010, 01:26 AM
Every computer that I've owned has always been shut down when I wasn't using it for an extended period of time (i.e. at night or if I am not using it for several consecutive hours during a day). All I've seen from sleep-mode and other perpetually on methods is that the computer just gets slower and slower over time and eventually dies an early death, likely from overuse and inappropriate management of its lifecycle.

That's what I am thinking will happen. My main concern is at night when I am asleep. When I am on vacation or gone for longer than when I sleep, I will most likely shut down. And when I am just gone for a few hours I will probably just shut it down, unless I need something to render, in which case I will just lock the screen.

Someone else mentioned that he turns his off at night because when it is asleep, it still generates heat and his MP is in his room. Mine will also be in my room and don't want any extra heat, especially living in Texas. It hit 109 today!

macz1
Aug 3, 2010, 05:31 AM
I dont think sleep mode is a "perpetually on method". This is only true software-wise, but if you look at the hardware, besides the RAM, almost every component is turned off. The HDD are not spinning, the CPU is inactive and even the power supply makes the same ''click'' noise as when you turn the computer completely off (this means that the main power relay is disconnected). The power consumption when sleeping is max. 10W higher than shut down. I don't see how this could wear out the hardware.

In addition to that, I dont think the system gets slower and slower, in my opinion it gets snappier! if you have enough RAM, you can clearly feel that OS X caches many programs and other things in the free RAM, speeding up almost every operation. For App starts its like having an SSD...
putting the Mac to sleep keeps this cache alive.

Chupa Chupa
Aug 3, 2010, 07:43 AM
I haven't shutdown my Macs at the end of the day in years.

Many reasons: 1) it's not really necessary b/c sleeping uses minimal power, 2) OS X does self-maintenance, 3) I have my backup program on my MP scheduled to do it's thing in the wee hours of the night, 4) VNC, 5) Allegedly it's less destructive on the HD since startup puts a lot of stress on them.

Detrius
Aug 3, 2010, 11:28 PM
So would that mean the logic board gets continuous use even while asleep? Wouldn't that make its life shorter?

While the "logic board" is physically one part, there are many many distinct components on it. Your graphics card, for example, would have no reason to receive any power whatsoever. Your CPU would have no reason to receive any power.

Regardless, we're talking electronics here--not mechanical parts. Using a car causes it to die. Using a hard drive causes it to die. Running small amounts of electricity through metal does not cause the metal not to be metal anymore so long as it's not enough electricity to melt the metal (see incandescent light bulbs and fuses). That's the key detail here. We have satellites at the far reaches of the solar system that have been running for decades with absolutely no way for anyone to swap parts. On the other hand, there are no power surges from lightning strikes, and there's no ESD from people touching them. They do have to deal with radiation and micrometeorites, but after several decades of electricity running through the components, they're still running.

Even when your computer is "off," and unplugged, there's still a clock running. If it's "off" and plugged in, it's still capable of turning "on" based on a schedule, which means there's circuitry running that's thinking about that information. It's still running electricity through the power button. It's not an easy task to cease all electrical flow. What you think of as "off" isn't really.

What will make your machine last longer is a good surge supressor that tells you when it's not doing its job anymore, a UPS for brownouts and blackouts, you being conscious enough to physically unplug everything when there's an electrical storm on the way, and an environment that's cool enough to help the machine prevent itself from overheating.

npropes
Aug 4, 2010, 02:39 PM
As several posters have said, a UPS is also a very good idea. As to your main question, it really depends on how quickly you want to be able to use the system. There is going to be negligible difference in system life between sleeping and shutting down. You might see a 2-3 month difference in the end life of the system 6-8 years from now. Shutting it down will use less electricity than sleeping, but not very much.

My machine personally is just set to sleep if there isn't any activity after 1 hour. If I'm going to be gone for a night, I'll generally shut it down but not always. If I'm going to be gone for more than a week, not only will I shut it down, but I generally disconnect my UPS as well as my AirPort Extreme, cable modem, printer, etc. Remember any electronic device that is plugged in is at risk for getting fried and they use electricity.

My MacBook Pro is rarely shut down, I just close the lid and put it to sleep when I'm not using it.