Commit Graph

1070 Commits

Author SHA1 Message Date
Reinhard Prix 38ac7136a9 correct 'return'.
svn path=/trunk/boinc/; revision=8365
2005-09-30 13:04:40 +00:00
Reinhard Prix 6b101e5e31 "everything that can go wrong, WILL go wrong!"
svn path=/trunk/boinc/; revision=8364
2005-09-30 12:54:12 +00:00
Reinhard Prix c8d09966cf Install header-files necessary for building workunit-generator externally linked to BOINC.
svn path=/trunk/boinc/; revision=8313
2005-09-29 11:56:28 +00:00
David Anderson 941d7e21d8 fix DEBUG symbol collision
svn path=/trunk/boinc/; revision=8189
2005-09-26 23:28:48 +00:00
Jeff Cobb 5218ad9bdf Jeff - pull out old hier dir/url hash function
svn path=/trunk/boinc/; revision=8163
2005-09-23 21:09:00 +00:00
David Anderson 20dcd8ae39 fix "no new work" bug
svn path=/trunk/boinc/; revision=8136
2005-09-22 00:15:43 +00:00
Bruce Allen 5a931c2612 Scheduler: when host does not have enough memory, message to this effect
now contains information about how many more bytes of memory are needed.

svn path=/trunk/boinc/; revision=8034
2005-09-16 10:15:31 +00:00
Bruce Allen 5e7c9472ae poor programming practice
svn path=/trunk/boinc/; revision=8029
2005-09-15 15:15:07 +00:00
Bruce Allen a6bf4fc4d3 - Backend: To prevent possible namespace confusion in the future, changed the
name of elapsed_time() to elapsed_wallclock_time().
- Backend logging statements on exit() which echo elapsed run time to logs now
      do this with much higher printed precision.
- Backend logging, separate scheduler requests with an almost blank line

svn path=/trunk/boinc/; revision=8027
2005-09-15 15:07:41 +00:00
Bruce Allen d20a23d0bc Bump delay time up to nearest second in case clocks at client end have
low resolution.

svn path=/trunk/boinc/; revision=8000
2005-09-13 13:36:11 +00:00
Bruce Allen eaa0ddead1 Scheduler: if admin has set min_sendwork_interval in config file, then
include a delay request at least this big in EVERY sched reply.  Else
if the hardwired standard delay in the client is smaller than
min_sendwork_interval, the client will keep getting connections
refused at the server side.  David, please give this a glance.

svn path=/trunk/boinc/; revision=7999
2005-09-13 13:25:01 +00:00
Bruce Allen 8b0568d86a Add BOINC_RCSID_ tags to those .C, .c and .cpp files that don't yet have
them.

svn path=/trunk/boinc/; revision=7985
2005-09-13 09:01:56 +00:00
Bruce Allen 266fd12617 Scheduler: when resending 'lost' or 'ghost' WU, don't count this against
the daily result quota for the host.

svn path=/trunk/boinc/; revision=7983
2005-09-12 23:49:16 +00:00
Bruce Allen dd0e9f6a71 Transitioner was doing incorrect accounting for OVER results.
svn path=/trunk/boinc/; revision=7971
2005-09-11 10:33:47 +00:00
David Anderson a3c7b0e0fb *** empty log message ***
svn path=/trunk/boinc/; revision=7966
2005-09-11 00:08:21 +00:00
David Anderson 98e6124369 fix validator/transitioner race
svn path=/trunk/boinc/; revision=7963
2005-09-10 06:09:55 +00:00
David Anderson c1a29fe26a show app versions as single ints
svn path=/trunk/boinc/; revision=7734
2005-09-02 20:37:26 +00:00
David Anderson e3e70b9eb4 quorum size doesn't depend on nresults
svn path=/trunk/boinc/; revision=7710
2005-09-01 17:28:29 +00:00
David Anderson 99c9679b63 versions are major/minor/release
svn path=/trunk/boinc/; revision=7614
2005-08-31 00:18:36 +00:00
Jeff Cobb 52d8090ee4 *** empty log message ***
svn path=/trunk/boinc/; revision=7536
2005-08-27 15:13:53 +00:00
David Anderson 5cf2cb09b9 *** empty log message ***
svn path=/trunk/boinc/; revision=7535
2005-08-26 22:48:32 +00:00
David Anderson 8a5f66a616 *** empty log message ***
svn path=/trunk/boinc/; revision=7534
2005-08-26 22:47:29 +00:00
David Anderson 8a72aef655 remove email munge code
svn path=/trunk/boinc/; revision=7518
2005-08-26 22:26:26 +00:00
David Anderson 041b6f24c6 *** empty log message ***
svn path=/trunk/boinc/; revision=7492
2005-08-25 23:07:58 +00:00
Jeff Cobb b2ca67a47b *** empty log message ***
svn path=/trunk/boinc/; revision=7478
2005-08-24 21:55:37 +00:00
Eric J. Korpela 8e6a30f01f Added include of strings.h to pick up definition of rindex.
svn path=/trunk/boinc/; revision=7463
2005-08-22 19:29:27 +00:00
Bruce Allen 4d0bcfbe27 Restored 'delete antiques' code overwritten by Jeff Cobb
Now delete files in increasing mtime order
Additional paranoia to avoid deleting 'the wrong' files if there
  is a configuration or other user/admin error
Use C++ string type for storage efficiency in list
Only delete antique files when there is no OTHER file deletion to do

svn path=/trunk/boinc/; revision=7461
2005-08-20 02:45:49 +00:00
Bruce Allen 0d4174f61f Compile fix for OS X.
svn path=/trunk/boinc/; revision=7378
2005-08-16 23:47:51 +00:00
David Anderson 66fbe0cfbe *** empty log message ***
svn path=/trunk/boinc/; revision=7360
2005-08-16 20:48:21 +00:00
Jeff Cobb 12c5845715 *** empty log message ***
svn path=/trunk/boinc/; revision=7291
2005-08-12 19:19:46 +00:00
David Anderson d3876a2c6c bool XML notation
svn path=/trunk/boinc/; revision=7285
2005-08-12 18:31:47 +00:00
Jeff Cobb 0680f23b68 *** empty log message ***
svn path=/trunk/boinc/; revision=7280
2005-08-11 23:53:24 +00:00
David Anderson c487a35959 fix compile warnings
svn path=/trunk/boinc/; revision=7266
2005-08-11 17:41:08 +00:00
David Anderson 9276415e06 *** empty log message ***
svn path=/trunk/boinc/; revision=7234
2005-08-11 00:17:00 +00:00
Bruce Allen 8f66bece15 Corrected misleading message to users about free disk space.
svn path=/trunk/boinc/; revision=7212
2005-08-08 20:36:46 +00:00
Bruce Allen cb9349bcf9 Typo
svn path=/trunk/boinc/; revision=7210
2005-08-08 09:34:11 +00:00
Bruce Allen f0d55c9fd1 Fix/improve comments
svn path=/trunk/boinc/; revision=7209
2005-08-08 09:22:34 +00:00
Bruce Allen a59d530bb4 file_deleter: added a new argument -delete_antiques.
If this switch is enabled on the command line, then
periodically (once per hour) removes any files in the
upload/ directory that are older than the oldest WU in the
database.  These files are created when BOINC clients
return work really late after the deadline -- so late that
the corresponding WU has been deleted from the database.
About half the results in the E@H upload/ directory were
of this form.  The 'find' command is used to locate such
files.  This is potentially a dangerous operation since
if we find then delete the wrong file(s) all hell could
break lose on the server.  So a lot of 'paranoia and
sanity checking' is done before unlink(path) is called,
and we bail out at the first sign of something odd.

svn path=/trunk/boinc/; revision=7208
2005-08-08 09:11:37 +00:00
Bruce Allen 40321131e9 Improved wording of message to users about a file scheduled for
deletion by BOINC.  Some users thought that perhaps action was
needed on their part.

svn path=/trunk/boinc/; revision=7191
2005-08-05 12:55:19 +00:00
Bruce Allen a0b30471c8 File deleter: only log message at level CRIT if we fail to
file an output file for a SUCCESSFUL result.  Failure to
find an output file for an UNSUCCESSFUL result is OK, and
just logged at level DEBUG.

svn path=/trunk/boinc/; revision=7184
2005-08-04 08:56:20 +00:00
David Anderson 18bf9ebf22 *** empty log message ***
svn path=/trunk/boinc/; revision=7177
2005-08-04 03:58:00 +00:00
David Anderson 9898cdd8e3 split up scheduler code
svn path=/trunk/boinc/; revision=7171
2005-08-04 03:50:04 +00:00
David Anderson 6fa5d3f7e2 replace wait3(), wait4() with waitpid()
svn path=/trunk/boinc/; revision=7170
2005-08-04 00:12:50 +00:00
Bruce Allen b3d49b64c7 scheduler: update of the resend-lost-work algorithm. Now try and
extend deadline somewhat, or cancel rather than resend work if
it's not feasible.

svn path=/trunk/boinc/; revision=6982
2005-08-02 19:38:43 +00:00
Jeff Cobb 6e87b15913 *** empty log message ***
svn path=/trunk/boinc/; revision=6885
2005-08-01 21:05:51 +00:00
Bruce Allen 6a978c3845 scheduler: don't resend a result to a host if any of the following is true:
[1] WU error flag set
      [2] WU already has canonical result
      [3] (report_deadline - current_time) < 25% of WU delay bound
      If any of these conditions is true, set the report deadline to the
      current time and set the WU transition time to the current time.
      The transitioner will then 'do the right thing'.

svn path=/trunk/boinc/; revision=6871
2005-07-29 22:38:27 +00:00
Bruce Allen a009ee9af7 scheduler: fixed to checkins on 28 July
(1) Put core client version number into wreq BEFORE searching for
          an app version. Problem is that reply.wreq.core_client_version was only being set in
          send_work(), which was too late for the resend_lost_work() part
          of the code.  You might want to move all the initialization of reply.wreq
          out of send_work().   The core client version is needed to see if the
          app is compatible with it when calling get_app_version().
      (2) In retransmitting lost work, do NOT set the deadline to new
          values.  Else the result will never time out!  But DO reset
          the sent_time, to indicate that result was resent.
transitioner:
          In the transitioner, make the next WU transition time be the min
          of deadlines of the in progress results, NOT the min of the
          sent_time+delay bound.  Unless a project wants to do dynamic
          adjustment of delay bounds for in progress results this should be OK.
          CPDN people: I don't think this does any harm for trickles but
          you might want to give it a quick look to be 100% sure.

svn path=/trunk/boinc/; revision=6870
2005-07-29 08:13:23 +00:00
Bruce Allen bedb30b032 In retransmitting lost work, do NOT set the send_time and the deadline to new
values.  Else the result will never time out!  (David, would it be OK to
simply modify the send_time but NOT the deadline?  This would make it easy
to see in the database that the result is being resent.)

svn path=/trunk/boinc/; revision=6868
2005-07-28 22:21:46 +00:00
Bruce Allen 3282d6125d David this is a bug fix for the 'resending lost results' part of the
scheduler.

Problem is that reply.wreq.core_client_version was only being set in
send_work(), which was too late for the resend_lost_work() part
of the code.  You might want to move all the initialization of reply.wreq
out of send_work().   The core client version is needed to see if the
app is compatible with it when calling get_app_version().

svn path=/trunk/boinc/; revision=6867
2005-07-28 15:12:51 +00:00
David Anderson 3f785e8bdd resend lost results
svn path=/trunk/boinc/; revision=6866
2005-07-28 10:13:30 +00:00