Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 8
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2650 times and has 7 replies Next Thread
ITgreybeard
Cruncher
Joined: May 1, 2012
Post Count: 4
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
confused ARP task not restarted in time

Let me know if this post is being entered into the wrong forum, and please advise where it should be placed. And if another thread addresses this issue, please advise me re that too.

With fair frequency, one or other of my computers must be rebooted, usually in order to update the o/s or an app, or even shut down for a day or two. Of course, this shuts down wcg, which is running as a service. When the computer restarts, so does wcg.

But if an ARP task had been running, that task is often placed into a 'waiting to run' mode, and another non-ARP task is started in the ARP task's place. So it goes, with the ARP task continuing to wallow in a 'waiting to run' status as yet other non-ARP tasks are started as the queue empties of completed tasks.

Confoundingly, I can see that restart of ARP tasks can be delayed until the task will be finished after the deadline.

What, if anything, can be done about this, especially if by tweaking the wcg config? Can ARP tasks be prioritized at all times?

Btw, wcg runs on a variety of old and new Windows computers here ...
[Jan 30, 2022 9:59:17 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Mike.Gibson
Ace Cruncher
England
Joined: Aug 23, 2007
Post Count: 12594
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: ARP task not restarted in time

ITgreybeard

There are 2 solutions here.

The first is to modify your WCG Device Profiles so that you minimise the Project Limits. If the total of the limits is not much higher than your total threads then ARP would restart soon after a restart because the queue would be short.

The other is to install a module called app_config.xml where you can specify the maximum number of each project that can run at any one time. If the total specified there was to be, say, equal to your total threads that would mean that the ARP unit would start immediately. However, I would suggest that the total should be 1 higher to allow for a short delay in downloading after an upload.

HST are in very short supply so don't count them in the total.

If you would like a copy of the module and instructions, please repost here.

Mike
[Jan 31, 2022 5:07:47 PM]   Link   Report threatening or abusive post: please login first  Go to top 
ITgreybeard
Cruncher
Joined: May 1, 2012
Post Count: 4
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: ARP task not restarted in time

Thank you. I shall try these. ;-)
[Feb 3, 2022 4:06:49 PM]   Link   Report threatening or abusive post: please login first  Go to top 
ITgreybeard
Cruncher
Joined: May 1, 2012
Post Count: 4
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: ARP task not restarted in time

Mike,

If your proposal to send an app_config.xml module this way is still open, I would appreciate it. I prefer to work off existing working code / configs, as the delta on working code has a greater chance of working directly out of the gates.

The device profile alteration can be tricky, as I presently have up to 9 machines with far differing capabilities (i.e. cores, threads, memory, cooling), so even the three home / school / work profiles do not necessarily cover the bases. Of course, I could create three different user ids ... 3 x 3 = 9.

Is it to the Suggestions/Feedback forum that I should send a ranked project priority recommendation? Or is the algorithm that governs the decision open source, such that I can learn the intricacies of the existing task start & resume mechanism?

Thx. ITG
[Feb 6, 2022 1:28:00 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Mike.Gibson
Ace Cruncher
England
Joined: Aug 23, 2007
Post Count: 12594
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: ARP task not restarted in time

ITG

This is the module:

<?xml version="1.0" encoding="UTF-8"?><app_config>
<app><name>arp1</name><max_concurrent>8</max_concurrent></app>
<app><name>mcm1</name><max_concurrent>1</max_concurrent></app>
<app><name>hst1</name><max_concurrent>1</max_concurrent></app>
<app><name>opn1</name><max_concurrent>8</max_concurrent></app>
/app_config>

Create a new file called app_config.xml in C:\ProgramData\BOINC\projects\www.worldcommunitygrid.org
Then copy the above module into that file.
Open with WordPad.
There is one line listed for each current project but you don't need each line. Any line you don't have will be unrestricted for that project.
In the middle of the line there is a number, currently either 1 or 8. Change that number to the maximum of that project you want to run at any one time.
Save the changes.
Go to Your BOINC Manager screen,
Click Options
Click Read Config files.
The module is then active.
Any time you want to change the contents of the module, you have to reactivate it in BOINC Manager.

You cannot restrict to zero here. If you put 0, it will be unrestricted. If you want to exclude a project you must do so in your Device Profile again via BOINC Manager.

Good luck.

Any problems repost.

Mike
----------------------------------------
[Edit 2 times, last edit by Mike.Gibson at Feb 6, 2022 2:36:20 AM]
[Feb 6, 2022 2:28:32 AM]   Link   Report threatening or abusive post: please login first  Go to top 
adriverhoef
Master Cruncher
The Netherlands
Joined: Apr 3, 2009
Post Count: 2346
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: ARP task not restarted in time

The device profile alteration can be tricky, as I presently have up to 9 machines with far differing capabilities (i.e. cores, threads, memory, cooling), so even the three home / school / work profiles do not necessarily cover the bases. Of course, I could create three different user ids ... 3 x 3 = 9.


That's not necessary, ITG. You can create all the necessary profiles yourself! See here to create the 'example' profile and this link (how to assign a device to the newly added profile).
[Feb 6, 2022 3:48:10 PM]   Link   Report threatening or abusive post: please login first  Go to top 
BobbyB
Veteran Cruncher
Canada
Joined: Apr 25, 2020
Post Count: 638
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: ARP task not restarted in time

There's a caveat if you create more profiles than the standard 4.

Make sure you read the link above named "here" and especially the link above named "this link" because when you assign a profile to a device your "new" one is not shown in the drop down list of available profiles.

I presume the trick about using Firefox can also be done with other browsers.

You may have different requirements but my solution to this is to prevent my low powered machines from doing ARP. It's a Windows 10 laptop with only 4 cores. For the other 3 (Ubuntu) I disabled updates. These 3 just do WCG. I don't have the latest Firefox, Libre Office, Nano, Vi, and the rest. SO?

As for the OS, again SO? It works. Don't fix it. But after reading about PWNKIT I did the updates this week anyway. I micro managed each one so as not lose much time for the running ARPS. What I read on the Berkley site satisfies me that Boinc is safe.

The Windows one seems to have a mind of its own and I can't disable updates so it reboots when it wants and I can thus lose 1-2 hours of work if it is doing ARP.
----------------------------------------
[Edit 4 times, last edit by BobbyB at Feb 8, 2022 5:22:42 PM]
[Feb 8, 2022 4:57:54 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Mike.Gibson
Ace Cruncher
England
Joined: Aug 23, 2007
Post Count: 12594
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: ARP task not restarted in time

You can group your machines according to their capabilities.

For example, when I had more than 4, I had 4 profiles. One was for my PC, one for a Laptop, 1 for tablets and the other for mobile phone, 2 were Windows 7 and 3 were Android, which were not crunching ARP.

You can effectively have extra profiles by having different set ups in app_config.xml.

However, If you did want to set up multiple accounts, you could set them up under 1 team.

Mike
[Feb 8, 2022 5:52:56 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread