Resource Share Confusion

Questions and Answers : Preferences : Resource Share Confusion
Message board moderation

To post messages, you must log in.

Profile Cyntech

Send message
Joined: 17 Apr 02
Posts: 21
Credit: 1,259,030
RAC: 0
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.
ID: 1025745 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 19 Sep 00
Posts: 3184
Credit: 399,125
RAC: 45
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.

Computer sind nicht alles im Leben. (Kleiner Scherz)

SETI@home classic workunits 3,758
SETI@home classic CPU time 66,520 hours
ID: 1025798 · Report as offensive
John McLeod VII
Volunteer developer
Volunteer tester

Send message
Joined: 15 Jul 99
Posts: 24806
Credit: 790,712
RAC: 1
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.

ID: 1025903 · Report as offensive

Questions and Answers : Preferences : Resource Share Confusion

©2017 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.