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: 9
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2572 times and has 8 replies Next Thread
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Workunit ID has been modified

Greetings,

We have modified the workunit id in the database to a lower number. For those of you who utilize the api, you will notice that work units have decreased by 2069000000. This is to help prevent the values from reaching the 2.14 billion value.

Thanks,
-Uplinger
[May 19, 2017 5:03:58 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Sgt.Joe
Ace Cruncher
USA
Joined: Jul 4, 2006
Post Count: 7850
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified

Interesting. This must have been the second time you have had to do this. I am curious as to why 2^31 was picked as a limit versus a higher number.
Cheers
----------------------------------------
Sgt. Joe
*Minnesota Crunchers*
[May 19, 2017 9:17:15 PM]   Link   Report threatening or abusive post: please login first  Go to top 
SekeRob
Master Cruncher
Joined: Jan 7, 2013
Post Count: 2741
Status: Offline
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified

[May 19, 2017 9:34:43 PM]   Link   Report threatening or abusive post: please login first  Go to top 
adriverhoef
Master Cruncher
The Netherlands
Joined: Apr 3, 2009
Post Count: 2347
Status: Recently Active
Project Badges:
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified

Is it correct that my devices received Workunit IDs with a low number a few days before the announcement, even some before the move to IBM Cloud?
App    ModTime    Exit Outc SentTime            ReportDeadline      ReceivedTime        WorkunitId ResultId   Name
fahv 1495212599 0 1 2017-05-17T11:29:16 2017-05-27T11:29:16 2017-05-17T13:25:30 37600344 1473249386 FAHV_1001436_3j3y-7P-P1_Rigid_30911_1
fahv 1495212926 0 1 2017-05-18T04:13:02 2017-05-28T04:13:02 2017-05-18T08:28:05 38576779 1469788763 FAHV_1001452_3j3y-cO-P1_13185_0
fahv 1495217942 0 1 2017-05-08T12:24:19 2017-05-18T12:24:19 2017-05-08T15:08:48 25431469 1451426925 FAHV_1004714_4xfx_P4_4534_0
fahv 1495221240 0 1 2017-05-08T12:24:19 2017-05-18T12:24:19 2017-05-08T15:08:48 25431125 1451426572 FAHV_1004714_4xfx_P4_4352_0

fahv 1495221564 0 1 2017-05-19T16:50:34 2017-05-23T04:50:34 2017-05-19T19:19:07 35316030 1477600789 FAHV_1001411_3j3y-7P-P1_33079_1
fahv 1495224981 0 1 2017-05-10T05:02:54 2017-05-20T05:02:54 2017-05-10T06:10:15 28477802 1460609604 FAHV_1005965_4xfx_P4_9076_1


EDIT: - to answer myself - Yes, it is possible:
We have modified the workunit id in the database to a lower number. For those of you who utilize the api, you will notice that work units have decreased by 2069000000.
(Check the ModTime.)
$ date -ud@1495212599
Fri 19 May 16:49:59 UTC 2017

----------------------------------------
[Edit 2 times, last edit by adriverhoef at May 19, 2017 10:50:58 PM]
[May 19, 2017 10:38:58 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Sgt.Joe
Ace Cruncher
USA
Joined: Jul 4, 2006
Post Count: 7850
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified


Interesting reading. That discussion dates from 2011. I know programming can be tough,but I am a little surprised a fix has not yet come about. I won't complain, because their work around allows the work units to keep flowing.
Cheers
----------------------------------------
Sgt. Joe
*Minnesota Crunchers*
[May 19, 2017 10:56:58 PM]   Link   Report threatening or abusive post: please login first  Go to top 
SekeRob
Master Cruncher
Joined: Jan 7, 2013
Post Count: 2741
Status: Offline
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified


Interesting reading. That discussion dates from 2011. I know programming can be tough,but I am a little surprised a fix has not yet come about. I won't complain, because their work around allows the work units to keep flowing.
Cheers

It so happens that I also stumbled a few weeks ago on the background of 2^31... Excel 32 bit only knows 'Long' integer up to 2.14 billion, precise 2147483648 as noted in the link, where in Excel 64 bit one can go a few factors further with 'LongLong'... is this what the restriction is about, dear techs... 32 bit progs?

Why I got here, is because just converted from result name testing in the HT production version to ResultId testing which memontarily at 1562918641 which is about 584 million from the hard wall (with quorum redundancies probably closer 700,000,000). That would put us at 700m/2.5m about 275-300 days away from a needed retreat of that value.
[Jun 23, 2017 7:01:32 PM]   Link   Report threatening or abusive post: please login first  Go to top 
TPCBF
Master Cruncher
USA
Joined: Jan 2, 2011
Post Count: 2173
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified

It so happens that I also stumbled a few weeks ago on the background of 2^31... Excel 32 bit only knows 'Long' integer up to 2.14 billion, precise 2147483648 as noted in the link, where in Excel 64 bit one can go a few factors further with 'LongLong'... is this what the restriction is about, dear techs... 32 bit progs?
Not necessarily.
You would have the same problem in a 64bit program (which requires a 64bit OS, while a 32bit program will happily run on a 64 bit OS), if for that counter only a 32bit "wide" variable is being used.
And you could prevent such an overflow even in a 32bit program if a proper 64bit counter variable would be used (the "long long" type you mentioned).

Ralf
[Jun 25, 2017 5:40:23 AM]   Link   Report threatening or abusive post: please login first  Go to top 
SekeRob
Master Cruncher
Joined: Jan 7, 2013
Post Count: 2741
Status: Offline
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified

It so happens that I also stumbled a few weeks ago on the background of 2^31... Excel 32 bit only knows 'Long' integer up to 2.14 billion, precise 2147483648 as noted in the link, where in Excel 64 bit one can go a few factors further with 'LongLong'... is this what the restriction is about, dear techs... 32 bit progs?
Not necessarily.
You would have the same problem in a 64bit program (which requires a 64bit OS, while a 32bit program will happily run on a 64 bit OS), if for that counter only a 32bit "wide" variable is being used.
And you could prevent such an overflow even in a 32bit program if a proper 64bit counter variable would be used (the "long long" type you mentioned).

Ralf

The workaround in Excel 32bit VBA is dimming the large number vars as a double precision floating point (by some qualified as ill advised)... which is what I did as I do not know if any of [potential] hunting tool users have either. Tests are put up front if 32/64 so it uses the right routines, JIC

Public MyTag$
#If VBA7 Then
Public Declare PtrSafe Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef Destination As Any, ByRef Source As Any, ByVal length As Long)
...

/ot
[Jun 25, 2017 9:36:02 AM]   Link   Report threatening or abusive post: please login first  Go to top 
TPCBF
Master Cruncher
USA
Joined: Jan 2, 2011
Post Count: 2173
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Workunit ID has been modified

The workaround in Excel 32bit VBA is dimming the large number vars as a double precision floating point (by some qualified as ill advised)... which is what I did as I do not know if any of [potential] hunting tool users have either. Tests are put up front if 32/64 so it uses the right routines, JIC
Well, that's probably one of the reasons why VB(A) has such a bad reputation... devilish

As far as C goes, the "long long" integer data type (with a minimum data width of 64bits, and a range of at least −9,223,372,036,854,775,807 to +9,223,372,036,854,775,807) exists since the C99 specs (ISO since 1999, ANSI since 2000), though it didn't became a part of the C++ standard until C++11. But then pretty much all C++ compilers are also C compilers and likely supporting this data type well before that...

The issue at hand, with the WU ID being only 32bit is AFAIK not a WCG specific thing but rather BOINC wide, so in order to change that, all BOINC clients/WUs out there need to be changed at the same time, as this is something that you can't implement (easily) with the necessary backwards compatibility to cover all of thousands of clients out there in BOINC land. IIRC, SETI had run into that issue a few years ago and needed to do a similar fix as Keith mentioned...

Ralf
[Jun 25, 2017 9:03:40 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread