Pause/Resume Question

Message boards : Questions and problems : Pause/Resume Question
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Paul Chism

Send message
Joined: 19 Mar 11
Posts: 7
United States
Message 37212 - Posted: 19 Mar 2011, 0:37:13 UTC

Is there a way to change the "Pause" value? I realize that it will pause it for a certain length, then restart. I checked my messages, and it appears it will Pause for 1 hr., then resume automatically.

Other than Suspend or limiting the time when BOINC runs, is there a way to 'pause' longer than an hour, but less than eternity?
ID: 37212 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15482
Netherlands
Message 37213 - Posted: 19 Mar 2011, 7:30:55 UTC - in response to Message 37212.  
Last modified: 19 Mar 2011, 11:48:29 UTC

You mean the Snooze? No, it's set at 1 hour. Although the developers have said, they'll look into it being user-definable in a future version (post 6.12).
ID: 37213 · Report as offensive
Pepo
Avatar

Send message
Joined: 3 Apr 06
Posts: 547
Slovakia
Message 37214 - Posted: 19 Mar 2011, 11:38:10 UTC - in response to Message 37212.  

Is there a way to change the "Pause" value? I realize that it will pause it for a certain length, then restart. I checked my messages, and it appears it will Pause for 1 hr., then resume automatically.

Other than Suspend or limiting the time when BOINC runs, is there a way to 'pause' longer than an hour, but less than eternity?

You can do it manually. For the local computer, you can write a script/batch file, which will call

boinccmd.exe --set_run_mode never [seconds]
or
boinccmd.exe --set_gpu_mode never [seconds]

See boinccmd.exe --help for details.

(You might need to set the current dir in the script to BOINC data folder, prior to starting boinccmd.)

Peter
ID: 37214 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 37215 - Posted: 19 Mar 2011, 11:55:26 UTC - in response to Message 37214.  

...
(You might need to set the current dir in the script to BOINC data folder, prior to starting boinccmd.)

Peter

Surely the 'current directory' for boinccmd would be the program directory? (boinccmd - though I agree 'same directory as the client' could be worded less ambiguously).

In any event, it didn't seem to be necessary when I tried it recently.
ID: 37215 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15482
Netherlands
Message 37216 - Posted: 19 Mar 2011, 12:01:21 UTC - in response to Message 37215.  

In any event, it didn't seem to be necessary when I tried it recently.

Perhaps you have set the BOINC program directory up in the Windows path? As only then Windows will know immediately what you talk about.

Also, just to make it clear, using the boinccmd tool in a script or batch file, will not change how Snooze works. Snooze will continue to run only for 1 hour, no matter what values you set for this boinccmd voption.
ID: 37216 · Report as offensive
Pepo
Avatar

Send message
Joined: 3 Apr 06
Posts: 547
Slovakia
Message 37217 - Posted: 19 Mar 2011, 12:25:47 UTC
Last modified: 19 Mar 2011, 12:26:04 UTC

(You might need to set the current dir in the script to BOINC data folder, prior to starting boinccmd.)

Surely the 'current directory' for boinccmd would be the program directory? (boinccmd - though I agree 'same directory as the client' could be worded less ambiguously).

In any event, it didn't seem to be necessary when I tried it recently.

(I should have written something like "BOINC-programs-path"/boinccmd.exe, my bad.) No, sorry, I've really meant the data directory, as I remember from the past (not sure which BOINC versions, on WinXP) that otherwise boinccmd was not able to authenticate. Now with recent BOINC version and Win7 it was not necessary as well. Possibly the current boinccmd already gets the path to data dir from registry? (I'm too lazy and busy to check sources for sure. The issue is also somehow mentioned in boinccmd.)

In any event, it didn't seem to be necessary when I tried it recently.

Perhaps you have set the BOINC program directory up in the Windows path? As only then Windows will know immediately what you talk about.

No, not in PATH. I've just forgot to mention the path to executable, see above.

Also, just to make it clear, using the boinccmd tool in a script or batch file, will not change how Snooze works. Snooze will continue to run only for 1 hour, no matter what values you set for this boinccmd voption.

Sure, that is true. It is just a separate icon (for batch file for pausing GPU for multiple hours), sitting in my QuickLaunch area, because I was already sick having to suspend my PrimeGrid GPU tasks for an hour multiple times daily :-)

(Thanks, Paul Chism, for "kicking me" to finally write the batch file again.)

Peter
ID: 37217 · Report as offensive
Wilgard

Send message
Joined: 8 Jul 10
Posts: 10
France
Message 37342 - Posted: 31 Mar 2011, 10:22:15 UTC - in response to Message 37217.  

I would like to suspend and resume boinc by executing a cmd-dos file which will be launched by the windows task scheduler. If I use the time table to organize the cpu running, the work units could be seen in the tasks manager but if click on suspend/snooze the work units are hidden.

I would like to launch 2 scripts :
- 1 to resume all work units
- 1 to suspend all work units
And I use the task scheduler to launch them when I want.


Is there another solution than doing :
boinccmd.exe --set_run_mode never [seconds]

Best regards

Wilgard
ID: 37342 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 37343 - Posted: 31 Mar 2011, 11:15:12 UTC - in response to Message 37342.  

... but if click on suspend/snooze the work units are hidden.

That probably is due to your selecting only to "Show active tasks" (Tasks tab). ;-)

Is there another solution than doing :
boinccmd.exe --set_run_mode never [seconds]

I don't know any other, but why don't you want to use it? It does exactly what you want.

Gruß,
Gundolf
ID: 37343 · Report as offensive
Wilgard

Send message
Joined: 8 Jul 10
Posts: 10
France
Message 37344 - Posted: 31 Mar 2011, 11:36:04 UTC - in response to Message 37343.  

I would prefer to have something like : boinccmd -suspend before if I want several pause time (depends on the week day) I will have to do several script.

But as you said this command do what I want, so I will use it.

What is the selection option "Show active tasks", I don't find it (under Windows 7) ?

Thanks



ID: 37344 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 37347 - Posted: 31 Mar 2011, 14:20:56 UTC - in response to Message 37344.  

What is the selection option "Show active tasks", I don't find it (under Windows 7) ?

It's a button on the Tasks tab of BOINC manager. If you have clicked it, it'll read "Show all tasks". :-)

Gruß,
Gundolf
ID: 37347 · Report as offensive
Wilgard

Send message
Joined: 8 Jul 10
Posts: 10
France
Message 37350 - Posted: 31 Mar 2011, 14:28:33 UTC - in response to Message 37347.  

Ok but I talked about the Windows Task Manager. In snooze/pause on a right click workdunits are not displayed.
ID: 37350 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15482
Netherlands
Message 37351 - Posted: 31 Mar 2011, 14:49:58 UTC - in response to Message 37342.  

...the work units could be seen in the tasks manager but if click on suspend/snooze the work units are hidden.

When one suspends individual tasks, or suspends BOINC, and one doesn't use "Leave applications in memory", the running applications (working on the tasks) are unloaded from memory. The tasks aren't hidden, they're just not in memory anymore.

So, if you want to leave them visible in Windows Task Manager, you have to use the "Leave applications in memory (while suspended)" preference. This uses up RAM and virtual memory, though. Depends on how much by what the applications are using.
ID: 37351 · Report as offensive
Wilgard

Send message
Joined: 8 Jul 10
Posts: 10
France
Message 37352 - Posted: 31 Mar 2011, 15:55:26 UTC - in response to Message 37351.  

Thanks Ageless,

So if I start boinc, if I don't check "Leave applications in memory" and I suspend it by executing :
boinccmd.exe --set_run_mode never [seconds]

All workunits should be suspended and not displayed ?

Thanks
ID: 37352 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15482
Netherlands
Message 37353 - Posted: 31 Mar 2011, 16:14:07 UTC - in response to Message 37352.  

Not in Windows Task Manager.
They'll still be available in BOINC Manager->Advanced view->Tasks tab, after clicking "Show all tasks".
ID: 37353 · Report as offensive
Wilgard

Send message
Joined: 8 Jul 10
Posts: 10
France
Message 37354 - Posted: 31 Mar 2011, 17:06:34 UTC - in response to Message 37353.  

Perfect thank you very much
ID: 37354 · Report as offensive

Message boards : Questions and problems : Pause/Resume Question

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.