Commit Graph

94 Commits

Author SHA1 Message Date
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 823df51238 - client: allow up to a day (rather than work_buf_min()) to elapsed
between completing a result and reporting it.
- back end: added <httpd_user> config option:
    Web server user name (used by file deleter)
- back end: don't report unparsed XML in config.xml as an error

client/
    app.h
    work_fetch.C
lib/
    shmem.C
sched/
    file_deleter.C
    file_upload_handler.C
    sched_config.C,h
    show_shmem.C

svn path=/trunk/boinc/; revision=13039
2007-06-27 20:09:18 +00:00
David Anderson f5d94818dd - added "census", a program that counts up how much RAC
there is for each HR class, and writes it to a file.
    This will be used soon for HR support in the feeder.
- split the HR code into hr.C,h (stuff used by both census and scheduler)
    and sched_hr.C (stuff used only by the scheduler)
- database: change DB_CREDITED_JOB to treat workunitid
    as a double (which it is) rather than a long.
    BTW, long == int.
- fixed lots of compile warnings in the server code

db/
    boinc_db.C,h
lib/
    boinc_cmd.C
    miofile.C
    util.C
sched/
    Makefile.am
    census.C (new)
    feeder.C
    file_deleter.C
    file_upload_handler.C
    handle_request.C
    hr.C,h (new)
    main.C
    sample_assimilator.C
    sample_work_generator.C
    sched_array.C
    sched_hr.C,h
    sched_send.C
    server_types.C
    transitioner.C
    validator.C

svn path=/trunk/boinc/; revision=12970
2007-06-20 22:34:06 +00:00
David Anderson 45f04aa04b - back end: make it possible to run multiple instances of make_work,
for WUs of different applications
    (need to count unsent results separately by app)
- feeder: major code cleanup
    - application interleaving (for -allapps) is now done
        by building a static slot-to-app array "app_indices".
        Fractional weights now work correctly.
    - enum sizes (for -allapps) are now precomputed
        in an array "enum_sizes"
    - rename "found" (confusing!!) to "collision"
    - swapped the names of mod_select_clause and select_clause,
        to reflect what they actually are
- file deleter: in finding oldest WU, order by id instead of create_time
    (there's no index on create_time)
- user web: show "merge by name" only to host owner
- add cpu_scheduler_period() member to GLOBAL_PREFS
    (so you don't have to multiply by 60 everywhere)
- infinite() fix for HPUX

client/
    cpu_sched.C
    cs_cmdline.C
    cs_scheduler.C
    rrsim_test.C
    sim.C
    work_fetch.C
html/user/
    hosts_user.php
lib/
    parse.h
    prefs.h
sched/
    feeder.C
    file_deleter.C
    make_work.C
    sample_work_generator.C
    sched_util.C,h
tools/
    updater.C

svn path=/trunk/boinc/; revision=12968
2007-06-20 16:27:27 +00:00
David Anderson 826e65f8d0 - client simulator: fix cpu_sched_rr_only bug
- boinc_cmd: canonicalize URLs
- user web: fix link to Top Teams
- back end: remove code related to alternate download dir

client/
    cpu_sched.C
    sim.C
html/
    inc/
        stats_sites.inc
    user/
        stats.php
lib/
    boinc_cmd.C
sched/
    file_deleter.C
    sched_config.C,h

svn path=/trunk/boinc/; revision=12694
2007-05-18 22:02:51 +00:00
David Anderson 0daa5a8802 - translation.inc: backed out change of 7 May;
we need to use " to expand $PROJECT var
- scheduler:
    take work_buf_min into account in deciding whether
    a result will be reported by its deadline.
- all back end programs:
    better error message if can't parse config file

html/inc/
    translation.inc
sched/
    *.C

svn path=/trunk/boinc/; revision=12652
2007-05-11 16:30:13 +00:00
David Anderson 2e7b82b631 - scheduler: added (correct this time!) support for
<alt_platform> tags in scheduler requests.
    - file_deleter: add check for -dont_delete_batches 

    sched/
        file_deleter.C
        handle_request.C
        sched_array.C,h
        sched_locality.C,h
        sched_resend.C,h
        sched_send.C,h
        server_types.h

svn path=/trunk/boinc/; revision=12512
2007-04-30 21:19:24 +00:00
David Anderson 564504eff6 svn path=/trunk/boinc/; revision=12402 2007-04-17 17:12:44 +00:00
David Anderson 81effa6a7b *** empty log message ***
svn path=/trunk/boinc/; revision=12127
2007-02-21 16:26:51 +00:00
David Anderson f7d648e350 *** empty log message ***
svn path=/trunk/boinc/; revision=12075
2007-02-13 21:41:07 +00:00
Bruce Allen 4d8cc8367e server: file_deleter would turn off -delete_antiques if it encountered a
stale .nfs* lockfile which was more than 60 days older than the oldest WU.
This should not happen! After these modifications, antique deletion
will not be turned off, but a CRITICAL error message will be logged.

svn path=/trunk/boinc/; revision=11548
2006-11-19 11:39:01 +00:00
David Anderson d22c55147b *** empty log message ***
svn path=/trunk/boinc/; revision=11501
2006-11-09 00:20:14 +00:00
Bruce Allen 089f44cd0d file_deleter: if deleting antique files, follow links when
finding the files.  This allows NFS mounting of the upload
directory, pointed to by a symbolic link.

svn path=/trunk/boinc/; revision=10302
2006-06-10 13:41:47 +00:00
David Anderson 3199549ec8 *** empty log message ***
svn path=/trunk/boinc/; revision=10259
2006-06-07 00:09:05 +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 f8776ebd8c fix warnings
svn path=/trunk/boinc/; revision=8739
2005-10-23 07:19:03 +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 c1a29fe26a show app versions as single ints
svn path=/trunk/boinc/; revision=7734
2005-09-02 20:37: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
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
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 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
Jeff Cobb 6e87b15913 *** empty log message ***
svn path=/trunk/boinc/; revision=6885
2005-08-01 21:05:51 +00:00
Jeff Cobb e98554319c *** empty log message ***
svn path=/trunk/boinc/; revision=6822
2005-07-26 22:14:55 +00:00
David Anderson a400b6df5b *** empty log message ***
svn path=/trunk/boinc/; revision=6656
2005-07-17 19:52:44 +00:00
David Anderson 197db0a3c5 *** empty log message ***
svn path=/trunk/boinc/; revision=6281
2005-06-02 07:04:29 +00:00
David Anderson 23380d7e84 *** empty log message ***
svn path=/trunk/boinc/; revision=6255
2005-05-26 20:42:35 +00:00
David Anderson 3bb938159e *** empty log message ***
svn path=/trunk/boinc/; revision=6253
2005-05-26 20:23:24 +00:00
David Anderson 7df0115850 *** empty log message ***
svn path=/trunk/boinc/; revision=5376
2005-02-09 20:06:15 +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
David Anderson 98e93a0a5d *** empty log message ***
svn path=/trunk/boinc/; revision=5029
2005-01-08 06:54:03 +00:00
Bruce Allen f39ef7a1c1 My motto today is 'third time lucky'
svn path=/trunk/boinc/; revision=4989
2005-01-03 18:06:57 +00:00
Bruce Allen 2aa7f70f8c Typo
svn path=/trunk/boinc/; revision=4988
2005-01-03 18:04:48 +00:00
Bruce Allen c987c69390 David, you owe me a beer.
svn path=/trunk/boinc/; revision=4987
2005-01-03 18:00:53 +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 66950e2822 replace bad filename hashing function
svn path=/trunk/boinc/; revision=4975
2005-01-02 07:44:40 +00:00
David Anderson 70472e1617 *** empty log message ***
svn path=/trunk/boinc/; revision=4908
2004-12-20 20:47:25 +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 df0f066a69 file_deleter logs strerror(errno) if unable to remove a result file.
svn path=/trunk/boinc/; revision=4677
2004-11-29 09:47:48 +00:00
Bruce Allen bdfb8e143f - Added command-line options -preserve_wu_file and -preserve_result_files
to the file deleter.  This are useful to implement <no_delete/>
      for all input or output files respectively.
- Documented <no_delete/> file tag.

svn path=/trunk/boinc/; revision=4675
2004-11-29 09:23:51 +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