Problem suspending tasks

Message boards : Questions and problems : Problem suspending tasks
Message board moderation

To post messages, you must log in.

AuthorMessage
Paul Schauble

Send message
Joined: 29 Aug 05
Posts: 68
Message 91656 - Posted: 29 May 2019, 1:49:09 UTC

I needed to limit BOINC work being done to reduce CPU overheating. I decided to force one particularly long running tasks to complete and then restart with a reduced workload.

So I did the following:
- Set the project to no new work
- Return to the Tasks window, highlight all tasks, and click Suspend.
- Intending to return and resume the one tasks I wanted to finish.

However, I think what happened is that BOINC suspended the first task in the window. BOINC then instantly started a new task. BOINC them came back and suspended the second task, which immediately started a replacement task. And so on.

I ended up with about half the waiting tasks going from "not started and holding no resources" to "started, holding resources, and suspended with 1 second running time".

I now know that I have to suspend all non-running tasks before suspending any running tasks to avoid this mess. But I think this is a bug in how suspend is handled.

Is there a way to report BOINC bugs, other than here?

Thanks,
++PLS
ID: 91656 · Report as offensive
Bill
Avatar

Send message
Joined: 13 Jun 17
Posts: 91
United States
Message 91658 - Posted: 29 May 2019, 2:25:21 UTC - in response to Message 91656.  

I am assuming you are just running one project on said computer?
ID: 91658 · Report as offensive
Paul Schauble

Send message
Joined: 29 Aug 05
Posts: 68
Message 91659 - Posted: 29 May 2019, 3:42:39 UTC - in response to Message 91658.  

Yes, at the moment just one project. I also should have said that I'm running BOINC 7.14.2.

++PLS
ID: 91659 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2533
United Kingdom
Message 91660 - Posted: 29 May 2019, 6:02:45 UTC
Last modified: 29 May 2019, 6:04:31 UTC

I have tried and am not able to replicate what you describe. I regularly highlight all tasks except for one or two which I wish to continue. Most often at the moment this is because I run tasks that require over 5GB of memory per task and if I run more than one at a time, there is an inordinate amount of swapping out to disk, slowing tasks by about 20% if I run two but running on all four cores tripling the time taken.

Edit: What platform are you on? I am running Ubuntu 19.04 and it may be only one one platform that there is a problem.
ID: 91660 · Report as offensive
Paul Schauble

Send message
Joined: 29 Aug 05
Posts: 68
Message 91662 - Posted: 29 May 2019, 8:05:25 UTC - in response to Message 91660.  

I am on Windows 10 v1809. And the key is to highlight EVERYTHING, including the running tasks. This has happened to be twice now. The project I'm running is SRBase. Perhaps part of the problem is that this project uses a fairly small program and can start a task quite quickly.

++PLS
ID: 91662 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5080
United Kingdom
Message 91663 - Posted: 29 May 2019, 8:53:00 UTC

This problem is already one of the identified issues in the backlog of improvements waiting for developer time.

Race condition when suspending tasks

My personal opinion (stated in that issue, but unverified) is that the 'race condition' in the title occurs because of the difference in speeds between:

a) the Manager sending each successive 'single task' RPC
b) the Client processing all parts of the suspend instruction

If a single running task is suspended, a message is sent to the project application to close and (potentially, depending on preference settings) remove itself from memory. The key question in your case might be how quickly SRBase apps can stop, rather than how quickly they can start.

Personally, if I need to do something like this, I use the same workround as you: suspend all unstarted tasks as a separate block action: only suspend the running task when there's nothing available to take its place.
ID: 91663 · Report as offensive
Les Bayliss
Help desk expert

Send message
Joined: 25 Nov 05
Posts: 1654
Australia
Message 91664 - Posted: 29 May 2019, 9:17:53 UTC

If the project is fast to re-supply, try setting Activity to Suspend network activity first. That ought to stop that.
ID: 91664 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5080
United Kingdom
Message 91665 - Posted: 29 May 2019, 10:12:39 UTC - in response to Message 91664.  

Or set 'No new tasks' for any project which might be in danger of over-fetching.

The project whose tasks are being suspended won't be at risk of fetching - work requests are inhibited for any project which has even one task suspended. The problem with 'Suspend network activity' is that it also prevents result files being uploaded and completed tasks being reported.
ID: 91665 · Report as offensive
Bill
Avatar

Send message
Joined: 13 Jun 17
Posts: 91
United States
Message 91666 - Posted: 29 May 2019, 11:42:25 UTC

I've had to force a task or two to complete over all others a few times, but I don't think I have ever encountered this problem. I think what I did was I would suspend Boinc altogether, and then suspend the individual tasks that I didn't want to run (leaving the one or two that I do want to run alone). Then, I would resume the project itself. Does that help?
ID: 91666 · Report as offensive
Paul Schauble

Send message
Joined: 29 Aug 05
Posts: 68
Message 91668 - Posted: 30 May 2019, 2:04:29 UTC - in response to Message 91666.  

Suspending BOINC activity, then suspending individual tasks is also a good work around.

I'm glad the issue is already known.

++PLS
ID: 91668 · Report as offensive

Message boards : Questions and problems : Problem suspending tasks

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.