Commit Graph

47 Commits

Author SHA1 Message Date
David Anderson 4f66bb4c95 - added copyright and license info to .C, .cpp, .h files
- scheduler: fix bug in adaptive replication:
    if send an unreplicated job to untrusted host,
    set both wu.target_nresults and wu.min_quorum to app.target_nresults.

svn path=/trunk/boinc/; revision=15762
2008-08-06 18:36:30 +00:00
David Anderson 6af9f66b4e - DB/feeder/scheduler: change app_version.xml_doc from blob to mediumblob,
and change the correspending structure field from 64KB to 256KB
    (could increase this if needed).
    This is needed to handle app versions with lots (> 100) of files
- change LARGE_BLOB_SIZE to BLOB_SIZE a bunch of places
- Change COPROCS from vector<COPROC> to vector<COPROC*>.
    Otherwise the right virtual functions of COPROCs don't get called

svn path=/trunk/boinc/; revision=14986
2008-03-31 16:19:45 +00:00
David Anderson 13400c9516 Changes for multithread app support:
- update_versions: use __ (not :) as separator for plan class
- client: add plan_class to APP_VERSION;
    an app version is now identified by platform/version/plan_class
- client CPU scheduler: don't assume apps use 1 CPU
- client: add avg_ncpus, max_cpus, flops, cmdline to RESULT
- scheduler: implement app planning scheme

Other changes:

- client: if symlink() fails, make a XML soft link instead
    (for Unix running off a FAT32 FS)
- client: don't accept nonpositive resource share from AMS
- daemons and DB: check for error returns from enumerations,
    and exit if so.  Thus, if the MySQL server goes down,
    all the daemons will soon exit.
    The cron script will restart them every 5 min,
    so when the DB server comes back up so will the project.
- web: show empty max CPU % as ---
- API: get rid of all_threads_cpu_time option (always the case now)


svn path=/trunk/boinc/; revision=14966
2008-03-27 18:25:29 +00:00
David Anderson a09e19b8dc - scheduler: add a general method for excluding hosts from job distribution.
config.xml has optional <ban_os> and <ban_cpu> elements,
    which contain regular expressions matched against
    os_name\tos_version and p_vendor\tp_model.
    If a host matches either one, it's not sent jobs.
- scheduler: fix bug in job assignment
- scheduler: initial (incompleted, commented-out) code for
    matchmaker scheduling
- server programs: declare "SCHED_CONFIG config" in sched_config.C;
    remove declarations of it from all other .C files
    (because I added a vector to it, I can no longer use memset
    to initialize it to zero; instead, it must be a global variable,
    not an automatic)

svn path=/trunk/boinc/; revision=14783
2008-02-25 18:05:04 +00:00
David Anderson 42d2abfa34 - scheduler: code cleanup, remove "SCHED_MSG_LOG::" from a zillion places
svn path=/trunk/boinc/; revision=14774
2008-02-21 21:00:58 +00:00
Frank Thomas 3bfc78b511 Updated the postal address of the Free Software Foundation in all license headers. See http://lists.ssl.berkeley.edu/pipermail/boinc_dev/2007-October/008939.html for reference.
svn path=/trunk/boinc/; revision=13804
2007-10-09 11:35:47 +00:00
David Anderson 0505c15ec8 - boinc_cmd: improve output of --help
- scheduler: remove giant log output when use <workload_sim>
- db_purge: fix crash if nothing logged

svn path=/trunk/boinc/; revision=13556
2007-09-08 21:34:20 +00:00
David Anderson c99833a7c9 - scheduler: don't show resource share in msgs in cases where
it's not used.
- db_purge: add "no_archive" option

svn path=/trunk/boinc/; revision=13430
2007-08-21 20:07:50 +00:00
David Anderson 7ea662932c - add new stats site
- back end: use boinc_mkdir to get permissions right

html/inc/
    stats_sites.inc
lib/
    filesys.C
sched/
    db_dump.C
    db_purge.C
    feeder.C

svn path=/trunk/boinc/; revision=13033
2007-06-26 21:14:58 +00:00
David Anderson 3431d99471 svn path=/trunk/boinc/; revision=12414 2007-04-18 20:49:58 +00:00
David Anderson 9929015c1e xml_escape bug
svn path=/trunk/boinc/; revision=10238
2006-06-01 19:59:57 +00:00
Bruce Allen 3f8792bf2a scheduler: clearer messages to use if refusing to accept a result.
DB purger: make sleep interval a command line option (current 600
                 secs is still the default value).

svn path=/trunk/boinc/; revision=10236
2006-06-01 13:51:10 +00:00
David Anderson 6dfea20db2 url_escape speedup
svn path=/trunk/boinc/; revision=9938
2006-04-17 22:41:29 +00:00
Eric J. Korpela d9ee426071 Added explicit includes of "config.h" in many files to enable use of compilers
without a -include command line option.

svn path=/trunk/boinc/; revision=8896
2005-11-21 18:34:44 +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 12c5845715 *** empty log message ***
svn path=/trunk/boinc/; revision=7291
2005-08-12 19:19:46 +00:00
Jeff Cobb 0680f23b68 *** empty log message ***
svn path=/trunk/boinc/; revision=7280
2005-08-11 23:53:24 +00:00
David Anderson 9276415e06 *** empty log message ***
svn path=/trunk/boinc/; revision=7234
2005-08-11 00:17:00 +00:00
David Anderson a400b6df5b *** empty log message ***
svn path=/trunk/boinc/; revision=6656
2005-07-17 19:52:44 +00:00
Bruce Allen bc7a5cf597 Reduced redundant verbosity in debug mode
svn path=/trunk/boinc/; revision=5453
2005-02-17 03:17:49 +00:00
David Anderson 8d0ab453b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5443
2005-02-16 23:17:43 +00:00
David Anderson 09d0878732 *** empty log message ***
svn path=/trunk/boinc/; revision=5244
2005-01-29 23:29:54 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +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 c60fb03c27 *** empty log message ***
svn path=/trunk/boinc/; revision=4946
2004-12-27 21:53:38 +00:00
David Anderson c417859785 *** empty log message ***
svn path=/trunk/boinc/; revision=4944
2004-12-27 21:14:18 +00:00
David Anderson 040d847c63 *** empty log message ***
svn path=/trunk/boinc/; revision=4943
2004-12-27 06:54:23 +00:00
Bruce Allen 10ce5e6759 Write to logs a bit less often
svn path=/trunk/boinc/; revision=4793
2004-12-08 11:59:31 +00:00
Bruce Allen 92b84e9796 Added additional normal and debug log output to db_purge
svn path=/trunk/boinc/; revision=4792
2004-12-08 11:17:41 +00:00
Bruce Allen 7e10e25e8b Checking new RCS ID tags OK
svn path=/trunk/boinc/; revision=4786
2004-12-08 00:26:12 +00:00
Bruce Allen ce142bc42d Added additional options -gzip, -zip, -max_wu_per_file to db_purge. The
compression options are 'efficient' in that they do not write an uncompressed
file then compress -- they go straight to compressed.  SIGHUP and lockfile
shutdown signals are properly caught and close compressed files and DB cleanly.

svn path=/trunk/boinc/; revision=4782
2004-12-07 22:54:54 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
Bruce Allen 5affc00460 - Fixed errors in db_purge. If -max argument >= 1000, then it didn't
work because purged_workunits was reset to zero in do_pass(). Also,
      max_number_workunits_to_purge was un-initialized if no -max argument
      was given.  David, please double-check these changes.

svn path=/trunk/boinc/; revision=4688
2004-11-30 15:58: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
Lana Alber f00e0f87f8 *** empty log message ***
svn path=/trunk/boinc/; revision=4367
2004-10-20 22:12:30 +00:00
Lana Alber 2538b63c6f *** empty log message ***
svn path=/trunk/boinc/; revision=4362
2004-10-20 20:54:14 +00:00
Lana Alber 73eec1d3ec *** empty log message ***
svn path=/trunk/boinc/; revision=4361
2004-10-20 19:38:10 +00:00
Lana Alber 2bed716603 *** empty log message ***
svn path=/trunk/boinc/; revision=4341
2004-10-18 23:33:04 +00:00
Lana Alber 52c51fbae4 *** empty log message ***
svn path=/trunk/boinc/; revision=4333
2004-10-15 23:02:44 +00:00
Lana Alber bfb42fbaf8 *** empty log message ***
svn path=/trunk/boinc/; revision=4330
2004-10-15 06:36:45 +00:00
Lana Alber 5cb8ae36b4 *** empty log message ***
svn path=/trunk/boinc/; revision=4326
2004-10-13 23:40:06 +00:00
David Anderson 01786cde87 *** empty log message ***
svn path=/trunk/boinc/; revision=4312
2004-10-10 03:16:30 +00:00
Lana Alber 32cf5238e0 *** empty log message ***
svn path=/trunk/boinc/; revision=4208
2004-09-20 21:05:45 +00:00
David Anderson 50675cb7d9 *** empty log message ***
svn path=/trunk/boinc/; revision=4193
2004-09-13 22:00:45 +00:00
Lana Alber 7a5958c6d6 *** empty log message ***
svn path=/trunk/boinc/; revision=4192
2004-09-13 21:56:02 +00:00
David Anderson a99f70625f *** empty log message ***
svn path=/trunk/boinc/; revision=4191
2004-09-13 19:05:19 +00:00
Lana Alber 63c4f987da *** empty log message ***
svn path=/trunk/boinc/; revision=4190
2004-09-13 18:10:23 +00:00