Commit Graph

5239 Commits

Author SHA1 Message Date
David Anderson 24fda48c2b fix some compile warnings (no functional change) 2014-04-30 15:37:06 -07:00
David Anderson f8ee2e51fe client: keep track of a job's network usage, if it reports it.
If a job reports its network usage (via boinc_network_usage()),
keep track of this across episodes of the job, and report it to the server
(some projects may want to give credit for network usage).
2014-04-30 00:21:29 -07:00
Rom Walton af4a5acc2e client: Fix build break on Windows. 2014-04-28 14:48:21 -04:00
David Anderson 4901e27282 client: don't include GPUs that lack OpenCL/Cal/CUDA when main GPU has it
E.g.: if the "best" AMD GPU can do OpenCL, don't include AMD GPUs that can't,
even if use_all_gpus is set.
Otherwise lots of jobs will error out.
2014-04-26 09:05:00 -07:00
David Anderson 450f680880 client: detect NVIDIA driver version on Linux; from Matt Harvey 2014-04-24 09:41:23 -07:00
David Anderson 1de63547f1 Client: fix bug involving small image files and UMTS proxies
Context:
1) Some clients are behing proxies that compress image files
2) We added a preference dont_verify_images that disables
   size/MD5 verification of image files, if they're nonempty.
3) If a download finishes, the file is incomplete, and we
   read less than 5 KB, we assume that what we read was a proxy
   error message, and we truncate it from the file.

Bug: if a project has a small image file,
and a UMTS proxy compresses it to < 5 KB,
3) will truncate it to zero, and 2) will flag it as an error,
and the job will fail.

Fix: don't do 3) if it's an image file and dont_verify_images is set.
2014-04-22 10:07:06 -07:00
David Anderson db9abb12ce client: fix bug in parsing <no_rsc> from account managers
Also Manager message tweak
2014-04-17 00:23:44 -07:00
Rom Walton 44463ddba8 client: Remove a GetProcAddress() call. Call GetNativeSystemInfo() directly. 2014-04-03 02:16:23 -04:00
Rom Walton 0659dee3f0 client: Remove unneeded defines (They are included in the VS 2010 Windows SDK). 2014-04-03 01:59:17 -04:00
David Anderson 1193a874ed Client: tweaks to last commit 2014-04-02 01:49:00 -07:00
David Anderson b1a6fa39fc Client: keep track of job's peak WSS, swap size, and disk usage; send to server
Also fixed a bug where, if a job was aborted while not running,
its final CPU and elapsed time weren't copied from ACTIVE_TASK to RESULT,
hence not sent to scheduler
2014-04-02 00:56:15 -07:00
David Anderson e2ffe54c73 Client: remove unnecessary CPU benchmarking
On client startup, decide whether we need to do CPU benchmarks
(cmdline option was set, or we haven't done them for 30 days).
If so, do them when possible.
2014-04-01 00:31:26 -07:00
David Anderson e432e9d8ed Client: don't abort jobs if WSS > workunit.rsc_memory_bound
On second thought, I don't think this is change was desirable.
Currently many projects underestimate rsc_memory_bound,
so lots of jobs would be aborted.
I don't want to force projects to give accurate estimates of RAM usage.
That may not even be possible.
And we already have mechanisms for aborting jobs
for which WSS > available RAM,
and only scheduling sets of jobs whose total WSS is < available RAM
2014-03-31 18:57:19 -07:00
David Anderson 1973a1ed71 Client: fix bugs involving AMS-supplied resource shares
- If AMS supplies resource share, don't override it with
  project setting (my last fix didn't quite do this)
- When detach from AMS, set RS to project-supplied value
2014-03-31 18:21:35 -07:00
David Anderson d6a2a58d6c Client: enforce workunit.rsc_memory_bound
Inexplicably, the client was comparing a job's working set size
only with the client's overall RAM limit, not with the WU limit.
Check both.
Note: this may require some projects to update their values
of workunit.rsc_memory_bound.
2014-03-29 15:21:12 -07:00
Charlie Fenton 6245f691bf client: Simplify logic to get VirtualBox version on Mac and fix a crash bug when VirtualBox is installed only on a different boot partition. 2014-03-27 19:21:05 -07:00
Charlie Fenton c3b5dcc903 client: Show VirtualBox revision number along with its version number on Mac and Linux. 2014-03-27 17:14:54 -07:00
Kevin Reed 063f22eaa3 WCG: Update branding images and files for World Community Grid 2014-03-26 18:16:14 -04:00
Kevin Reed 7a6bcee40b Revise the ico files for WCG 2014-03-26 18:16:13 -04:00
Rom Walton 7ef0dbaa3c installer: Update images for WCG installer and skin 2014-03-26 18:15:56 -04:00
Rom Walton ba843869a7 client & MGR: Make writing trace statements to the debugger viewport something you have to opt into on Windows.
I use it a lot, but other developers using BOINC may not care to see BOINC messages while debugging their own stuff.
2014-03-25 18:23:58 -04:00
David Anderson 8a6b77ef59 client: fix bug where get_screensaver_tasks GUI RPC returned no tasks during CPU throttling 2014-03-25 11:53:22 -07:00
David Anderson 90fc7377fd client: tweak in MAC address code for struct lifconf 2014-03-20 19:42:59 -07:00
David Anderson 0355298b0d client: read stderr file if abort non-running job 2014-03-20 01:28:39 -07:00
David Anderson 8b2d7ffba1 client: if account manager has specified resource share, don't override it
The resource share passed in a scheduler reply was incorrectly
overriding the one specified by an account manager.
2014-03-19 16:30:15 -07:00
David Anderson cf0a0817c0 server: fix some compile warnings
Add a derived class DB_APP_VERSION_VAL for use by the validator,
containing the extra fields it uses,
so that we're not doing memset 0 on vectors
2014-03-19 14:55:16 -07:00
Rom Walton cedfa909f1 client: Fix the stuff I broke with my previous commit. Somehow I picked up a version of hostinfo_unix.cpp that was older than the current version. 2014-03-17 15:50:43 -04:00
Rom Walton edcc9ce9d5 client & MGR: Remove byte order markers from UTF-8 encoded files. 2014-03-17 15:44:11 -04:00
David Anderson 2acb991048 client: message tweaks 2014-03-15 20:10:49 -07:00
David Anderson 5f7366e19b client: work with old versions of libcurl
With old (7.15) versions of libcurl, args passed to curl_easy_setopt()
(such as the URL) were supposed to remain unchanged until
the operation was done.
Starting with 7.17 it was changed so that curl_easy_setopt()
copied its arguments.
The BOINC client was assuming the latter.
When linked against the former,
URLs would mysteriously change to garbage strings.

I changed things to work with the old libcurl semantics.
2014-03-14 00:21:15 -07:00
David Anderson 888c1a1e39 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2 2014-03-11 13:12:29 -07:00
David Anderson 994cbb5695 client (Android): fix bug that caused host venue change to be ignored 2014-03-11 13:12:15 -07:00
David Anderson b076a947fc client: work fetch tweak to avoid starvation in a particular case
My commit of Feb 7 caused work fetch to project P
to be deferred for up to 5 min if an upload to P is active,
even if some instances are idle.
This was to deal with a case where the idleness was caused
by a jobs-in-progress limit by P,
and work requests lead to long backoff.

However, this can cause instances to be idle unnecessarily.
I changed things so that, if instances are idle,
a work fetch can happen even during upload.
But only one such fetch will be done.
2014-03-09 17:09:21 -07:00
Rom Walton 073d3a70f7 client: Fix the CPUID calls for structured extension feature flags, it was clobbering standard support flags on Windows. 2014-03-06 21:02:34 -05:00
Rom Walton 7eb0cf7f9e Merge branch 'master' of ssh://isaac.ssl.berkeley.edu/boinc-v2 2014-03-06 18:28:08 -05:00
Rom Walton afb6dcc6f3 MGR & Client: Massive code clean-up. Remove as much of the LoadLibrary/GetProcAddress stuff as we can under VS 2012. 2014-03-06 18:27:54 -05:00
David Anderson df1d8e2bde server: store and display gpu_active_frac
- gpu_active_frac is the fraction of time GPU use is allowed
  while the client is running.
  Previously the client reported it but we weren't storing it in the DB.
  We may need it in the future for batch scheduling logic.
- fix a crashing bug in scheduler
- client: minor message tweak
2014-03-06 13:23:52 -08:00
Rom Walton 00aa8b4dbf MGR: Update BOINC icon set to v5. 2014-03-05 15:29:51 -05:00
Joachim Fritzsch 79a09152b5 android: change so 'user active', i.e. screen on, suspension only applies to computation, not to network activity. allow project initialization right after attach. 2014-03-04 14:59:28 +01:00
David Anderson 5188d65bff client: use user-friendly GPU names in log msgs 2014-02-24 20:54:42 -08:00
David Anderson 1fb6d713dc client: message tweak 2014-02-24 23:29:37 -05:00
David Anderson fe8b26ac73 client: when not piggybacking work request, explain why in log msg 2014-02-24 18:45:25 -08:00
Rom Walton 7471b381f7 client & manager: Update icons for all client-side components. (v4) 2014-02-23 23:12:30 -05:00
Rom Walton aa7af4c966 client & manager: Update icons for all client-side components. (v3b) 2014-02-22 20:04:40 -05:00
Joachim Fritzsch 5088041818 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2 2014-02-21 17:16:04 +01:00
David Anderson f417469db4 Client: fix bug in removal of "can't do work" notices 2014-02-20 12:54:27 -08:00
Joachim Fritzsch f0644ddb1b android: typo in client socket name. no functional impact. 2014-02-20 21:08:05 +01:00
David Anderson 8acebfee10 Client (Unix): attempt to fix freebsd build error 2014-02-20 10:09:18 -08:00
Joachim Fritzsch a82cdea440 android: better handling of co-existance of multiple BOINC based apps.
- name client socket uniquely to avoid interference
- cancel notifications after closing app to make splash Activity only entry point
2014-02-20 12:23:00 +01:00
Joachim Fritzsch aa055b41cc client (android): initialize device_status_time to current time upon start to prevent client to exit right away. 2014-02-18 13:23:43 +01:00