Commit Graph

19570 Commits

Author SHA1 Message Date
Eric J Korpela 999f4ba966 None 2013-03-01 16:08:52 +01:00
Eric J Korpela 2151abc147 - wrapper: fix for likely compile problems on non-linux or older gcc caused by
commit 9223fd2.  The macros necessary to fix it already existed in config.h
2013-03-01 16:08:52 +01:00
Rom Walton 4b57572a87 - VBOX: Don't report any error messages when unregistering the VM.
VirtualBox 4.2 no longer requires certain commands to be executed
        to unregister a VM while older versions do.  Just ignore any error
        codes, if it becomes a problem we can always make it conditional
        on what version of VirtualBox is installed.
2013-03-01 16:08:52 +01:00
David Anderson b3e244c9c3 - wrapper: compile fix for new gcc 2013-03-01 16:08:52 +01:00
David Anderson 9cf10b400a - GUI RPC: expose TIME_STATS info (e.g. on_frac) in
the binding of the get_state() RPC
- client: move client_start_time and previous_uptime
    from CLIENT_STATE to TIME_STATS,
    so that these are also visible in GUI RPC
- scheduler RPC: move uptime and previous_uptime
    into <time_stats>
- client: condition an RR simulation message on <rrsim_detail>
- boinccmd: show TIME_STATS info in --get_state
2013-03-01 16:08:52 +01:00
David Anderson f1b4b16bbf - update_versions: get key directory from config file 2013-03-01 16:08:52 +01:00
David Anderson c8bc624553 - client, Unix: make Curl sockets close-on-exec,
so that app processes don't inherit them.
- client: fix bug that makes client exit if a slot dir contains
    finish file on startup
2013-03-01 16:08:52 +01:00
David Anderson 0f5fcca435 - client: if exiting because of exit_after_finished flag,
write state file before exiting so we don't restart the job later.
2013-03-01 16:08:52 +01:00
David Anderson 56868ced49 - client: fix bug in handling proxy info in cc_config.file 2013-03-01 16:08:52 +01:00
Rom Walton 243db13d3a - VBOX: Remove timeouts for creating and deleting snapshots. 2013-03-01 16:08:52 +01:00
Rom Walton db00158cb0 - VBOX: Increase elapsed_time if we were forced to sleep after executing the main loop 2013-03-01 16:08:52 +01:00
Rom Walton 14948c99f6 VBOX: Change the way elapsed_time is calculated in vboxwrapper.
Previously: elapsed_time was just incremented with the value of the polling
          period each iteraction through the main loop.  This introduced issues
          when vboxmanage lagged for whatever reason.  This lag could go as high as 5
          seconds.  Over the timespan of a day this could increase the wall clock time
          of a task a great deal.

        Now: elapsed_time is incremented with the time it took to execute the main
          loop.
2013-03-01 16:05:09 +01:00
Rom Walton 876e90a053 - WINSETUP: Add the account manager auth logic from the 6.8 installer to current generation installers. - WINSETUP: Make whether or not to create start menu items configurable via the command line. Useful for mass deployment installs. 2013-03-01 16:03:32 +01:00
Rom Walton e3327452e3 - API: Use CloseWindow() to respond to the API Defined WM_SHUTDOWNGFX event just in case CloseWindow() does something more than just send the WM_CLOSE event to the window proc. 2013-03-01 16:03:32 +01:00
David Anderson 962a7ff6bf Fix DB version scripts
- db_update.php is not executable, db_schemaversion.php is
    NOTE: I suggest that we not use .php for executable scripts
2013-03-01 16:03:32 +01:00
David Anderson 9df3e3df95 - fix db revision 2013-03-01 16:03:32 +01:00
Rom Walton 02e70da914 - Fix the db schema check functionality so that it will work with make_project and upgrade correctly. We no longer rely on svnversion for this sort of thing. 2013-03-01 15:58:42 +01:00
David Anderson 83211fd1c6 client: kill lingering apps
- client: if an app's finish file has existed for 10 seconds, kill it;
    it must be hung in boinc_finish().
    This behavior has been seen with LHC@home and maybe other projects.
2013-03-01 15:56:12 +01:00
Oliver Bock d77b114c43 Merge branch 'rom/master' into master
Conflicts:
	checkin_notes
2013-03-01 15:53:00 +01:00
Rom Walton d4cf16944e - API: Remove the call to SendMessage(WM_QUIT, ...) after destroying the window.
There is no guarantee what order the event queue will be processed in and if
        WM_QUIT is processed before WM_DESTROY something might linger around.
2013-03-01 15:51:33 +01:00
David Anderson 5cbccf7126 - server: add stage_file to project setup; add error checking to stage_file 2013-03-01 15:31:42 +01:00
Rom Walton d3fbcaf8d5 Quick fix 2013-03-01 15:31:41 +01:00
Rom Walton 34cb41198b - SCR: Fix bug in X11 screensaver. 2013-03-01 15:31:41 +01:00
Rom Walton b1f1a22381 - SCR: Fix bug in X11 screensaver. 2013-03-01 15:31:41 +01:00
David Anderson a3731b71e5 - remove job submit tweak 2013-03-01 15:31:41 +01:00
David Anderson afb7dcf83f - remote job submission tweak 2013-03-01 15:31:41 +01:00
David Anderson 777f1f11e8 - client: change work fetch policy to avoid starving GPUs in situations where GPU exclusions are used. - client: fix bug in round-robin simulation when GPU exclusions are used.
Note: this fixes a major problem (starvation)
    with project-level GPU exclusion.
    However, project-level GPU exclusion interferes with most of
    the client's scheduling policies.
    E.g., round-robin simulation doesn't take GPU exclusion into account,
    and the resulting completion estimates and device shortfalls
    can be wrong by an order of magnitude.

    The only way I can see to fix this would be to model each
    GPU instance as a separate resource,
    and to associate each job with a particular GPU instance.
    This would be a sweeping change in both client and server.
2013-03-01 15:31:41 +01:00
Oliver Bock 02213ba568 Merge branch 'charlie/master' into master
Conflicts:
	checkin_notes
2013-03-01 15:31:10 +01:00
Rom Walton f5111aba49 - Add missing references to psapi.lib for various build configurations. 2013-03-01 15:30:08 +01:00
Charlie Fenton 062e401816 lib: don't clear entire APP_VERSION struct in APP_VERSION::parse_coproc() 2013-03-01 15:29:31 +01:00
Oliver Bock b0f81fcf83 Merge branch 'charlie/master' into master 2013-03-01 15:17:27 +01:00
Charlie Fenton 951e480636 Compile fixes 2013-03-01 15:16:57 +01:00
Charlie Fenton 6550c6927a lib: fix unmatched parentheses which confused source file editor 2013-02-28 15:58:01 +01:00
Charlie Fenton d6accd5437 MGR: Fix bug which can cause Manager to quit when started in Simple View 2013-02-28 15:58:01 +01:00
David Anderson e54b0ae02e - web: if showing a thread in oldest-first order, default to showing the last page of posts. 2013-02-28 15:58:01 +01:00
David Anderson 5cdc6f3efd - tweaks 2013-02-28 15:56:43 +01:00
David Anderson 690c494612 - web: add "Validation inconclusive" state for task lists 2013-02-26 16:53:20 +01:00
David Anderson 36c304e7d3 - client: maintain current and previous uptime, and include them in scheduler RPC request. - scheduler: parse them Note: this is to support a future feature where the scheduler will send non-checkpointing jobs only clients likely to be able to complete them. 2013-02-26 16:53:20 +01:00
Oliver Bock 61ab02d443 Merge branch 'charlie/master' into master
Conflicts:
	checkin_notes
2013-02-26 16:52:36 +01:00
David Anderson 3017ed943f - scheduler: debug the above 2013-02-26 16:44:26 +01:00
Charlie Fenton f4b57b4024 MGR: Add Control-Shift_E shortcut (Command-Shift-E on Mac) to show Event Log in Simple View, for the convenience of tech suppport volunteers 2013-02-26 16:40:31 +01:00
BOINC Admin c8b8c6155f need to add files? 2013-02-26 16:37:26 +01:00
BOINC Admin 3da910bfda - scheduler: when adding a new HOST_APP_VERSION, check if there's already one for that (host, app, platform, plan class). If there is, use it and update the app version ID. This way, when a new app version is released, it will use the runtime and reliability statistics of the previous one, instead of starting from scratch. - add a script "stage_file" for staging an input file. This checks for immutability violations, moves or copies the file to the download hierarchy, computes and stores its MD5, and makes a gzipped version if needed. - add some files missing from git repo 2013-02-26 16:28:17 +01:00
Rom Walton 4df017de3c - MGR: We don't save Simple View's width & height since it's
window is not resizable, so don't try to read them back.

svn path=/trunk/boinc/; revision=26153
2012-10-15 19:17:13 +00:00
David Anderson 282af6effc - user web: show the right page/message after the following actions:
- rate a post
    - moderate a post
    - edit a post
    - report a post


svn path=/trunk/boinc/; revision=26152
2012-10-15 18:47:55 +00:00
David Anderson 76282d0a20 - Win compile fixes.
For now, include psapi.lib in various project properties.
		Try to figure out a different way.

svn path=/trunk/boinc/; revision=26149
2012-10-11 19:22:34 +00:00
David Anderson 7d40c46923 - client and API: improve the way an app checks for the death of the client
Old: heartbeat mechanism
    Problem: if the client is blocked for > 30 secs
        (e.g. because it takes a long time to write the state file,
        of because it's stopped in a debugger)
        then apps exit.
        This is bad is the app doesn't checkpoint and has been
        running for a long time.
    New: the client passes its PID to the app.
        The app periodically (10 sec) checks that the process still exists.
    Notes:
    - For backward compatibility (e.g. new API w/ old client,
        or vice versa) the client still sends heartbeats,
        and the API checks heartbeats if the client doesn't pass a PID.
    - The new mechanism works only if the client's PID isn't assigned
        to a new process within 10 secs of the client exiting.
        Windows 2000 reuses PIDs immediately, so check for Win2K
        and don't use this mechanism if so.

TODO: For Unix multithread apps,
    critical sections aren't currently being enforced.
    Need to fix this by masking signals.


svn path=/trunk/boinc/; revision=26147
2012-10-11 16:41:31 +00:00
David Anderson acd1ad07ae - tweaks
svn path=/trunk/boinc/; revision=26146
2012-10-11 05:37:23 +00:00
Eric J. Korpela 33962b77e1 - sched: 2 bug fixes in credit.cpp
- It was possible if all results for a workunit were PFC_MODE_INVALID
          that NaN pfc would be used causing database update errors.  Solved
          by using wu_estimated_pfc() as pfc in that case.
        - Sanity check was comparing raw_pfc directly to rsc_fpops_bound.  That
          was causing problems GPUs with high performance estimates.  Fixed by
          including the app_version scale factor in the check.  I thought I had
          already committed this...
        - Removed a few lines of commented out experimental code accidentally
          comitted earlier.
        - Committed to git repository on 8/24


svn path=/trunk/boinc/; revision=26144
2012-10-02 15:20:13 +00:00
David Anderson be540c8318 - API: if get a resume message from client while in a critical section,
clear the suspend_request flag.
    Otherwise we'll end up doing two suspends,
    and on Win the app will be suspended forever.


svn path=/trunk/boinc/; revision=26143
2012-09-30 20:30:58 +00:00