Resource Share Confusion


log in

Advanced search

Questions and Answers : Preferences : Resource Share Confusion

Author Message
Profile Cyntech
Avatar
Send message
Joined: 17 Apr 02
Posts: 21
Credit: 1,259,030
RAC: 0
Australia
Message 1025745 - Posted: 17 Aug 2010, 2:16:03 UTC

I'm a little confused about resource share.

There is a project setting for resource share, but then there's a global setting for time spent between projects.

If the resource share is the time the computer devotes to the project in comparison to other projects attached, what is the global setting for?

How does resource share affect how long a machine spends on each project?

Can someone explain this for me, please?

Thanks in advance.
____________

Profile Gundolf Jahn
Send message
Joined: 19 Sep 00
Posts: 3184
Credit: 354,976
RAC: 22
Germany
Message 1025798 - Posted: 17 Aug 2010, 11:06:15 UTC - in response to Message 1025745.

AFAIK, "Switch between tasks every..." is a minimum setting and is also reevaluated at the end of a task.

I have set it to 120 minutes, because of the long initialisation period of Einstein tasks (several minutes), and my resource share is 40 for SETI and 60 for Einstein. So, the SETI tasks get pretty much exactly two hours, whereas the Einstein tasks hover around four hours, depending on calculated short time debt I suppose.

Gruß,
Gundolf
____________
Computer sind nicht alles im Leben. (Kleiner Scherz)

SETI@home classic workunits 3,758
SETI@home classic CPU time 66,520 hours

John McLeod VII
Volunteer developer
Volunteer tester
Avatar
Send message
Joined: 15 Jul 99
Posts: 23702
Credit: 493,324
RAC: 133
United States
Message 1025903 - Posted: 17 Aug 2010, 22:04:16 UTC

Which task gets run next is either the task with the highest debt (bad terminology, but we are kind of stuck with it) or the task with the nearest deadline from the set of tasks that are determined to have deadline trouble (never mind exactly how for this discussion).

The change in debt is calculated based on the resource share. The lower the resource share, the slower the debt increases when not crunching, and the faster it decreases when crunching. Note that there are two debts. Long term debt is used to determine which project to request work from, and short term debt drives the decisions of which task gets the CPU next.

There are several triggers for calculating which, if any tasks are in deadline trouble. These include, but are not limited to: A successful work request. A completed file download. A task completion. The end of a period of "switch tasks every X minutes" without any other triggers intervening.

A task will be switched out and a new task run whenever a task with a shorter deadline needs the CPU because of deadline trouble, OR it has reached the checkpoint after "Switch tasks every X minutes" and there is some task from a project with a higher short term debt.

Tasks may or may not switch every interval, but they will be checked at least that frequently to see if they should switch.
____________


BOINC WIKI

Questions and Answers : Preferences : Resource Share Confusion

Copyright © 2014 University of California