Commit Graph

260 Commits

Author SHA1 Message Date
Bruce Allen feb50863c2 More sched locality and other scheduler changes.
- Address David's comment of Feb 2.  Now properly reduce the
disk size resource requirements of a WU being sent if the
file is already on the host, or already included in a previous
WU being sent. DAVID: please check that reply_copy.wus.pop_back()
is right.
- For this, define a function host_has_file().  This can also
be used in the future for more intelligent file deletion
schemes.
- Make warnings to upgrade old clients have low priority until
3 days before deadline.  Then high priority.
- Fix sign error in messages sent to users about insufficient
disk space.
- Move extract_filename() from sched_locality.C to sched_util.C
- Pretty up the ordered list of URLs printed for a given host.
- I've even tested these changes before committing them!

svn path=/trunk/boinc/; revision=5382
2005-02-10 06:21:58 +00:00
David Anderson 7df0115850 *** empty log message ***
svn path=/trunk/boinc/; revision=5376
2005-02-09 20:06:15 +00:00
Bruce Allen ac9b8547e3 inserted comment unintentionally!
svn path=/trunk/boinc/; revision=5372
2005-02-09 04:43:30 +00:00
Bruce Allen 3fecacdf78 Missing space
svn path=/trunk/boinc/; revision=5371
2005-02-09 04:42:03 +00:00
Bruce Allen 84a2eb306e Added new tag pair to config.xml:
<min_core_client_version_announced> N </min_core_client_version_announced>
<min_core_client_upgrade_deadline>  M </min_core_client_upgrade_deadline>
This is used to warn users in advance if a new minimum core client is going
to be required.  Users have until time 'M' (Unix epoch time(2) format)
to upgrade. Not yet tested.

svn path=/trunk/boinc/; revision=5370
2005-02-09 04:38:19 +00:00
David Anderson daa7c4559d *** empty log message ***
svn path=/trunk/boinc/; revision=5335
2005-02-06 21:26:21 +00:00
Bruce Allen a27705fd59 Improvements to the file deletion mechanism. Now try removing files if
no work was sent to hosts, and available space<0 OR if available space>0
      but work was unfeasible because the disk bound requirements of the work
      exceeded the available space.
Added a new config.xml boolean element called 'choose_download_url_by_timezone'
      This requires that projects provide a 2-column file in the project root named
      'download_servers'.  An example is:
           3600   http://einstein.aei.mpg.de
         -21600   http://einstein.phys.uwm.edu
      The first column is offset from UTC in seconds, and the second column is the URL
      of the download server.  When enabled, the scheduler will replace the download
      path for data and executables by a list of download URLs, ordered by proximity
      to the host's timezone.  The download path must start with the
      BOINC default download/ and the different download servers must have identical
      file paths under download/, in other words they must be mirrored.

svn path=/trunk/boinc/; revision=5275
2005-02-02 18:13:00 +00:00
David Anderson 896d0b8a46 *** empty log message ***
svn path=/trunk/boinc/; revision=5257
2005-01-31 22:19:03 +00:00
Bruce Allen 8b6402cf21 More of the same, for reviewing by David
svn path=/trunk/boinc/; revision=5251
2005-01-31 19:34:43 +00:00
Bruce Allen 60c569a644 Extended scheduler run-time debug option to include writing of requests as
well as replies to a file.

svn path=/trunk/boinc/; revision=5248
2005-01-31 16:10:49 +00:00
Bruce Allen c4376b235c - scheduler changes: if host is not getting any work because available
disk space is < 0, delete files which have <sticky> and <report_on_rpc>
      set.  Note that (1) this deletion simply removes the <sticky> tag, so
      file won't be deleted until after all WU that depend upon it are
      completed and (2) the mechanism to determine which file to delete
      could be improved. TODO: improve messages to hosts which have no file
      space and ALSO have no files to delete.

- scheduler changes: locality scheduling.  Clean up code which makes a
      deterministic search of results to delete.  Data files names can not
      contain the "~" character!

- scheduler changes: added a simple debugging mechanism for scheduler
      replies.  If you touch a file named 'debug_sched' in the project
      root, then files called sched_reply_HOSTID_RPCNO will be created
      under cgi-bin/ which contain the scheduler replies.  You can turn on
      this mechanism for some time to study the scheduler replies.
      In a little while I will add a similar debugging feature which also
      prints the corresponding scheduler requests.

svn path=/trunk/boinc/; revision=5247
2005-01-31 11:45:45 +00:00
David Anderson 05c9c5d782 *** empty log message ***
svn path=/trunk/boinc/; revision=5215
2005-01-27 00:34:35 +00:00
David Anderson cc63aaf090 *** empty log message ***
svn path=/trunk/boinc/; revision=5182
2005-01-21 07:54:15 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
David Anderson b7a7cd825f *** empty log message ***
svn path=/trunk/boinc/; revision=5151
2005-01-20 18:50:49 +00:00
David Anderson 1f5ef06046 *** empty log message ***
svn path=/trunk/boinc/; revision=5140
2005-01-19 05:34:18 +00:00
Bruce Allen f31b244f90 Modified CVS id strings. After some fussing with different versions
of gcc to try and force them to not complain with -Wall but to always
include this, I decided to take a simpler approach.  All these strings
now have global linkage.  To prevent namespace conflicts they all
have different names.  For the record, the variable extension is a hash made of the first ten characters of the md5sum of the file path, eg:
    md5hash=`boinc/api/x_opengl.C | md5sum | cut -c 1-10`

svn path=/trunk/boinc/; revision=4979
2005-01-02 18:29:53 +00:00
David Anderson 14daf38eee *** empty log message ***
svn path=/trunk/boinc/; revision=4910
2004-12-20 21:37:20 +00:00
Bruce Allen a24afe2b67 Moved RCSID strings to the end of all .c, .C and .cpp files as per
David's request.

svn path=/trunk/boinc/; revision=4787
2004-12-08 00:40:19 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
Bruce Allen 3983504893 Redid 'fix' to scheduler bug from 3 December 2004. In fact the
fix was incomplete. In order for it to work as intended, I would
have also had to modify SCHED_RESULT_ITEM::parse to copy the
additional needed fields into the in-memory structure.  But this
is fragile.  The next time some additional fields are added to the
result table, they would have to be incorporated here as well, to
ensure that SET followed by UPDATE is the identity operation.  So
I did a more graceful and robust fix.  Simply set result.id=0 for
those results that have already been received or which for other
reasons should not be modified in the database, then skip these
when updating.

svn path=/trunk/boinc/; revision=4763
2004-12-05 21:53:32 +00:00
David Anderson 92e9c8a6b6 *** empty log message ***
svn path=/trunk/boinc/; revision=4681
2004-11-29 22:26:34 +00:00
Bruce Allen 45525eade1 - Added static volatile const char *BOINCrcsid="$Id$"; string to
the top of all .C files.  This means that 'string' or 'ident'
run on an executable will tell you the exact file versions used
in building it, since CVS replaces $Id$ with a complete version ID
string.  Declaration is volatile so that the compiler won't remove
it even under agressive optimizations.

svn path=/trunk/boinc/; revision=4610
2004-11-20 07:32:32 +00:00
David Anderson 49b256f338 *** empty log message ***
svn path=/trunk/boinc/; revision=4280
2004-10-01 07:49:01 +00:00
David Anderson 900042214d *** empty log message ***
svn path=/trunk/boinc/; revision=4251
2004-09-27 19:44:40 +00:00
David Anderson 45b76a2180 *** empty log message ***
svn path=/trunk/boinc/; revision=4238
2004-09-24 20:48:07 +00:00
David Anderson e6cdca41e0 *** empty log message ***
svn path=/trunk/boinc/; revision=4237
2004-09-24 20:17:52 +00:00
David Anderson d86464b357 *** empty log message ***
svn path=/trunk/boinc/; revision=4218
2004-09-21 20:04:56 +00:00
David Anderson 161fb2868f *** empty log message ***
svn path=/trunk/boinc/; revision=4189
2004-09-13 18:05:54 +00:00
David Anderson 2c26a8f4a9 *** empty log message ***
svn path=/trunk/boinc/; revision=4121
2004-08-27 22:46:12 +00:00
Rom Walton 17221cb133 *** empty log message ***
svn path=/trunk/boinc/; revision=4090
2004-08-21 17:35:02 +00:00
Rom Walton 85870e7224 *** empty log message ***
svn path=/trunk/boinc/; revision=4073
2004-08-18 01:49:46 +00:00
David Anderson 652d7d3986 *** empty log message ***
svn path=/trunk/boinc/; revision=4054
2004-08-12 13:36:05 +00:00
Brian Boshes 13200c3f4c *** empty log message ***
svn path=/trunk/boinc/; revision=3999
2004-08-05 22:14:23 +00:00
Rom Walton 1a089a292a *** empty log message ***
svn path=/trunk/boinc/; revision=3991
2004-08-05 20:58:26 +00:00
Rom Walton 8eb76a16bc *** empty log message ***
svn path=/trunk/boinc/; revision=3990
2004-08-05 19:55:45 +00:00
David Anderson 64bf0d7651 *** empty log message ***
svn path=/trunk/boinc/; revision=3978
2004-08-04 15:30:52 +00:00
David Anderson 8c1f2ee9f2 *** empty log message ***
svn path=/trunk/boinc/; revision=3976
2004-08-04 10:34:33 +00:00
Daniel Hsu 1eb4a7a622 *** empty log message ***
svn path=/trunk/boinc/; revision=3972
2004-08-03 22:52:10 +00:00
Rom Walton 551d12b00c *** empty log message ***
svn path=/trunk/boinc/; revision=3970
2004-08-03 21:51:30 +00:00
Rom Walton f613681863 *** empty log message ***
svn path=/trunk/boinc/; revision=3955
2004-07-27 23:29:27 +00:00
Rom Walton 355f3c203d *** empty log message ***
svn path=/trunk/boinc/; revision=3953
2004-07-27 22:42:06 +00:00
Rom Walton e828053512 *** empty log message ***
svn path=/trunk/boinc/; revision=3950
2004-07-24 02:29:22 +00:00
David Anderson 29d50db100 checkin changes
svn path=/trunk/boinc/; revision=3948
2004-07-24 00:09:28 +00:00
David Anderson 3f67f12a25 *** empty log message ***
svn path=/trunk/boinc/; revision=3933
2004-07-21 23:48:56 +00:00
David Anderson ecf08e05cd *** empty log message ***
svn path=/trunk/boinc/; revision=3880
2004-07-15 18:54:17 +00:00
Karl Chen afd778de8a *** empty log message ***
svn path=/trunk/boinc/; revision=3863
2004-07-13 13:54:09 +00:00
Karl Chen bc8fce1808 *** empty log message ***
svn path=/trunk/boinc/; revision=3856
2004-07-13 10:36:18 +00:00
David Anderson 83c300795d message_hangler.C
svn path=/trunk/boinc/; revision=3837
2004-07-10 00:11:20 +00:00
Rom Walton 62a69c30e5 Performance Improvements
svn path=/trunk/boinc/; revision=3800
2004-07-06 21:44:59 +00:00