Commit Graph

11618 Commits

Author SHA1 Message Date
David Anderson c9b563f066 - DB: workunit.rsc_bandwidth needed to go after mod_time
svn path=/trunk/boinc/; revision=14970
2008-03-27 20:46:31 +00:00
David Anderson 8ed16b90b0 - client: fix problems with queue shrinkage when projects
are running in EDF (from JM7)

svn path=/trunk/boinc/; revision=14969
2008-03-27 20:45:01 +00:00
David Anderson 2080d9dcc0 - Library: switch from lstat() back to stat() most places;
this broke some projects' back-end code.
    Make a new function (boinc_file_or_symlink_exists())
    for use by the client when clearing out slot dirs

svn path=/trunk/boinc/; revision=14968
2008-03-27 20:30:19 +00:00
David Anderson a55712dde0 compile fixes
svn path=/trunk/boinc/; revision=14967
2008-03-27 18:35:57 +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
Rom Walton 0a180fdfbc - WINSETUP: Hide the 'boinc_master' and 'boinc_project' user profiles after
the accounts have been created.
    - WINSETUP: Return the user rights to a known good state for 'boinc_master',
        'boinc_project', 'boinc_admins', 'boinc_users', and 'boinc_projects'.
        
    win_build/installerv2/redist/Windows/src/boinccas/
        boinccas.cpp
        boinccas.def
        boinccas.vcproj
        CAGrantBOINCAdminsRights.cpp, .h (Added)
        CAGrantBOINCMasterRights.cpp
        CAGrantBOINCProjectRights.cpp
        CAGrantBOINCProjectsRights.cpp, .h (Added)
        CAGrantBOINCUsersRights.cpp, .h (Added)
        CAHideBOINCMasterProfile.cpp, .h (Added)
        CAHideBOINCProjectProfile.cpp, .h (Added)
        lsaprivs.cpp, .h
    win_build/installerv2/redist/Windows/Win32/
        boinccas.dll
        boinccas95.dll

svn path=/trunk/boinc/; revision=14964
2008-03-27 17:43:27 +00:00
Charlie Fenton a766db8c51 Mac: When invoked with the -lib argument, BOINC build script builds the utility application MakeAppIcon_h in addition to the three libraries
svn path=/trunk/boinc/; revision=14963
2008-03-27 09:44:59 +00:00
Charlie Fenton 76178d3b03 Mac: More sandbox security changes for symlinks: lchown is not available under OS 10.3.9
svn path=/trunk/boinc/; revision=14955
2008-03-21 11:55:12 +00:00
Charlie Fenton 8a4ad7b3dd Fix for symlinks: setprojectgrp calls lchown() instead of chown()
svn path=/trunk/boinc/; revision=14954
2008-03-21 09:36:06 +00:00
Charlie Fenton 22612dbaaf Mac: Update sandbox security for symlinks replacing xml soft links.
svn path=/trunk/boinc/; revision=14953
2008-03-20 23:44:05 +00:00
David Anderson 9de3ad8a9a - updated GeoIP stuff
svn path=/trunk/boinc/; revision=14951
2008-03-20 22:48:29 +00:00
Charlie Fenton b7e7e1cf1e Minor optimization
svn path=/trunk/boinc/; revision=14950
2008-03-20 14:20:02 +00:00
Charlie Fenton f65c9985b4 Better symbol display in Mac crash dumps; smaller mac executables; f ix bug in app_start.C.
svn path=/trunk/boinc/; revision=14949
2008-03-20 13:37:37 +00:00
David Anderson b2e9fca9bb - forgot to add new files
- scheduler: wreq.core_client_version was being computed in
    resend_lost_results() (which isn't necessarily called)
    but its value was used elsewhere.

svn path=/trunk/boinc/; revision=14948
2008-03-20 03:13:30 +00:00
David Anderson 5859b98fb8 - win fixes
svn path=/trunk/boinc/; revision=14947
2008-03-19 18:35:25 +00:00
David Anderson f9186d582b - client: fixes to the above. Need to use lstat() instead of stat()
so that we see the symlink, not what it's pointing to

svn path=/trunk/boinc/; revision=14946
2008-03-19 18:24:42 +00:00
David Anderson 5e0ca48b49 svn path=/trunk/boinc/; revision=14945 2008-03-19 16:56:34 +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
Charlie Fenton 0592fa868b Minor fix to release scripts
svn path=/trunk/boinc/; revision=14943
2008-03-19 11:33:19 +00:00
Charlie Fenton d64d6f6740 Client, Manager: for backtrace, save full unstripped executables as symbol tables, not .dSYM files; set all symbols visibility not hidden.
svn path=/trunk/boinc/; revision=14942
2008-03-19 11:17:57 +00:00
Charlie Fenton 79ba008ead Fix Mac crash backtrace code to work with OS 10.5; update coprocessor CUDA library code for Mac (not tested.)
svn path=/trunk/boinc/; revision=14941
2008-03-19 07:15:43 +00:00
David Anderson 4e9fbac5e0 - admin web: touch reread_db in manage_app_versions.php
- DB code: remove "is_high_priority" stuff.
- scheduler: merge find_app_version() into get_app_version().
    Have the latter memoize its results (both positive and negative).
    Have it call app_plan() for apps with nonempty plan_class.
- scheduler: first steps towards improved selectability of log messages.
    It will eventually be like the client,
    where you can select among various types of messages.
- feeder: if can't unlink the reread_db trigger file, exit
    (else we'd go into an infinite loop)

svn path=/trunk/boinc/; revision=14940
2008-03-18 21:22:44 +00:00
Rom Walton 15d267d987 - MGR: For Grid enabled views, ignore selection events when
saving and restoring selections.
    - MGR: Cleanup warnings in Grid views.
    
    clientgui/
        BOINCBaseView.cpp, .h
        BOINCGridCtrl.cpp
        ViewMessagesGrid.cpp
        ViewProjectsGrid.cpp
        ViewTransfersGrid.cpp
        ViewWorkGrid.cpp

svn path=/trunk/boinc/; revision=14938
2008-03-18 18:19:49 +00:00
Rom Walton 83ac347dc7 Quick Updates
svn path=/trunk/boinc/; revision=14937
2008-03-18 16:17:17 +00:00
Rom Walton bb876c150c - MGR: Fix a crash in the simple GUI.
NOTE: Do not use the at() function on a vector unless you
        also use a try/catch handler.
    - MGR: Remove code duplication 
      
    clientgui/
        sg_ClientStateIndicator.h
        sg_ProgressBar.cpp, .h
        sg_ViewTabPage.cpp

svn path=/trunk/boinc/; revision=14936
2008-03-18 15:34:28 +00:00
Charlie Fenton 3fd4d8cd27 Compile fix.
svn path=/trunk/boinc/; revision=14933
2008-03-17 21:51:42 +00:00
David Anderson 2cca92f7e8 - compile fix
svn path=/trunk/boinc/; revision=14919
2008-03-16 23:36:53 +00:00
Reinhard Prix ebcbbb657e fixed internal library dependencies in Makefile.am's
svn path=/trunk/boinc/; revision=14918
2008-03-15 03:26:14 +00:00
Rom Walton d08320ca4f - SS: Launch the graphics app as the user instead of 'boinc_project'.
- MGR: Launch the graphics app as the user instead of 'boinc_project'.
    
    clientgui/
        MainDocument.cpp
    clientscr/
        screensaver.cpp

svn path=/trunk/boinc/; revision=14917
2008-03-14 22:17:37 +00:00
David Anderson 32022aa71e - web: fixed bugs in Bulgarian translation file
svn path=/trunk/boinc/; revision=14916
2008-03-14 21:40:18 +00:00
David Anderson aefe4ee18b svn path=/trunk/boinc/; revision=14914 2008-03-14 19:55:32 +00:00
Rom Walton 0498bcd89e Fix compile breaks.
svn path=/trunk/boinc/; revision=14913
2008-03-14 18:46:18 +00:00
Rom Walton 169eb876a7 - API: Attempt to use the 'Global' tag first, if the API
returns an ERROR_ACCESS_DENIED error code fallback
        to the original shmem_name.
        
    api/
        graphics2_util.C
    lib/
        shmem.C

svn path=/trunk/boinc/; revision=14911
2008-03-14 02:41:56 +00:00
Charlie Fenton 3c5d7ada20 MGR: Fix flicker in projects tab website buttons. API: fix a compiler warning which was an actual logic error.
svn path=/trunk/boinc/; revision=14909
2008-03-14 00:41:14 +00:00
David Anderson 8098622210 - Validator framework: remove some consts, and other changes,
to allow validator to assign different credit
    to different instances of a job
- Scheduler: if can't open DB, return <project_is_down/>
    (fixes #578)
- clean up logic of modify_claimed_credit
- feeder: for -priority_order_create_time, use workunitid
    rather than create time (faster for the DB)
from Kevin Reed

svn path=/trunk/boinc/; revision=14908
2008-03-13 23:35:13 +00:00
Charlie Fenton e2d8171a47 MGR: Fix a crash bug (I hope).
svn path=/trunk/boinc/; revision=14907
2008-03-13 23:12:40 +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
Rom Walton ec1082130a - API: Include 'Global\' in the shared memory segment name for worker and
graphics applications so that the memory can be shared across terminal
        server sessions.
    - API: Add some trace messages to window creation and shutdown events, it
        is all logged to stderr.
    - API: Add some trace messages for loading graphic files.
    - API: Add some trace messages for loading font files.
    - API: There can be only one hInstance and it is assigned to the app at
        startup via winmain(). Use it throughout the graphics2 impl.
    - CC: Use the service security token to startup worker applications.
    - MGR: Use the interactive security token to startup graphics
        applications.
    - LIB: Create two different logon methods, one for logging on interactively
        (graphics applications) and one for services (worker application).

    api/
        graphics2_util.C
        graphics2_win.C
        gutil.C
        txf_util.C
    client/
        app_start.C
    lib/
        proc_control.C, .h
    win_build/
        boincmgr_curl.vcproj

svn path=/trunk/boinc/; revision=14905
2008-03-13 21:18:04 +00:00
Eric J. Korpela 0df1c23a89 Fix for projects that have SHED_MSG_LOG::MSG_* in their project specific code.
svn path=/trunk/boinc/; revision=14904
2008-03-13 18:27:23 +00:00
Rom Walton c2028c37fd - CLI: Adjust the shared memory ACLs so that everybody can read/write to
them, the default ACL limits read/write access to SYSTEM and boinc_master
        when run in secure mode.
        
    lib/
        boinc_win.h
        shmem.C

svn path=/trunk/boinc/; revision=14903
2008-03-12 18:23:48 +00:00
Charlie Fenton 7ca07df3a9 Release Mac BOINC 6.1.10
svn path=/trunk/boinc/; revision=14902
2008-03-12 10:16:28 +00:00
Charlie Fenton a1f9c54bd1 Tag for 6.1.10 release, all platforms
svn path=/trunk/boinc/; revision=14900
2008-03-12 09:41:42 +00:00
Charlie Fenton 156b5baa96 Client: Retry entire write_state_file routine from the beginning if there is an error, not just the step that failed
svn path=/trunk/boinc/; revision=14899
2008-03-12 09:39:17 +00:00
Jens Seidler db1175f5c3 Localization: BOINC distribued web site language files updated: Chinese simplified(zh_CN), Spanish(es)
svn path=/trunk/boinc/; revision=14898
2008-03-12 06:21:47 +00:00
David Anderson 90d83d78d9 - web: show venues in private host list
- compile fixes

svn path=/trunk/boinc/; revision=14897
2008-03-11 20:27:19 +00:00
Rom Walton 2f8ff5b70c Quick Updates
svn path=/trunk/boinc/; revision=14896
2008-03-11 16:20:19 +00:00
Rom Walton fe4ad89cbb Quick Updates
svn path=/trunk/boinc/; revision=14895
2008-03-11 16:05:56 +00:00
Charlie Fenton 71e7aca1dc Client: Rework write_state_file logic to always retry on error, suppress intermediate warnings
svn path=/trunk/boinc/; revision=14894
2008-03-11 13:00:08 +00:00
Charlie Fenton b5e838b00e Client: Rework write_state_file logic to always retry on error, suppress intermediate warnings
svn path=/trunk/boinc/; revision=14893
2008-03-11 12:55:33 +00:00
Charlie Fenton 68ee073311 Client: Rework write_state_file logic to always retry on error, suppress intermediate warnings
svn path=/trunk/boinc/; revision=14892
2008-03-11 12:09:14 +00:00