Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
standby
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 543

PostPosted: Mon Jul 15, 2019 10:50 pm    Post subject: standby Reply with quote

i run a workstation-system, if i try pm-suspend, the system goes in standby.
that can save a lot of power and money.

before i run pm-suspend, i run the hdparm -y /dev/sdX command, the disk are going into standby
if i run than the pm-suspend command, and wake up later the system, the drives they are before in standby are now running, but why?

the system goes 10 or more times a day into standby and wake up, what can i do that the harddrives are only wake up if i will access them?

not testet at the moment, but how does it work that if comes a tcp connection to the computer they are in standby, can the tcp connection wake up the system?
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 543

PostPosted: Wed Jul 17, 2019 3:27 pm    Post subject: Reply with quote

anyone can help me please
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4513
Location: Dallas area

PostPosted: Wed Jul 17, 2019 3:47 pm    Post subject: Reply with quote

I know you're using hdparm, but I imagine the same applies as to this from sdparm's man page

Code:
       In  the  Linux 2.6 and 3 series, especially with ATA disks, using sdparm to stop (spin down) a disk may not be
       sufficient and other mechanisms will start the disk again some time later. The user  might  additionally  mark
       the  disk  as  "offline"  with 'echo offline > /sys/block/sda/device/state' where sda is the block name of the
       disk. To restart the disk "offline" can be replaced with "running".

_________________
PRIME x570-pro, 3700x, RX 550 & 560
Acer E5-575 (laptop), i3-7100u - i965
---both---
5.5.18 zen kernel, gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7440
Location: almost Mile High in the USA

PostPosted: Thu Jul 18, 2019 8:24 pm    Post subject: Reply with quote

Since state is carried over suspend, it's possible to resume a TCP connection even after your machine has shut off -- that is, if the other computer didn't reset the connection because it thought it was dead.

However this is not sufficient to wake up the computer. In fact it's tough for a network adapter to know exactly what packets it needs to wake the machine or not. Should it wake if a ping packet is received? Should it bother, since it can take many seconds before the machine can reply while resuming... How does it know it's a ping packet? Perhaps if there is a processor on the network card that keeps track of every connection, even ones that it's not sure of (if you set up a listening socket but never sent a packet in or received a packet.)

That's why the compromise of the magic packet to do WoL was created, to make it simpler... but this does not help existing connections, broadcast ARP packets, or IPv6 where router announcements need to be monitored by the OS, these would need a quite complicated network adapter to deal with this...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7653
Location: Saint Amant, Acadiana

PostPosted: Fri Jul 19, 2019 2:03 pm    Post subject: Re: standby Reply with quote

SarahS93 wrote:
i run a workstation-system, if i try pm-suspend, the system goes in standby.
that can save a lot of power and money.

before i run pm-suspend, i run the hdparm -y /dev/sdX command, the disk are going into standby
if i run than the pm-suspend command, and wake up later the system, the drives they are before in standby are now running, but why?

the system goes 10 or more times a day into standby and wake up, what can i do that the harddrives are only wake up if i will access them?

not testet at the moment, but how does it work that if comes a tcp connection to the computer they are in standby, can the tcp connection wake up the system?


If you do the math you'll probably find spinning down the drives multiple times every day is not saving you any money at all. Unless the power is exceptionally expensive in your location. Spinning drives last a lot longer when they stay spinning, thus saving you money you don't have to spend on replacing them. For instance, I have a 2 TB WD Black here, it is relatively power hungry. It draws 8 W when spinning. Do the math now, how much is this going to cost you to run it 7x24 for a full year? Your drive(s) may actually draw less than this WD Black I have.

For this particular drive annual consumption is 70 kWh, in my location to run it full year costs me less than $6. Note, this is calculated considering the drive is writing all the time. Idling but spinning drive draws much less!

Modern WD Red drives draw less than 3 W when idle. Annual cost to run it all year is $2.20 at my place, why should I spin it down and reduce its lifetime significantly? They run well over 80,000 hours when left spinning.
_________________
Please learn how to denote units correctly!


Last edited by Jaglover on Fri Jul 19, 2019 2:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4513
Location: Dallas area

PostPosted: Fri Jul 19, 2019 2:18 pm    Post subject: Reply with quote

I have several of the wd red nas drives that run 24x7, they don't cost that much (in the scheme of things)
_________________
PRIME x570-pro, 3700x, RX 550 & 560
Acer E5-575 (laptop), i3-7100u - i965
---both---
5.5.18 zen kernel, gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7653
Location: Saint Amant, Acadiana

PostPosted: Fri Jul 19, 2019 2:22 pm    Post subject: Reply with quote

I just edited my post, running a four drive NAS with WD Red costs me less than $10 annually, I can afford it. ;)
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
C5ace
Guru
Guru


Joined: 23 Dec 2013
Posts: 342
Location: Brisbane, Australia

PostPosted: Sat Jul 20, 2019 10:06 am    Post subject: Reply with quote

Maybe this helps:

https://www.howtogeek.com/70374/how-to-geek-explains-what-is-wake-on-lan-and-how-do-i-enable-it/
_________________
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as python, perl, C++, C#, Rust and the likes.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum