What does the "shutdown" command do, exactly?

Moderators: Site Moderators, FAHC Science Team

Post Reply
RBob
Posts: 10
Joined: Thu Oct 29, 2020 4:36 pm

What does the "shutdown" command do, exactly?

Post by RBob »

Windows 10 Pro, client 7.6.21

Every evening after the backup finishes, I run a little program to issue a "PAUSE" followed by a "SHUTDOWN" to the client, which will be followed eventually by Windows' own shutdown.

Is the SHUTDOWN to the client worth issuing, or is the PAUSE before shutting down the computer good enough in all cases? For that matter, is a delay between PAUSE and SHUTOWN, or between PAUSE and letting Windows shutdown a good idea? How long?

[I've been doing the PAUSE/SHUTDOWN sequence for some time without any apparent problems; I'm just wondering if what I'm doing is either unnecessary or asking for trouble.]
PaulTV
Posts: 217
Joined: Mon Jan 25, 2021 4:53 pm
Location: Netherlands

Re: What does the "shutdown" command do, exactly?

Post by PaulTV »

When you pause, you basically tell the cores (who do the actual folding) to stop - which is nice of you to do. The shutdown command should stop the client (on Linux it doesn't, apparently), but there's no point to do so in this case. Neither should really be necessary though - the client and cores are designed to deal with shutdowns / reboots without user interaction.
Image

Ryzen 9800X3D / RTX 4090 / Windows 11
Ryzen 5600X / RTX 3070 Ti / Ubuntu 22.04
Ryzen 5600 / RTX 3060 Ti / Windows 11
Joe_H
Site Admin
Posts: 7951
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: What does the "shutdown" command do, exactly?

Post by Joe_H »

My only addition would be that on Windows the shutting down by the OS often does not properly signal the client and wait long enough for the client to shutdown the folding cores. So pausing first before shutting down Windows is a good practice. I would give the client about a minute or so before doing the Windows shutdown.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Neil-B
Posts: 1996
Joined: Sun Mar 22, 2020 5:52 pm
Hardware configuration: 1: 2x Xeon [email protected], 512GB DDR4 LRDIMM, SSD Raid, Win10 Ent 20H2, Quadro K420 1GB, FAH 7.6.21
2: Xeon [email protected], 32GB DDR4, NVME, Win10 Pro 20H2, Quadro M1000M 2GB, FAH 7.6.21 (actually have two of these)
3: [email protected], 12GB DDR3, SSD, Win10 Pro 20H2, GTX 750Ti 2GB, GTX 1080Ti 11GB, FAH 7.6.21
Location: UK

Re: What does the "shutdown" command do, exactly?

Post by Neil-B »

... and some of us are really paranoid and both pause the slot and then after a minute shut the client down and then after another minute do whatever re reboot etc. ... Really shouldn't be necessary in an ideal world and is probably way over the top even in the real world but I haven't had any issues with damaged wus/client so just like I have a lucky t0shirt I wear for certain occasions I use the paranoid routine whether it actually makes any difference or not !! :)
2x Xeon E5-2697v3, 512GB DDR4 LRDIMM, SSD Raid, W10-Ent, Quadro K420
Xeon E3-1505Mv5, 32GB DDR4, NVME, W10-Pro, Quadro M1000M
i7-960, 12GB DDR3, SSD, W10-Pro, GTX1080Ti
i9-10850K, 64GB DDR4, NVME, W11-Pro, RTX3070

(Green/Bold = Active)
PaulTV
Posts: 217
Joined: Mon Jan 25, 2021 4:53 pm
Location: Netherlands

Re: What does the "shutdown" command do, exactly?

Post by PaulTV »

Ah yes... updates is a different matter than regular shutdowns. Before updating Windows, at least pause folding. Before updating video drivers, it may even be better to have the WU finish first.

There is one thing that may be important after booting (as opposed to before shutting/rebooting)... if the fahclient starts before there's network connection, your GPU may be disabled (you'll see a message in the log about beta flags). That's because the file gpus.txt could not be updated. I let the login screen alone for a minute or so after booting before logging in to prevent this issue.
Image

Ryzen 9800X3D / RTX 4090 / Windows 11
Ryzen 5600X / RTX 3070 Ti / Ubuntu 22.04
Ryzen 5600 / RTX 3060 Ti / Windows 11
RBob
Posts: 10
Joined: Thu Oct 29, 2020 4:36 pm

Re: What does the "shutdown" command do, exactly?

Post by RBob »

Looks like I can just leave things as is, even if there's a bit of overkill in the process.

[I added the "shutdown" call even though I wasn't sure what it did, but it sounded like something I wanted. When it didn't blow up, I just left it in.]
Joe_H
Site Admin
Posts: 7951
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: What does the "shutdown" command do, exactly?

Post by Joe_H »

As far as I know keeping the shutdown there won't hurt anything. It may be a command left over from an earlier version of the client that doesn't do much now or depends on the OS and other environment settings.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Post Reply