Commit Graph

425 Commits

Author SHA1 Message Date
Rom Walton b96a79f005 android: Fix the example app compile on Android 2013-03-05 13:39:42 +01:00
Rom Walton 4fd40b9c9c android: order dependent 2013-03-05 13:39:42 +01:00
Rom Walton d34bee8759 android: pthread is bundled within the Android libc implementation. We do not need to specify it as an external lib. 2013-03-05 13:39:42 +01:00
Rom Walton bd087f006f android: another time 2013-03-05 13:39:42 +01:00
Rom Walton d8a78b5e4a android: ugh, one more time 2013-03-05 13:39:42 +01:00
Rom Walton 6f55b792a9 android: round three of makefile fixes for wrapper on android 2013-03-05 13:39:42 +01:00
Rom Walton 4d9d3fd4a0 android: lets try this a different way 2013-03-05 13:39:42 +01:00
Rom Walton 6d2ef43306 android: modify makefile to get around build errors when building for android 2013-03-05 13:39:42 +01:00
Rom Walton 4b3cd5e293 android: bug fix for build scripts 2013-03-05 13:39:42 +01:00
Rom Walton e95265a1aa android: commit shell scripts to build uppercase and wrapper for use on Android. 2013-03-05 13:39:42 +01:00
David Anderson 79c6225fc2 - configure: work with "gold" linker 2013-03-05 13:33:27 +01:00
David Anderson 35608c434b - fix Android compile warnings
- intermediate checkin for Condor stuff
2013-03-05 13:33:27 +01:00
Rom Walton 10ed915bcc VBOX: If 'vboxmanage --version' successfully executes we can assume that VirtualBox is installed on all supported platforms. 2013-03-04 17:39:24 +01:00
Rom Walton 41af56d679 Wrapper: Add trace statements to debug problems CAS@Home is having with the wrapper. 2013-03-04 17:39:24 +01:00
Rom Walton 076858a729 LIB: Standardize on using windows_format_error_string and drop windows_error_string.
* Move the windows_format_error_string function to win_util.cpp, .h instead of it being scattered between util.h and str_util.cpp.
* Convert the Windows error string into UTF8 before allowing it to be used by the caller
* Remove windows_error_string from library
2013-03-04 17:39:24 +01:00
Rom Walton 56974bff70 VBOX: If Detection of VirtualBox fails, declare it a temporary failure and reschedule after 24-hours.
6.10 and older do not detect if VirtualBox has been installed.  If a VM job is assigned to a host running on an old client and the wrapper detects VirtualBox is not installed reschedule the job for execution at a later date.  This prevents the client from requesting excessive amounts of work which will all fail.  Eventually the job will error out when it passes its deadline.
2013-03-04 17:39:23 +01:00
Oliver Bock 08126182b6 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc
Conflicts:
	checkin_notes
2013-03-04 17:36:15 +01:00
Rom Walton 6c716f918f - VBOX: Clean up VirtualBox version information for all platforms. 2013-03-04 17:35:35 +01:00
David Anderson 18d0f1f4d9 more GAHP code 2013-03-04 17:24:20 +01:00
Rom Walton f57f32fd0b - VBOX: Clean up version string. 2013-03-04 17:24:19 +01:00
Rom Walton 78ed97fd84 Fix build break 2013-03-04 17:24:19 +01:00
Rom Walton 2cb28a822c - VBOX: On *nix systems, if the vboxdrv kernel module isn't loaded declare
it a temp error and reschedule execution at a later date.
2013-03-04 17:24:19 +01:00
Rom Walton cfca0d215e - VBOX: Record what version of VirtualBox was used, as well as whether
anonymous platform was specified for the project.
2013-03-04 17:24:19 +01:00
Rom Walton d1d200b280 - VBOX: On *nix systems, force the wrapper into sandbox mode if the
HOME environment variable is missing.  Without the HOME environment
        variable VirtualBox attempts to write log files and other state
        information in root's home directory.
2013-03-04 17:24:19 +01:00
Rom Walton 1915da2e64 - VBOX: Initialize the PATH variable before attempting to check to see if
the system is ready.
2013-03-04 17:21:32 +01:00
Rom Walton 27557feae1 - VBOX: Perform a quick check that the wrapper can communicate with
vboxsvc via vboxmanage before attempting anything else.  If it
        fails, get BOINC to reschedule task execution in 5 minutes.
2013-03-04 17:19:40 +01:00
Charlie Fenton b8293bc457 wrapper: Fix build script and Makefile on Mac 2013-03-04 17:19:38 +01:00
David Anderson afdc69a8a8 More Line Ending Changes 2013-03-04 17:19:38 +01:00
Rom Walton 6b7190c0eb Line ending changes 2013-03-04 17:12:12 +01:00
David Anderson 17a4ab8db9 David 11 Dec 2012
- Win process control (affects API and wrapper):
		Since Win doesn't have an API for process suspend/resume,
		we were suspending processes by
			1) enumerating all the threads in the system (typically several thousand)
			2) suspending those belonging to the given process
		The problem: for each thread, the code was calling a function
		in diagnostics_win.cpp to see if the thread was exempted from suspension.
		This check (which is unnecessary anyway if we're suspending another process)
		was surrounded by a semaphore acquire/release.
		The result: performance problems.
		It could take a minute to suspend the threads.
		Solution:
			1) do the check for exemption only if we're suspending threads
				in our own process (i.e. from the API)
			2) if we're suspending multiple processes, enumerate the threads
				only once, and see if each one belongs to any of the processes
			3) have the wrapper elevate itself to normal priority.
				Otherwise it can get preempted for long periods,
				sometimes in the middle of scanning the threads.
		Note: post-9x versions of Win have a process group API that includes suspend/resume.
		We'll switch to this soon.
2013-03-04 17:02:40 +01:00
Rom Walton 474b9a4f37 - VBOX: Fix build break introduced by the previous vbox commit. 2013-03-04 15:23:39 +01:00
Rom Walton e693e2df09 - VBOX: Add the ability to read a fraction done file from the shared
directory.  Use the same semantics as the regular wrapper.
2013-03-04 15:23:38 +01:00
David Anderson ce47010dbb - client: if <dont_check_file_sizes> is set, don't check file existence at startup
- wrapper: open files in shared mode so you can look at them while wrapper is running
2013-03-04 15:23:37 +01:00
David Anderson 374ee55113 - wrapper: compile fixes for Win 2013-03-04 15:04:51 +01:00
David Anderson d8b7e4347f - wrapper: add feature for unzipping input files and zipping output files 2013-03-04 15:04:51 +01:00
David Anderson bb0ced01ba - wrapper: add source files for a regular expression library
(too be used soon)
- boinc_zip: add makefile for test program
2013-03-04 15:04:51 +01:00
Rom Walton 43c55fd34b - VBOX: Add the ability to specify both the type and model of disk
controller to use.  It can be specified by adding the following
        tags to vbox_job.xml:

        <vm_disk_controller_type></vm_disk_controller_type>
        <vm_disk_controller_model></vm_disk_controller_model>

      Executing vboxmanage --help will list the available options in the
        storeagectl section.
2013-03-04 14:59:23 +01:00
Charlie Fenton bee911811a Mac: add slide-show screensaver to example_app Xcode project and Mac example_app build scripts
example app: fix compiler warnings in slide_show.cpp
2013-03-01 16:26:09 +01:00
David Anderson 3f8357fc92 - add slide-show screensaver (from David Coss) 2013-03-01 16:26:08 +01:00
Rom Walton 3eaaea887a - VBOX: Ugh, if sleep_time is greater than zero, increment elapsed_time by the poll interval. 2013-03-01 16:23:13 +01:00
Rom Walton edfa1deae1 - VBOX: Do not count the sleep time as part of the elapsed time when the VM is supposed to be suspended. 2013-03-01 16:23:13 +01:00
David Anderson 42756406f5 - example app: get the graphics app to build on Fedora Core 14
Note: this required installing various packages,
    and tweaking the Makefile in various ways,
    some of them FC14-specific ways
2013-03-01 16:23:13 +01:00
Rom Walton 7621fd21fe - VBOX: Make adjustments to the clean-up procedure for Vbox 4.2. 2013-03-01 16:17:19 +01:00
Rom Walton ba7a0b5945 - VBOX: Cleanup all the snapshots before unregistering the VM. 2013-03-01 16:17:19 +01:00
Rom Walton dd8c025c37 - VBOX: Cleanup log a little bit 2013-03-01 16:17:19 +01:00
Rom Walton dc47fe956d - VBOX: Remove extra arguments to the enumerate snapshot command.
Copy and paste was not my friend.
2013-03-01 16:17:19 +01:00
Rom Walton 527cf846b8 - VBOX: Make deleting a snapshot a non-terminal event.
Deleting stale snapshots now consists of enumerating the existing
        snapshots and deleting all but the most recent snapshot.  This fixes
        the problem where, for one reason or another, a snapshot could not
        be deleted at one point in time.  The wrapper would just continue to
        create new ones and was unable to successfully deal with the older
        ones.  Disk space would eventually run out.
2013-03-01 16:08:53 +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