Commit Graph

3153 Commits

Author SHA1 Message Date
David Anderson 5583762116 - web: style tweaks; fixes #667
svn path=/trunk/boinc/; revision=15307
2008-05-28 16:33:51 +00:00
David Anderson a143d50ddf - client: reduce min CPU time for valid benchmark from 3 to 2
svn path=/trunk/boinc/; revision=15292
2008-05-25 04:06:45 +00:00
David Anderson ac77678d16 - client: test the above; compile fixes for Win
svn path=/trunk/boinc/; revision=15290
2008-05-23 22:20:45 +00:00
David Anderson 18d6f5e708 - client: handle coprocs in RR simulation. Not tested.
TODO: handle multithread apps in RR simulation; should be easy now.

svn path=/trunk/boinc/; revision=15288
2008-05-23 22:03:27 +00:00
David Anderson c01e75ec4c - client: shuffle code to abstract coprocessor reservation
svn path=/trunk/boinc/; revision=15287
2008-05-23 21:24:36 +00:00
David Anderson cea5801b89 - client: shuffle to code to give an abstraction (RR_SIM_STATUS)
of a project's state during round-robin simulation
    (first step to handling coprocs in RR sim)

svn path=/trunk/boinc/; revision=15286
2008-05-23 20:58:06 +00:00
David Anderson 8befa29f81 - client: if GUI RPC auth error, close the socket.
This prevents a DoS by sending <auth1> over and over,
    filling the send buffer and eventually causing the client to block.
- Unix build: if m4 missing, check for gm4


svn path=/trunk/boinc/; revision=15282
2008-05-23 19:24:20 +00:00
David Anderson 8294fba98f - client: print a message at startup if computation is suspended
svn path=/trunk/boinc/; revision=15279
2008-05-22 20:57:12 +00:00
David Anderson d1b0f1d295 - client: copy api_version of APP_VERSIONs in scheduler reply,
even if we already have the APP_VERSION.
    Otherwise, when upgrading from 5.10 to 6.2,
    we won't have the api_version,
    and we won't learn about it until project releases new version.

svn path=/trunk/boinc/; revision=15277
2008-05-22 19:09:52 +00:00
David Anderson 9a390c235d svn path=/trunk/boinc/; revision=15272 2008-05-22 03:57:55 +00:00
David Anderson 640f0d85c9 - boinccmd (Windows): chdir to the data directory (from registry)
svn path=/trunk/boinc/; revision=15271
2008-05-22 03:09:11 +00:00
David Anderson 586c07e3b4 - Add alternative stylesheet for project web
- Tweak error messages in client and server

svn path=/trunk/boinc/; revision=15263
2008-05-20 21:47:02 +00:00
David Anderson e0f418dbf7 - client: eliminate spurious "unparsed XML" messages
Fixes #664.  Rom, please backport to 6.2
- web: convert some tr() to tra() on BOINC web pages

svn path=/trunk/boinc/; revision=15258
2008-05-20 00:11:28 +00:00
David Anderson fd6bb6e637 - client: on Windows (at least) if you kill a task (e.g. reset project)
ACTIVE_TASK::handle_exited_app() never gets called,
    so the coprocessors weren't getting freed.
    Fix this.

svn path=/trunk/boinc/; revision=15242
2008-05-16 22:52:09 +00:00
David Anderson 902522158f - client: go one step further, and don't create temp files
in some system-supplied directory;
    create them in the BOINC data directory.

svn path=/trunk/boinc/; revision=15241
2008-05-16 22:28:47 +00:00
David Anderson 3c9192678c - client: JM7 was seeing repeated file upload failures.
It turned out that when we close and reopen
    the temp file that stores the HTTP reply, the open was failing.
    I have no idea why.
    Attempted workaround: open the file for R/W originally,
    and instead of close/open do a seek.

svn path=/trunk/boinc/; revision=15238
2008-05-16 17:02:43 +00:00
Frank Thomas 7303c44f5e Removed wiki remnant and added link to wiki:BashCommandCompletion.
svn path=/trunk/boinc/; revision=15233
2008-05-16 15:01:52 +00:00
David Anderson 902bb1d46f - client: when parsing state file, don't change result states
unless there's an inconsistency
    Fixes #621

svn path=/trunk/boinc/; revision=15231
2008-05-15 23:33:47 +00:00
David Anderson ac152ad4f9 - client: If a scheduler reply doesn't include <host_venue>
(as is the case if its DB is down,
    or it has no work and skips the DB check)
    don't overwrite the host_venue on the client.
    Fixes #656, I hope (Rom: please port)

svn path=/trunk/boinc/; revision=15230
2008-05-15 23:05:28 +00:00
David Anderson 2c6a3b803d - client: added some http_debug messages in case where
POST2 temp file can't be opened or read
- client: don't show --sandbox option if it's not available

svn path=/trunk/boinc/; revision=15223
2008-05-15 16:08:52 +00:00
David Anderson 929d75eedb - make some strings in user.inc translatable (from Simek)
- close fd 1, not 0, for apps

svn path=/trunk/boinc/; revision=15195
2008-05-13 21:46:50 +00:00
David Anderson d22b6e35b2 - manager: in disk tab, divide free space into
available/unavailable to BOINC

svn path=/trunk/boinc/; revision=15194
2008-05-13 20:39:42 +00:00
David Anderson 58b5f80366 - Added <d_allowed> element to get_disk_usage GUI RPC
svn path=/trunk/boinc/; revision=15190
2008-05-13 19:52:35 +00:00
David Anderson e1b2bcd221 - client: change --allow_multiple_clients to a command line option
(it can't go in the config file)

svn path=/trunk/boinc/; revision=15188
2008-05-12 22:46:07 +00:00
David Anderson 1c8c140f95 - client: add <allow_multiple_clients> cc_config.xml option
- client: remove stress_shmem code

svn path=/trunk/boinc/; revision=15185
2008-05-12 21:27:14 +00:00
David Anderson 4f184cb9ef - client (win): bug fixes to yesterday's checkin
svn path=/trunk/boinc/; revision=15178
2008-05-12 20:29:57 +00:00
Eric J. Korpela 1e08334179 - Fixes to init script.
- Commands in Makefile.am to install init scripts
    - Initial checkin of sample configuration file boinc-client.conf


svn path=/trunk/boinc/; revision=15173
2008-05-12 16:40:10 +00:00
David Anderson db4164daba - Client (Windows) change the way core/app shmem segs are created.
Old: get_shmem_seg_name() tries names of the form shm_boinc_N
        until it finds one for which creating succeeds.
        Then it detaches (deletes) the segment and records the name.
        Later, the segment is created again.
        This creates a race condition if two core clients
        are running on the same host.
        It's also kind of silly.
    New: get_shmem_seg_name() doesn't detach the segment,
        and we dont have to create it again later.

svn path=/trunk/boinc/; revision=15172
2008-05-11 23:11:16 +00:00
David Anderson 6ab203081d - client part of the above
svn path=/trunk/boinc/; revision=15169
2008-05-09 21:07:15 +00:00
David Anderson e55f8249e8 - client (Unix): when running app, open fd 0 to /dev/null
rather than just closing it (from Gabor Gombas)

svn path=/trunk/boinc/; revision=15164
2008-05-09 17:05:26 +00:00
David Anderson b13ad4da38 David May 9 2008
- client: increase <abort> timeout from 5 sec to 60;
        this gives the diagnostic system time to download
        symbol files (which may be several MB) and write a stack trace.

svn path=/trunk/boinc/; revision=15162
2008-05-09 16:27:20 +00:00
Rom Walton f20ae55690 - DIAG: Passing a null value to fclose in VS 2005 will cause a crash, so
check to make sure that stdout_file and stderr_file are not null before
        attempting to close them. If they are null return ERR_FOPEN so that
        the next message logged can attempt to cycle the log without error.
    - CLIENT: Make sure the diagnostics framework is initialized before
        the config file is parsed or the command line is parsed, that way
        if and unexpected XML tab or command line parameter is found the
        client doesn't crash.
        
        NOTE: The client would only crash if the log file was already greater
          than 2MB which would cause the client to attempt to cycle the
          log files. Since the diagnostics framework wasn't initialized yet
          nothing was logged to the log file, no call stack was generated, 
          and the default Windows debugging environment was fired up.
          
    client/
        main.C
    lib/
        diagnostics.C

svn path=/trunk/boinc/; revision=15157
2008-05-09 05:57:11 +00:00
David Anderson e6a5d0cbfb - scheduler: add new log flags debug_edf_sim_workload, debug_edf_sim_details
for getting info on EDF simulation;
    change output from seconds to hours
- API: remove extern "C" from graphics API
    (convince me it's needed before restoring)

svn path=/trunk/boinc/; revision=15148
2008-05-08 17:48:40 +00:00
David Anderson 9aa348660c - client: added some file_xfer_debug messages for file upload
svn path=/trunk/boinc/; revision=15144
2008-05-07 23:14:26 +00:00
David Anderson 58645a3be1 - client (Unix): linking libcudart.so wasn't working,
so CUDA detection failed.
    For reasons I don't understand,
    adding "/usr/local/cuda/lib" to LD_LIBRARY_PATH
    and then doing dlopen("libcudart.so") wasn't working,
    even though the library is in that dir.
    I worked around this by calling
    dlopen("/usr/local/cuda/lib/libcudart.so") and if that fails call
    dlopen("libcudart.so"),
- Unix: commented out Eric's setenv() stuff.
    After doing a configure, HAVE_SETENV is not in config.h,
    so something's messed up with it.
- client: trimmed down "pre-release software" message


svn path=/trunk/boinc/; revision=15143
2008-05-07 21:46:49 +00:00
David Anderson 98041a4866 - Added command-completion script for bash
svn path=/trunk/boinc/; revision=15133
2008-05-06 04:20:32 +00:00
Charlie Fenton 8f937bd8e2 client: Fix compiler warning. MGR: allow showing graphics with or without sandbox for Mac, UNIX, Linux
svn path=/trunk/boinc/; revision=15131
2008-05-06 00:38:18 +00:00
David Anderson 0e4eb7f6e7 - client: if we request that an app exit,
and it doesn't do so within 10 seconds, kill it.
        This deals with the situation where the app is ignoring messages
        (e.g. because it forgot to end a critical section).
    - client: if either the FP or int benchmark runs less than
        3 CPU seconds (out of 10 seconds of wall time) ignore the benchmark.
        This is an effort to deal with a problem where (for unknown reasons)
        the int benchmark runs for a tiny amount of CPU time,
        leading to an absurdly large result
    - Manager: don't prepend "[error]" to MSG_INTERNAL_ERROR messages;
        the client already does this.

    THESE ARE ALL BUG FIXES

svn path=/trunk/boinc/; revision=15128
2008-05-05 00:51:20 +00:00
Rom Walton 3dc77154e5 - MGR/CLI: remove direct references to CreateEnvironmentBlock and
DestroyEnvironmentBlock since Win98 doesn't support them. This
        functionality is only required for the Windows sandbox implementation
        anyway.
    - LIB: Remove direct reference to OpenThread in win_util.C since it
        isn't supported on Win98.
    - MGR: Another fix for CC execution on a Linux machine.
        
    client/
        app_start.C
    clientgui/
        BOINCClientManager.cpp
    lib/
        proc_control.C
        win_util.C

svn path=/trunk/boinc/; revision=15117
2008-05-02 15:59:37 +00:00
David Anderson d9645557a5 - scheduler: matchmaking scheduler now works;
uncomment MATCHMAKER to enable it.
    More testing needed.
- client (unix): avoid crash if LD_LIBRARY_PATH not set
    (port to 6.1 branch)


svn path=/trunk/boinc/; revision=15115
2008-05-01 22:11:08 +00:00
David Anderson 8d61ca0ad6 - client: Win: fix CUDA detection:
look in the registry to find the CUDA install directory,
		and look for cudart.dll in that dir.
	- client: for CUDA, don't confuse coproc.name ("CUDA")
		from coproc.prop.name (e.g., "Device Emulation (CPU)" on my PC,
		which doesn't have a recent-enough GPU)
	- client: if no coprocessors present, say so in startup messages

svn path=/trunk/boinc/; revision=15107
2008-04-30 19:18:51 +00:00
David Anderson 3abc3de32f - client: fix bugs with scheduling app that use coprocessors
- client: factor out "schedule_if_possible()" logic from
        two places in schedule_cpus()

svn path=/trunk/boinc/; revision=15096
2008-04-25 21:44:47 +00:00
David Anderson a454147cbd - client: fix array size
svn path=/trunk/boinc/; revision=15072
2008-04-21 20:22:33 +00:00
Rom Walton 074c7ef0d5 Quick Updates
svn path=/trunk/boinc/; revision=15068
2008-04-17 18:11:47 +00:00
Rom Walton 5a46215511 - MGR: Make help system work again
- MGR: Add pre-release to the BOINC Manager title bar and about
        dialog if it is a pre-release version of BOINC.
    - CLI: Add some pre-release text to the CC startup routine and
        suggest they revert back to a released build if they don't
        plan on testing the client.

    /
        version.h
        version.h.in
    client/
        auto_update.C
        client_state.C
    clientgui/
        AdvancedFrame.cpp
        DlgAbout.cpp
        sg_BoincSimpleGUI.cpp
        sg_DlgMessages.cpp
        sg_DlgPreferences.cpp
        SkinManager.cpp
    lib/
        common_defs.h

svn path=/trunk/boinc/; revision=15067
2008-04-17 16:18:16 +00:00
David Anderson 753b20a67f - client: do the /proc/interrupts stuff (see above)
only on Linux-like systems;
    use device_idle() only on non-Linux Unix systems

svn path=/trunk/boinc/; revision=15059
2008-04-15 22:42:23 +00:00
David Anderson 7605eee64a - client: improved user idle checking on Linux (from Frank Thomas)
svn path=/trunk/boinc/; revision=15049
2008-04-14 22:21:02 +00:00
Eric J. Korpela 5e058baa54 - Unix init script: modified to make less linux specific.
- Does not presume the existence of "pidof" or "runuser".  
    - If started with an old style Bourne shell, will try to restart
      in bash, zsh or ksh.
    - Starts with no parameters by default.
    - Logs stdout and stderr to /var/log/boinc_client.log and
      /var/log/boinc_client_err.log by default.
    - With appropriate "boinc-client.conf", the script can be run by
      a non-root user.
    - More changes are likely to be required.


svn path=/trunk/boinc/; revision=15047
2008-04-14 17:01:37 +00:00
David Anderson ff70bf259e - client: use symlinks only if project has <use_symlinks/> element.
- API: fixed boinc_resolve_filename() bug: didn't work right for symlinks

svn path=/trunk/boinc/; revision=15043
2008-04-14 04:04:45 +00:00
David Anderson fe75c574a9 - client: send client_cap_plan_class as <x>1</x> rather than <x/>
in scheduler request; the latter breaks older schedulers.
- old parse code: make skip_unexpected() work with <x/>

svn path=/trunk/boinc/; revision=15027
2008-04-07 16:04:02 +00:00