Commit Graph

56 Commits

Author SHA1 Message Date
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 6ba8928537 - client (Unix): use symbolic links instead of XML link files.
This will allow applications to access shared libraries
    by their logical names,
    which simplifies things when you have multiple platforms,
    and the apps (or libraries) refer to shared libraries
    by names that don't include the platform.
    This shouldn't impact the API - boinc_resolve_filename()
    will open the file, see that it's not an XML link file,
    and the symbolic link will be used directly.
    At some point we can change boinc_resolve_filename() on Unix
    to be a no-op if the client is 6.2+
- client (Unix):
    Append the slot dir to LD_LIBRARY_PATH.

svn path=/trunk/boinc/; revision=14944
2008-03-19 16:54:36 +00:00
David Anderson 815b8fc043 Various preparation for handling multithreaded apps
and apps that use coprocessors.
There now can be several app_versions for the same
(app, platform, version_num) combination.
This changes a number of things.

- Added app_version.plan_class field to DB
- update_versions now looks for a :plan-class in the
    file or directory name, and puts it in the app_version's DB record
- Change uniqueness constraint to include plan_class
- Feeder: the feeder was putting non-deprecated app_versions
    in shared mem, and leaving it to the scheduler to
    find the latest version for a given platform.
    This is dumb.
    Instead, for each app/platform pair the feeder now
    finds the highest version number of a non-deprecated app version,
    and enumerates all non-deprecated app_versions with that
    app/platform/version
- Scheduler: add a BEST_APP_VERSION data structure that keeps track,
    for each app, what the best app_version is for this host.
    This saves the work of recomputing it for each job.

svn path=/trunk/boinc/; revision=14906
2008-03-13 22:57:24 +00:00
David Anderson 383b21dd5a - update_versions now generates <api_version> for all app versions
- user web: don't XML-escape team names in DB
- deleted obsolete files
- calloc() return check, fixes #277

svn path=/trunk/boinc/; revision=13817
2007-10-09 22:58:49 +00:00
David Anderson 7594e57b05 - update_versions: don't accept a multi-file application
unless there's a main program with same name as dir
    (previously it was treating the first executable file found
    as the main program, with occasionally disastrous consequences).

svn path=/trunk/boinc/; revision=13201
2007-07-20 20:19:35 +00:00
David Anderson 0cb8434d75 *** empty log message ***
svn path=/trunk/boinc/; revision=11466
2006-11-03 21:42:49 +00:00
Bruce Allen c88787d169 Make update_versions touch ../reread_db to force the
feeder to notice new app versions.

svn path=/trunk/boinc/; revision=9104
2005-12-20 22:36:31 +00:00
David Anderson 511429769c *** empty log message ***
svn path=/trunk/boinc/; revision=6712
2005-07-21 08:24:09 +00:00
David Anderson 494ee90567 *** empty log message ***
svn path=/trunk/boinc/; revision=5548
2005-03-01 21:00:06 +00:00
David Anderson e1c65eb341 *** empty log message ***
svn path=/trunk/boinc/; revision=5228
2005-01-27 23:09:19 +00:00
David Anderson 24a1bb1abf *** empty log message ***
svn path=/trunk/boinc/; revision=5227
2005-01-27 22:29:06 +00:00
David Anderson 20eb2f30b2 *** empty log message ***
svn path=/trunk/boinc/; revision=4785
2004-12-08 00:14:52 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
David Anderson e4215d8f72 *** empty log message ***
svn path=/trunk/boinc/; revision=4458
2004-10-29 18:18:53 +00:00
David Anderson f7c026df21 *** empty log message ***
svn path=/trunk/boinc/; revision=4201
2004-09-14 22:24:58 +00:00
Karl Chen 89a7ffe43f *** empty log message ***
svn path=/trunk/boinc/; revision=4075
2004-08-18 21:53:19 +00:00
Karl Chen 9b33d15117 *** empty log message ***
svn path=/trunk/boinc/; revision=3918
2004-07-21 20:42:48 +00:00
Karl Chen 72040aed7c *** empty log message ***
svn path=/trunk/boinc/; revision=3709
2004-06-28 08:27:17 +00:00
Karl Chen 32318835f6 *** empty log message ***
svn path=/trunk/boinc/; revision=3695
2004-06-24 12:22:30 +00:00
Karl Chen abe11e77ca *** empty log message ***
svn path=/trunk/boinc/; revision=3694
2004-06-24 12:13:42 +00:00
David Anderson be8eed5917 *** empty log message ***
svn path=/trunk/boinc/; revision=3511
2004-06-08 20:28:26 +00:00
Karl Chen cd449de7a7 *** empty log message ***
svn path=/trunk/boinc/; revision=3483
2004-05-31 17:57:18 +00:00
Karl Chen e6aecfc118 *** empty log message ***
svn path=/trunk/boinc/; revision=3481
2004-05-31 17:31:11 +00:00
Karl Chen 3d0b4fde9c *** empty log message ***
svn path=/trunk/boinc/; revision=3480
2004-05-31 17:29:31 +00:00
Karl Chen a0153e5f06 *** empty log message ***
svn path=/trunk/boinc/; revision=3479
2004-05-31 17:22:51 +00:00
David Anderson 6011e98b5d *** empty log message ***
svn path=/trunk/boinc/; revision=3434
2004-05-24 20:32:51 +00:00
Karl Chen 89856689aa *** empty log message ***
svn path=/trunk/boinc/; revision=3380
2004-05-14 06:49:11 +00:00
Karl Chen 5a91f646c8 *** empty log message ***
svn path=/trunk/boinc/; revision=3204
2004-04-01 23:31:58 +00:00
Karl Chen 458cb19548 *** empty log message ***
svn path=/trunk/boinc/; revision=3203
2004-04-01 23:26:33 +00:00
Rom Walton 5877596736 *** empty log message ***
svn path=/trunk/boinc/; revision=3177
2004-03-26 21:12:04 +00:00
Rom Walton 41c6abffde *** empty log message ***
svn path=/trunk/boinc/; revision=3176
2004-03-26 20:58:17 +00:00
Karl Chen 03541647b4 *** empty log message ***
svn path=/trunk/boinc/; revision=3081
2004-03-16 00:43:05 +00:00
Karl Chen f03e0872e0 *** empty log message ***
svn path=/trunk/boinc/; revision=2591
2003-10-28 00:55:33 +00:00
Karl Chen 8c212693b4 *** empty log message ***
svn path=/trunk/boinc/; revision=2590
2003-10-28 00:54:30 +00:00
Karl Chen 5417e32760 *** empty log message ***
svn path=/trunk/boinc/; revision=2589
2003-10-28 00:54:03 +00:00
Karl Chen 65c7736c52 *** empty log message ***
svn path=/trunk/boinc/; revision=2586
2003-10-28 00:41:03 +00:00
Karl Chen fa6ee0edd7 *** empty log message ***
svn path=/trunk/boinc/; revision=2574
2003-10-26 07:50:05 +00:00
Karl Chen 9bd5dab955 *** empty log message ***
svn path=/trunk/boinc/; revision=2573
2003-10-26 07:47:33 +00:00
Karl Chen 6c7117bff3 *** empty log message ***
svn path=/trunk/boinc/; revision=2572
2003-10-26 07:44:14 +00:00
Karl Chen 1cb6cba92f *** empty log message ***
svn path=/trunk/boinc/; revision=2571
2003-10-26 07:37:45 +00:00
Karl Chen e8a2bdfd61 *** empty log message ***
svn path=/trunk/boinc/; revision=2570
2003-10-26 07:35:09 +00:00
Karl Chen a50e6a0c5e *** empty log message ***
svn path=/trunk/boinc/; revision=2569
2003-10-26 07:32:42 +00:00
Karl Chen 20cd2db106 *** empty log message ***
svn path=/trunk/boinc/; revision=2568
2003-10-26 07:29:03 +00:00
Karl Chen 3b189fb47b *** empty log message ***
svn path=/trunk/boinc/; revision=2566
2003-10-26 06:43:47 +00:00
Karl Chen 2f09f54530 *** empty log message ***
svn path=/trunk/boinc/; revision=2418
2003-10-06 23:44:18 +00:00
Karl Chen aad6bc8bf6 *** empty log message ***
svn path=/trunk/boinc/; revision=2417
2003-10-06 23:42:43 +00:00
Karl Chen 5453f279e4 xml writing and parsing
svn path=/trunk/boinc/; revision=2401
2003-10-03 06:46:22 +00:00
Karl Chen d2ed1c768f make_project, upgrade, other tools
svn path=/trunk/boinc/; revision=2399
2003-10-03 05:53:28 +00:00
David Anderson 29d24d7a57 *** empty log message ***
svn path=/trunk/boinc/; revision=2327
2003-09-12 19:59:15 +00:00
Karl Chen cd4280dbeb *** empty log message ***
svn path=/trunk/boinc/; revision=2276
2003-09-05 22:44:52 +00:00