There are two ways of enumerating sendable results:
1) get the first N sendable results,
where "first" is some ordering, e.g. descending priority or MySQL's default.
This is done by DB_WORK_ITEM::enumerate().
2) cycle through the entire set of sendable results on successive calls
This is done by DB_WORK_ITEM::enumerate_all().
There's a problem with using 1) in combination with HR.
A WU could get committed to a rare platform P,
but the other results for that WU are "buried" low down in the ordering.
The scheduler could commit more and more WUs to P,
until eventually there are no jobs available for common platforms.
So we use 2) when HR is being used.
This solves the above problem effectively,
but (as you observe) prevents the use of priority ordering.
I'm not sure how to solve this.
We could use offset(n, m) in the query,
but that could cause performance problems
(MySQL would have to examine all sendable results on each query).
Anyone have other ideas?
In the meantime, I'll add code so that the feeder errors out
if the --priority option is used with HR
-- David
On 16-Jul-2010 10:42 AM, yoyo wrote:
> I think I found the issue in the feeder source. The order clause is not
> used if homogenous redundancy is used. Is there a reason for it?
>
> feeder.cpp
> ...
> int hrt = ssp->apps[app_index].homogeneous_redundancy;
>
> while (1) {
> if (hrt) {
> retval = wi.enumerate_all(enum_size, select_clause);
> } else {
> retval = wi.enumerate(enum_size, select_clause, *order_clause*);
> }
> ...
>
> David Anderson wrote:
>> Check that the priority-5 workunits have priority-5 results,
>> and that they have server_status=2 (unsent).
>>
>> If so, we need to figure out why the feeder isn't reading them.
>> Run the feeder with -d 4 ; this causes it to print DB queries to the log.
>> (Note: this requires upgrading to the current server software,
>> which I recommend anyway).
>> -- David
>>
>> On 15-Jul-2010 11:47 AM, yoyo wrote:
>>> Hello,
>>>
>>> I'm running the feeder (last stable version) with
>>> -priority_order_create_time. There are round about 100.000 results
>>> unsent in the database, all with priority 0. I created some workunits
>>> with priority 5, but they are not sent in the last 4 days. Can I somehow
>>> find out why they are not sent?
>>>
>>> yoyo
>>>
>>>
>>>
>>> Rechenkraft.net e.V.<http://www.rechenkraft.net> - Verein zur Förderung
>>> von Bildung, Forschung und Wissenschaft durch Einsatz vernetzter
>>> Computer
>>> weitere interessante Projekte
>>> <http://www.rechenkraft.net/wiki/index.php?title=Projekt%C3%BCbersicht>und
>>>
>>> Hilfe<http://www.rechenkraft.net/phpBB/viewforum.php?f=19>auf unserer
>>> Webseite www.Rechenkraft.net<http://www.rechenkraft.net> und im Chat
>>> <irc://irc.euirc.net/rechenkraft>
>>> ------------------------------------------------------------------------
>>> Rechenkraft.net e.V.<http://www.rechenkraft.net/> - Non-profit
>>> association for the promotion of education, research and science through
>>> the use of networked computers
>>> other interesting projects
>>> <http://www.rechenkraft.net/wiki/index.php?title=Projekt%C3%BCbersicht>and
>>>
>>> help<http://www.rechenkraft.net/phpBB/viewforum.php?f=19> on our
>>> website www.Rechenkraft.net<http://www.rechenkraft.net> and on IRC
>>> <irc://irc.euirc.net/rechenkraft>
>>>
>>> _______________________________________________
>>> boinc_dev mailing list
>>> [email protected]
>>> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
>>> To unsubscribe, visit the above URL and
>>> (near bottom of page) enter your email address.
>>
>
> --
> Rate Me <http://boinc.ssl.berkeley.edu/help_vol.php?volid=29>, MySkype
> (yoyo_rkn)Skype Me™! <skype:yoyo_rkn?chat> , myICQ 139003243 , myIRC
> <irc://irc.euirc.net/rechenkraft>
> ------------------------------------------------------------------------
> Rechenkraft.net e.V. <http://www.rechenkraft.net> - Verein zur Förderung
> von Bildung, Forschung und Wissenschaft durch Einsatz vernetzter Computer
> weitere interessante Projekte
> <http://www.rechenkraft.net/wiki/index.php?title=Projekt%C3%BCbersicht>und
> Hilfe <http://www.rechenkraft.net/phpBB/viewforum.php?f=19>auf unserer
> Webseite www.Rechenkraft.net <http://www.rechenkraft.net> und im Chat
> <irc://irc.euirc.net/rechenkraft>
> ------------------------------------------------------------------------
> Rechenkraft.net e.V. <http://www.rechenkraft.net/> - Non-profit
> association for the promotion of education, research and science through
> the use of networked computers
> other interesting projects
> <http://www.rechenkraft.net/wiki/index.php?title=Projekt%C3%BCbersicht>and
> help <http://www.rechenkraft.net/phpBB/viewforum.php?f=19> on our
> website www.Rechenkraft.net <http://www.rechenkraft.net> and on IRC
> <irc://irc.euirc.net/rechenkraft>
>
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.