Commit Graph

2094 Commits

Author SHA1 Message Date
David Anderson c6f72463cc - admin web: fix bug in credit.php
svn path=/trunk/boinc/; revision=22697
2010-11-14 17:04:56 +00:00
David Anderson 2840281c56 - boinccmd: --get_cc_status now prints its result
- feeder: don't panic if can't find app for result;
    if the app is deprecated, it won't be in shmem

svn path=/trunk/boinc/; revision=22674
2010-11-10 18:17:20 +00:00
David Anderson b169e5ab0f - server programs: print error message instead of numeric retval
in log messages

svn path=/trunk/boinc/; revision=22647
2010-11-08 17:51:57 +00:00
David Anderson 789f0b67fc - GUI RPC: parse GPU info, FLOPS from APP_VERSION records
(client already sends this info)

svn path=/trunk/boinc/; revision=22624
2010-11-04 21:32:05 +00:00
David Anderson 4edfe2ec28 - client: small initial checkin for new scheduling system.
Keep track of per-project recent estimated credit

svn path=/trunk/boinc/; revision=22608
2010-10-29 23:41:34 +00:00
David Anderson ac435d0857 - scheduler: don't send translatable strings to pre-6.12 clients
svn path=/trunk/boinc/; revision=22603
2010-10-28 21:46:18 +00:00
David Anderson 40c50852f5 - scheduler: fix logic that deals with jobs that need > 2GB RAM.
My change of 1 Oct ([22440]) required that such jobs
    be processed with 64-bit apps,
    on the assumption that 32-bit apps have a 2 GB user address space limit.
    However, it turns out this limit applies only to Windows
    (kernel and user mode share the 4GB address space; each gets half).
    On Linux, the split is 3GB user / 1 GB kernel.
    On Mac OS X, user mode and kernel mode have separate address spaces,
    each of them 4 GB.


svn path=/trunk/boinc/; revision=22599
2010-10-27 22:58:16 +00:00
Bernd Machenschalk a73bbac1dc lib:
- fixed whitespace error in Makefile.mingw                                                                                                                                                  
        - build and install svn_version.h in Makefile.mingw                                                                                                                                         
        - fixed boinc_win.h for MinGW gcc-4                                                                                                                                                         
        - not sure why client_msgs.h was ever included in procinfo_unix.cpp,                                                                                                                      
          but in current code caused a nasty trail of includes breaking the                                                                                                                         
          Linux build, so removed it

svn path=/trunk/boinc/; revision=22561
2010-10-20 11:28:02 +00:00
Charlie Fenton 2201bfec30 lib: Display message if attempting backtrace on a PowerPC Mac running under OS 10.5.x
svn path=/trunk/boinc/; revision=22559
2010-10-20 03:11:45 +00:00
David Anderson 3de15a592d - client simulator: various fixes
svn path=/trunk/boinc/; revision=22555
2010-10-19 15:48:33 +00:00
David Anderson 575718e420 - client: delete a notice if it's no longer in the RSS feed.
E.g., if a project deletes a news item, remove it from notices.
- notices RSS: remove the "since_time" mechanism
    (an optimization that conflicts with the above)

svn path=/trunk/boinc/; revision=22543
2010-10-17 04:01:36 +00:00
Charlie Fenton fda937f214 lib: Fix problems with Mac backtrace code: use atos only if present, etc.
svn path=/trunk/boinc/; revision=22540
2010-10-16 11:58:41 +00:00
David Anderson c9be64765c - client: use project STD, rather than arrival time,
as the major criterion in choosing non-EDF GPU jobs.
    GPU scheduling now respects resource share,
    and as a result STD should no longer diverge.
- client simulator: various improvements, most notably
    that we now generate gnuplot graphs of all debt types

NOTE: the client problem was found and fixed using the simulator!


svn path=/trunk/boinc/; revision=22536
2010-10-15 20:16:00 +00:00
David Anderson fb923e7659 - API/client: move CUdevice_attribute_enum out of lib/coproc.h
to fix app build errors

svn path=/trunk/boinc/; revision=22502
2010-10-13 23:33:02 +00:00
David Anderson 497254438f - API: compile fix for MinGW (from Bernd)
svn path=/trunk/boinc/; revision=22501
2010-10-13 23:26:33 +00:00
Rom Walton 8a79417f19 - Win/Linux: Implement the launch new manager functionality for Windows
and Linux.
        
    clientgui/
        AdvancedFrame.cpp
        BOINCGUIApp.cpp, .h
    lib/
        util.h

svn path=/trunk/boinc/; revision=22497
2010-10-13 21:02:42 +00:00
David Anderson 65b942c799 - GUI RPC: when resolving hostnames, ask for only IPV4 addresses.
No point in allowing IPV6 since the client doesn't
    create a listening socket for IPV6

svn path=/trunk/boinc/; revision=22475
2010-10-07 18:08:20 +00:00
David Anderson 746f62ff1a - GUI RPC: remove unneeded isIPV6 flag, factor out sizeof() logic
svn path=/trunk/boinc/; revision=22472
2010-10-07 17:41:34 +00:00
David Anderson 859253dba8 - crypt_prog: show cmdline options if error. Fixes #1019
svn path=/trunk/boinc/; revision=22448
2010-10-05 23:06:20 +00:00
David Anderson f300ba4a74 - client: fix bug causing garbage values in ATI descriptions
svn path=/trunk/boinc/; revision=22446
2010-10-05 20:28:38 +00:00
David Anderson 9e0eee004e svn path=/trunk/boinc/; revision=22436 2010-09-30 22:28:19 +00:00
David Anderson 7e2c48fa09 - undo recent change to str_util.h; it broke FCGI compile
svn path=/trunk/boinc/; revision=22435
2010-09-30 22:16:18 +00:00
Rom Walton e345e67b04 Debugging stuff
svn path=/trunk/boinc/; revision=22429
2010-09-30 17:39:30 +00:00
Charlie Fenton 528d2b40cf lib: Fix problem with IPV6-compatible code on Mac
svn path=/trunk/boinc/; revision=22428
2010-09-30 07:42:32 +00:00
Charlie Fenton 5e10e24311 lib: Add test for low-priority processes to procinfo_setup() and relatives on Mac
svn path=/trunk/boinc/; revision=22427
2010-09-30 06:45:45 +00:00
David Anderson c58558cba4 - lib: make str_util.h C-compatible (from Matt Arsenault)
svn path=/trunk/boinc/; revision=22426
2010-09-30 05:05:05 +00:00
Charlie Fenton bbcc7cd36d lib: Temporary work-around for unknown problem with IPV6-compatible code on Mac
svn path=/trunk/boinc/; revision=22425
2010-09-29 23:27:44 +00:00
David Anderson 1f9454c576 - client (unix): don't count low-priority processes towards
non-BOINC CPU time.
    NOTE: when you nice a process to 19,
    its priority in /proc is 39 (at least on Ubuntu and FC11).
    I can't find where this offset (20) is documented,
    so I just hardwired 39.

    TODO: Mac

svn path=/trunk/boinc/; revision=22424
2010-09-29 20:12:41 +00:00
David Anderson 29c3220c75 - client: in computing non-BOINC CPU time,
ignore ACTIVE_TASKs that don't have a process.
	- client: bug fix to previous checkin

svn path=/trunk/boinc/; revision=22423
2010-09-29 18:15:24 +00:00
David Anderson c6270ed0b7 - client: if a process has priority <= that of BOINC apps,
don't include it in non-BOINC CPU time.
    Otherwise the presence of such a process could
    prevent BOINC from running apps.
    (Windows only - will do Unix/Mac later)

svn path=/trunk/boinc/; revision=22422
2010-09-29 16:45:47 +00:00
David Anderson c7e13eafb3 - client: write GPU info to client_state.xml,
so that it can be input file to the client simulator.

svn path=/trunk/boinc/; revision=22405
2010-09-23 20:54:49 +00:00
Rom Walton 2aacdfaa60 Fix build break.
svn path=/trunk/boinc/; revision=22368
2010-09-16 04:35:54 +00:00
David Anderson 5cb66db61d - client (Win): use MoveFileEx() to rename file.
More atomic than delete/rename.
		fixes #1010

svn path=/trunk/boinc/; revision=22364
2010-09-15 23:25:23 +00:00
David Anderson 70ad1dcb4b - compile fix for Mac
svn path=/trunk/boinc/; revision=22362
2010-09-15 22:43:09 +00:00
David Anderson 0d41de283a - client: revert to old network functions (gethostbyname() etc.) on Win:
- inet_ntop() etc. exist only on Vista+
		- the other functions are declared in winsock2.h.
			This breaks the Manager build, since wxwidgets includes winsock.h.
		So to hell with it.
	- windows build: manager doesn't depend on client

svn path=/trunk/boinc/; revision=22358
2010-09-15 20:33:44 +00:00
David Anderson 0f4735352a - client: a bit of IPv6 compatibility
- use "sockaddr_storage" to store network addresses
        (which may be IPv4 or IPv6)
        rather than assuming they fit in an int.
    - the entries in gui_rpc_auth.cfg may now be IPv6 addresses
        (a🅱️c:e:f:g format),
        or domain names of hosts that support only IPv6
    Note: GUI RPCs are still constrained to use IPv4,
    but this should be easy to change if it's every needed

    Also: replace deprecated gethostbyname() with getaddrinfo().

svn path=/trunk/boinc/; revision=22353
2010-09-15 17:41:25 +00:00
David Anderson 81dfb9e6fc - lib: check for malloc() NULL return; fixes #921
svn path=/trunk/boinc/; revision=22345
2010-09-14 16:54:17 +00:00
David Anderson e0e237d4dc - debug the above. It now successfully displays an
RSS feed of news items from Google,
		linked from a project manager

svn path=/trunk/boinc/; revision=22326
2010-09-08 21:13:14 +00:00
Charlie Fenton 9d55213996 client: fix problems with exclusive_gpu_app feature
svn path=/trunk/boinc/; revision=22310
2010-08-31 10:35:42 +00:00
David Anderson f9adad65b6 - client: ignore case in names of "exclusive apps"
and exclusive GPU apps
	- client: fix bug that caused GPU apps to not be
		suspended or resumed immediately after
		exclusive GPU app transition
	- client: in log message, instead of saying
		"fetching tasks for GPU", say which kind of GPU

svn path=/trunk/boinc/; revision=22298
2010-08-27 18:22:59 +00:00
David Anderson 11fc2dcdd2 - client: treat notices from schedulers a little differently.
Ignore duplicate notices unless they're at least 24 hours
    newer than the previous one.

svn path=/trunk/boinc/; revision=22293
2010-08-26 21:26:52 +00:00
David Anderson 5989051b73 - lib: removed unneeded include. Fixes #1004
svn path=/trunk/boinc/; revision=22235
2010-08-14 13:48:26 +00:00
David Anderson 780b77036b svn path=/trunk/boinc/; revision=22227 2010-08-14 01:20:29 +00:00
Rom Walton a5dee555f9 - lib: prevent crash on startup if slot directories have been deleted.
lib/
        filesys.cpp

svn path=/trunk/boinc/; revision=22226
2010-08-13 18:43:24 +00:00
Rom Walton a23c05fffa - lib: Prevent category information from being lost in notices.
lib/
        notice.cpp

svn path=/trunk/boinc/; revision=22212
2010-08-12 15:40:56 +00:00
David Anderson a7376343cf - client: fix a bug that caused GPU apps to fail on startup
in the following situation.
    Suppose GPU job A is running,
    and GPU job B (which has never run before) preempts it.
    Then
    1) an ACTIVE_TASK and slot dir are allocated for B (slot dir is empty)
    2) A is told to quit; B isn't started until A exits
        (because they're GPU jobs)
    3) before A exits, B is suspended
    4) eventually B is started.
        Its scheduler state is SUSPENDED rather than UNINITIALIZED,
        so the scheduler thinks it slot dir has already been populated.
        But it hasn't, and when the app starts it fails immediately
        because no files are there.

    Fix: decide whether a slot dir needs to be populated by
    seeing whether it's empty,
    rather than looking at the scheduler state of the task.


svn path=/trunk/boinc/; revision=22206
2010-08-11 23:03:09 +00:00
David Anderson 9b37b6a2ee - lib: fix crash if you close and reopen an MFILE
svn path=/trunk/boinc/; revision=22201
2010-08-11 20:23:49 +00:00
Rom Walton e01ab98f71 - lib: Make procinfo_win.cpp Unicode compatible.
lib/
        procinfo_win.cpp

svn path=/trunk/boinc/; revision=22192
2010-08-11 16:35:06 +00:00
Rom Walton 4793196725 - client: Fix autoproxy detection so that it doesn't break platforms that
currently do not support proxy detection.
        
    client/
        net_stats.cpp
        sysmon_win.cpp
    lib/
        proxy_info.cpp, .h

svn path=/trunk/boinc/; revision=22110
2010-08-03 16:57:18 +00:00
David Anderson e0cea31781 - API: add result name to APP_INFO_DATA structure (for Volpex)
- scheduler: add max_download_urls_per_file config option
    (to limit the length of workunit.xml_doc,
    which is currently capped at 64KB).
    From Bernd.

svn path=/trunk/boinc/; revision=22082
2010-07-30 21:43:23 +00:00