Commit Graph

4840 Commits

Author SHA1 Message Date
David Anderson 77ee073f58 - client: show error notice if a GPU exclusion (in cc_config.xml)
has an invalid URL, type, or app
- server, create_work() function: if a <file_info> in input template
    lists URLs, they're directories; append filename to each one
2013-03-05 16:57:51 +01:00
David Anderson 0a75353fb7 - client (Android and other Unix without shmget())
Don't write spurious messages to stderr about shmem operations
    not being supported.
2013-03-05 16:42:44 +01:00
Rom Walton 4325ba01bf Android: Initialize variable 2013-03-05 16:40:25 +01:00
Oliver Bock 7a434286b1 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc 2013-03-05 16:39:57 +01:00
David Anderson 5c7f583e42 - client: suspend_reason is not a bitmap; fix code that acted like it is. 2013-03-05 16:39:36 +01:00
Rom Walton b26fdda827 Android: Add different locations that can host battery information.
Android: For all power/battery file descriptors, NULL out their buffers so the client will grab the latest information and not recycle the old information.
2013-03-05 16:38:42 +01:00
Rom Walton 45120de247 Android: Fix crashing bug when we poll for battery information 2013-03-05 16:38:42 +01:00
Rom Walton 6012f9261f Android: Remove debug code for Android, the required functions are called and function.
Android: Remove separate copy_asset.sh script and make that the last part of the build_boinc.sh script.
2013-03-05 16:38:42 +01:00
Rom Walton ff53e509cf Android: Add trace statements to track down battery issues 2013-03-05 16:38:41 +01:00
Rom Walton 255fbade62 client: Fix typo for Android builds 2013-03-05 16:38:41 +01:00
Oliver Bock 05eba7c951 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc 2013-03-05 16:35:14 +01:00
David Anderson 6352f9ca9d - client (Android): forget hysteresis policy; don't compute if < 95% charged. 2013-03-05 16:34:58 +01:00
David Anderson 06eadde310 - client (Unix): check whether VBoxManager is executable by us
before trying to run it.
    Otherwise we get lots of msgs in stderr.
2013-03-05 16:33:39 +01:00
Rom Walton 3ffc712961 client: Another typo 2013-03-05 16:31:08 +01:00
Rom Walton 9b83503d9d client: Another typo 2013-03-05 16:31:08 +01:00
Rom Walton f6807efe18 client: Properly return the battery status as full when it is. 2013-03-05 16:31:08 +01:00
Oliver Bock e695df9f6e Merge branch 'master' of ssh://boinc.berkeley.edu/boinc 2013-03-05 16:00:47 +01:00
David Anderson c7a5156573 - client: work fetch: if there are idle devices, we need to ask
the highest-prio project for work for all of them
    (don't scale by the fetchable resource share!).
    This should fix some device starvation problems.
2013-03-05 16:00:35 +01:00
Rom Walton 49e41f7123 client: Fix typo from previous commit 2013-03-05 15:57:35 +01:00
Rom Walton af7948910e client: Adjust logging on Android so that all messages that show up in the event log are also dumped to LogCat, things were originally setup with that intent but I don't think __VA_ARGS__ was having the desired effect. 2013-03-05 15:57:34 +01:00
David Anderson 3c029c7613 - client: job scheduler tweak to avoid CPU idleness in situation
where GPU jobs use different CPU fractions
- single-job submission: default platform is that of server
2013-03-05 15:57:34 +01:00
Oliver Bock eb79b9e78b Merge branch 'master' of ssh://boinc.berkeley.edu/boinc
Conflicts:
	client/hostinfo_unix.cpp
2013-03-05 15:45:13 +01:00
Rom Walton 011441fb1f client: Removed unused variables on Android wifi detection 2013-03-05 15:40:04 +01:00
Rom Walton c9717d068b client: Fix typo for Android 2013-03-05 15:40:04 +01:00
Rom Walton 7b40d2286f client: Fix Typo for Android 2013-03-05 15:40:04 +01:00
Rom Walton 64ec0f49a3 client: Fix typos for Android 2013-03-05 15:40:04 +01:00
Rom Walton d2df80a859 client: Fix typos for Android 2013-03-05 15:40:04 +01:00
Rom Walton 22a2762622 client: Fix build break on Android 2013-03-05 15:40:04 +01:00
David Anderson 3b18584cb3 - client (Android): change battery-status function so that it
keeps file descriptors open
    (slight simplification and performance enhancement).
2013-03-05 15:33:54 +01:00
David Anderson 21f580d9ef - client (Android): suspend processing if battery temperature > 45 C.
We can adjust this or make it configurable later.
2013-03-05 15:28:00 +01:00
Oliver Bock 58395eda60 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc 2013-03-05 15:27:30 +01:00
Rom Walton 86ceabbee2 client: Fix typo 2013-03-05 15:27:26 +01:00
David Anderson 7177185585 - client: show "%" correctly in messages from scheduler 2013-03-05 15:27:09 +01:00
David Anderson 607060ffaa - client (Android)
- Don't compute if the battery is overheated
    - Don't compute until the batter is 95% charged.
        Then stop computing if it falls below 90%.
        (On some devices, computing causes the batter to drain
        even while it's recharging).
2013-03-05 15:24:01 +01:00
Rom Walton 9ce39485b5 client: Basic detection of the battery state for a given host for Windows and Android. Useful for detecting if the battery is overheating. 2013-03-05 15:12:52 +01:00
Rom Walton 759b3b8078 client: Basic detection of how much capacity a host's battery has on Android and Windows. 2013-03-05 15:12:52 +01:00
David Anderson 3a530a4c34 - client: check return value of the function (statfs or statvfs)
used to find disk space and usage.
    This may be failing for in-memory filesystems on Linux.
2013-03-05 15:05:29 +01:00
David Anderson 4eed4c1b7d - client: message tweak
- remote job submission: output file fetch now working.  Woo hoo!
2013-03-05 14:52:37 +01:00
David Anderson 9342fe696b - client (Win) fixes/improvements to CPU feature detection, from Robert Kreß 2013-03-05 14:52:37 +01:00
David Anderson d013b1f74a - Client: message tweak for GPU suspend/resume 2013-03-05 14:26:49 +01:00
Eric J Korpela 9b191c409a - Modifications to autoconf scripts for non-standard openssl installs 2013-03-05 14:17:54 +01:00
Oliver Bock f728f4e9d4 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc 2013-03-05 14:05:27 +01:00
Joachim Fritzsch ad05a8b0b9 - client: (android) add wifi location of Android 4 devices to detect wifi state properly. 2013-03-05 14:05:04 +01:00
David Anderson c17d20ccd9 - client: show sysmon messages correctly.
This was supposed to be in my 507cd79 commit, but it got botched somehow.
- client: the <task> debug flag enables suspend/resume messages
    for both CPU and GPU.
    Previously CPU messages were always shown,
    and GPU messages were shown if <cpu_sched_debug> was set.
- client: fix bug where reschedule wasn't being done on GPU suspend or resume.
2013-03-05 14:05:04 +01:00
David Anderson 986ea8707c - client: if app does temporary exit, don't print premature exit warning 2013-03-05 14:05:04 +01:00
Rom Walton 340fcfd733 client: when formatting the OpenCL description field, use the human readable version of the GPU type. People were expecting Intel GPU instead of intel_gpu. 2013-03-05 14:03:49 +01:00
Charlie Fenton c2e77a0515 Compile fix for non-Windows clients 2013-03-05 13:43:14 +01:00
David Anderson 6c5522d9c5 Win compile fix 2013-03-05 13:42:01 +01:00
David Anderson c141e7bdc9 - client (Win): don't call msg_printf() from sysmon thread.
Instead, put msg into a buffer and let main thread print it.
    This may fix crashes on system suspend/resume.
2013-03-05 13:42:01 +01:00
David Anderson 3c73f40809 - client: the logic for work fetch in the presence of GPU exclusions
(especially per-app exclusions) was incomplete and buggy.
    Changes:
    - make bitmaps of included instances per (app, resource type)
    - in round-robin simulation, we keep track of used instances
        (so that we know if there are instances that are idle
        because of exclusions).
        Do this based on app-level exclusions
        (previously it was done based on project-wide exclusions,
        which didn't include app-level exclusions).
    - compute RSC_PROJECT_WORK_FETCH::non_excluded_instances
        as the logical OR of the per-app masks.
        I.e. if you exclude an instance for all apps separately,
        it's the same as excluding it for the project as a whole.
        (Note: this bitmap is used for only 1 purpose:
        if we have idle instances, don't request work from a project
        for which those instances are excluded.)
    - define RSC_PROJECT_WORK_FETCH::ncoprocs_excluded as the # of
        instances excluded for *any* app, not the # excluded for all apps.
        This quantity is used in work fetch to make sure we don't
        unboundedly fetch jobs that turn out not to have a GPU to run on
        due to exclusions.
2013-03-05 13:42:00 +01:00