Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 66
Posts: 66   Pages: 7   [ 1 2 3 4 5 6 7 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 9602 times and has 65 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
BOINC + FreeBSD = Success

Hi all,
After recently moving from UD to WCG I started to work on getting FreeBSD to run the BOINC work units, and I have success!

This is how I did it.

cd /usr/ports/net/boinc-client
make config
(select X11 Support, the only option at time of writing)
make patch
(wait a while, the FreeBSD ports system will go about installing any dependencies it needs to run BOINC+X11)
edit /usr/ports/net/boinc-client/Makefile and find the line that reads:
CONFIGURE_ARGS= --disable-server

and replace it with
CONFIGURE_ARGS= --disable-server --with-boinc-platform i686-pc-linux-gnu


Now for the nasty nasty ugly hack ...
find the boinc-client configure file, this is probably in /usr/ports/net/boinc-client/.work/boinc-client-5.4.9/
and find the lines that read
cat >>confdefs.h <<_ACEOF
#define HOSTTYPE "$boinc_platform"
_ACEOF
and on the line between the start of that block and the line that reads
  fi
add the line
boinc_platform="i686-pc-linux-gnu"


(I did say it was an ugly ugly hack)

return to /usr/ports/net/boinc-client/ and finish off the port with 'make install'

this should install i686-pc-linux-gnu-boinc_client in to /usr/local/bin

once the client is installed make sure that linux emulation is loaded in the kernel and the usual emulation userland is installed
then you can simply run the client with the attach command to get it running

adw@skynet:~/boinc> i686-pc-linux-gnu-boinc_client -attach_project www.worldcommunitygrid.org abcdef1234567890abcdef1234567890
2006-12-07 06:11:47 [---] Starting BOINC client version 5.4.9 for i686-pc-linux-gnu
2006-12-07 06:11:47 [---] libcurl/7.15.5 OpenSSL/0.9.7e zlib/1.2.3
2006-12-07 06:11:47 [---] Data directory: /usr/home/adw/boinc
2006-12-07 06:11:47 [---] Processor: 1 amd64 AMD Sempron(tm) Processor 3000+
2006-12-07 06:11:47 [---] Memory: 1013.05 MB physical, 0 bytes virtual
2006-12-07 06:11:47 [---] Disk: 36.09 GB total, 7.95 GB free
2006-12-07 06:11:47 [http://www.worldcommunitygrid.org/] URL: http://www.worldcommunitygrid.org/; Computer ID: not assigned yet; location: ; project prefs: default
2006-12-07 06:11:47 [---] No general preferences found - using BOINC defaults
2006-12-07 06:11:47 [---] Local control only allowed
2006-12-07 06:11:47 [---] Listening on port 31416
2006-12-07 06:11:47 [---] Platform changed from to i686-pc-linux-gnu - resetting projects
2006-12-07 06:11:47 [http://www.worldcommunitygrid.org/] Resetting project
2006-12-07 06:11:47 [---] Rescheduling CPU: exit_tasks
2006-12-07 06:11:47 [---] Suspending network activity - running CPU benchmarks
2006-12-07 06:11:49 [---] Running CPU benchmarks
2006-12-07 06:12:48 [---] Benchmark results:
2006-12-07 06:12:48 [---] Number of CPUs: 1
2006-12-07 06:12:48 [---] 1503 floating point MIPS (Whetstone) per CPU
2006-12-07 06:12:48 [---] 4533 integer MIPS (Dhrystone) per CPU
2006-12-07 06:12:48 [---] Finished CPU benchmarks
2006-12-07 06:12:49 [---] Resuming computation
2006-12-07 06:12:49 [---] Rescheduling CPU: Resuming computation
2006-12-07 06:12:49 [---] Resuming network activity
2006-12-07 06:12:53 [http://www.worldcommunitygrid.org/] Scheduler list download succeeded
2006-12-07 06:12:53 [http://www.worldcommunitygrid.org/] Sending scheduler request to https://secure.worldcommunitygrid.org/boinc/wcg_cgi/fcgi
2006-12-07 06:12:53 [http://www.worldcommunitygrid.org/] Reason: Requested by user
2006-12-07 06:12:53 [http://www.worldcommunitygrid.org/] Requesting 8640 seconds of new work
2006-12-07 06:12:57 [http://www.worldcommunitygrid.org/] Scheduler request succeeded
2006-12-07 06:12:57 [World Community Grid] General preferences have been updated
2006-12-07 06:12:57 [---] General prefs: from World Community Grid (last modified 1970-01-01 01:00:01)
2006-12-07 06:12:57 [---] General prefs: using your defaults
2006-12-07 06:12:57 [World Community Grid] Successfully attached to World Community Grid
2006-12-07 06:12:59 [World Community Grid] Started download of file wcg_hdc_tma_5.14_i686-pc-linux-gnu
2006-12-07 06:12:59 [World Community Grid] Started download of file wcg_hdc_linux_5.14.tga
2006-12-07 06:13:07 [World Community Grid] Finished download of file wcg_hdc_linux_5.14.tga
2006-12-07 06:13:07 [World Community Grid] Throughput 178275 bytes/sec
2006-12-07 06:13:07 [World Community Grid] Started download of file wcg_hdc_tma_5.14_i686-pc-linux-gnu.so
2006-12-07 06:13:16 [World Community Grid] Finished download of file wcg_hdc_tma_5.14_i686-pc-linux-gnu
2006-12-07 06:13:16 [World Community Grid] Throughput 247491 bytes/sec
2006-12-07 06:13:16 [World Community Grid] Started download of file hdc.LM_filt.dat
2006-12-07 06:13:20 [World Community Grid] Finished download of file hdc.LM_filt.dat
2006-12-07 06:13:20 [World Community Grid] Throughput 141575 bytes/sec
2006-12-07 06:13:20 [World Community Grid] Started download of file hdc.S_filt.dat
2006-12-07 06:13:23 [World Community Grid] Finished download of file hdc.S_filt.dat
2006-12-07 06:13:23 [World Community Grid] Throughput 75256 bytes/sec
2006-12-07 06:13:23 [World Community Grid] Started download of file hdc.M4_filt.dat
2006-12-07 06:13:24 [World Community Grid] Finished download of file wcg_hdc_tma_5.14_i686-pc-linux-gnu.so
2006-12-07 06:13:24 [World Community Grid] Throughput 261021 bytes/sec
2006-12-07 06:13:24 [World Community Grid] Started download of file hdc.M8_filt.dat
2006-12-07 06:13:25 [World Community Grid] Finished download of file hdc.M4_filt.dat
2006-12-07 06:13:25 [World Community Grid] Throughput 85407 bytes/sec
2006-12-07 06:13:25 [World Community Grid] Started download of file hdc.LM_filt_49.dat
2006-12-07 06:13:27 [World Community Grid] Finished download of file hdc.M8_filt.dat
2006-12-07 06:13:27 [World Community Grid] Throughput 162738 bytes/sec
2006-12-07 06:13:27 [World Community Grid] Started download of file hdc.LM_filt_63.dat
2006-12-07 06:13:32 [World Community Grid] Finished download of file hdc.LM_filt_49.dat
2006-12-07 06:13:32 [World Community Grid] Throughput 244640 bytes/sec
2006-12-07 06:13:32 [World Community Grid] Started download of file hdc.S_filt_49.dat
2006-12-07 06:13:35 [World Community Grid] Finished download of file hdc.S_filt_49.dat
2006-12-07 06:13:35 [World Community Grid] Throughput 146820 bytes/sec
2006-12-07 06:13:35 [World Community Grid] Started download of file hdc.M8_filt_49.dat
2006-12-07 06:13:38 [World Community Grid] Finished download of file hdc.LM_filt_63.dat
2006-12-07 06:13:38 [World Community Grid] Throughput 238613 bytes/sec
2006-12-07 06:13:38 [World Community Grid] Started download of file B10696_0229_CTMA3D1-11-24-15_B10696_0229_CTMA3D1-11-24-15.mask
2006-12-07 06:13:40 [World Community Grid] Finished download of file hdc.M8_filt_49.dat
2006-12-07 06:13:40 [World Community Grid] Throughput 245889 bytes/sec
2006-12-07 06:13:40 [World Community Grid] Started download of file B10696_0229_CTMA3D1-11-24-15_B10696_0229_CTMA3D1-11-24-15.pgm
2006-12-07 06:13:47 [World Community Grid] Finished download of file B10696_0229_CTMA3D1-11-24-15_B10696_0229_CTMA3D1-11-24-15.pgm
2006-12-07 06:13:47 [World Community Grid] Throughput 226252 bytes/sec
2006-12-07 06:13:49 [World Community Grid] Finished download of file B10696_0229_CTMA3D1-11-24-15_B10696_0229_CTMA3D1-11-24-15.mask
2006-12-07 06:13:49 [World Community Grid] Throughput 286578 bytes/sec
2006-12-07 06:13:50 [---] Rescheduling CPU: files downloaded
2006-12-07 06:13:50 [World Community Grid] Starting task B10696_0229_CTMA3D1-11-24-15_0 using hdc version 514
B10696_0229_CTMA3D1-11-24-15.pgm
wcg_tma_imagein.fvm 677236, 1440000
Bulid texton library...
set 0
KNN: 75 clusters
2006-12-07 06:18:03 [World Community Grid] Sending scheduler request to https://secure.worldcommunitygrid.org/boinc/wcg_cgi/fcgi
2006-12-07 06:18:03 [World Community Grid] Reason: To fetch work
2006-12-07 06:18:03 [World Community Grid] Requesting 5964 seconds of new work
2006-12-07 06:18:08 [World Community Grid] Scheduler request succeeded
2006-12-07 06:18:10 [World Community Grid] Started download of file wcg_fcg1_ssearch_5.10_i686-pc-linux-gnu
2006-12-07 06:18:10 [World Community Grid] Started download of file fcg1_image_linux_5.10.tga
2006-12-07 06:18:19 [World Community Grid] Finished download of file wcg_fcg1_ssearch_5.10_i686-pc-linux-gnu
2006-12-07 06:18:19 [World Community Grid] Throughput 130035 bytes/sec
2006-12-07 06:18:19 [World Community Grid] Started download of file fcg1_image2_linux_5.10.tga
2006-12-07 06:18:20 [World Community Grid] Finished download of file fcg1_image_linux_5.10.tga
2006-12-07 06:18:20 [World Community Grid] Throughput 145912 bytes/sec
2006-12-07 06:18:20 [World Community Grid] Started download of file wcg_fcg1_ssearch_5.10_i686-pc-linux-gnu.so
2006-12-07 06:18:23 [World Community Grid] Finished download of file fcg1_image2_linux_5.10.tga
2006-12-07 06:18:23 [World Community Grid] Throughput 174605 bytes/sec
2006-12-07 06:18:23 [World Community Grid] Started download of file fcg1.10000298.faa
2006-12-07 06:18:25 [World Community Grid] Finished download of file wcg_fcg1_ssearch_5.10_i686-pc-linux-gnu.so
2006-12-07 06:18:25 [World Community Grid] Throughput 222012 bytes/sec
2006-12-07 06:18:25 [World Community Grid] Started download of file fcg1.10000364.faa
2006-12-07 06:18:26 [World Community Grid] Finished download of file fcg1.10000298.faa
2006-12-07 06:18:26 [World Community Grid] Throughput 140612 bytes/sec
2006-12-07 06:18:29 [World Community Grid] Finished download of file fcg1.10000364.faa
2006-12-07 06:18:29 [World Community Grid] Throughput 163594 bytes/sec
2006-12-07 06:18:30 [---] Rescheduling CPU: files downloaded


And the client is now running quite happily in linux emulation under a native FreeBSD client.

My system:
FreeBSD skynet.midgard.jara23.co.uk 6.2-PRERELEASE FreeBSD
6.2-PRERELEASE #0: Fri Nov 24 07:50:22 GMT 2006
adw@skynet.midgard.jara23.co.uk:/usr/obj/usr/src/sys/SKYNET
amd64


Happy crunching!
----------------------------------------
[Edit 2 times, last edit by Former Member at Dec 21, 2006 8:37:15 PM]
[Dec 7, 2006 6:28:02 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Sucess

PS. this BOINC agent should now be capable of running any i386-linux only BOINC projects, i've not yet tested that.
[Dec 7, 2006 6:30:48 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
cool Re: BOINC + FreeBSD = Sucess

Welcome over from grid.org... the oldest volunteer DC?

When u post the upload lines and the detail from the Results Status page that says 'Valid', I'll bow even deeper, than i do now already..... truly hope it works..... multithreaded :)

drooling


PS

Reading that Sony hobbled the Linux for PS3... it only uses one core and runs no faster than an 800mhz P3..... folks are looking for use of all 8 or so. There might be a job for u smile

Edit: If u could put some returns in that very long line.... it's scrolling of the screen
----------------------------------------
WCG Global & Research > Make Proposal Help: Start Here!
Please help to make the Forums an enjoyable experience for All!
----------------------------------------
[Edit 1 times, last edit by Sekerob at Dec 7, 2006 7:06:55 AM]
[Dec 7, 2006 7:05:08 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Sucess

no results sent yet, but this is my windows BOINC manager monitoring the FreeBSD host :D

[url]http://img300.imageshack.us/img300/3791/wcgbi0.png[/url]

And if anyone is willing to give me a PS3 for 'testing' I'll do what i can ;)

edit: Image changed to link because it was taking up all the screen
----------------------------------------
[Edit 2 times, last edit by Former Member at Dec 22, 2006 2:00:07 AM]
[Dec 7, 2006 7:09:31 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Success

Thanks, darkskye!

A few of my team members have been asking about BSD, and until now I wasn't able to give a complete, tested answer.
[Dec 7, 2006 7:21:00 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Success

As Sekerob said its a little early yet to be opening the champagne, i'll let you know in 5 or so hours if the WU's get accepted as being valid :)
[Dec 7, 2006 7:28:58 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Success

May we have a progress report?
[Dec 7, 2006 10:52:37 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Success

This is what my device manager is currently showing.



From what I can tell the reason validation is pending is because the clients are looking for libGL.so.0 which doesn't exist in the linux emulated environment (libGLw.so.0 does however, so i'm testing using that)
[Dec 8, 2006 7:23:13 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Success

No, no, validation pending just means that all the results aren't in, so WCG can't do the comparison yet. Click on the work unit name to see the status of the other copies that were sent out.
[Dec 8, 2006 7:27:36 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
Re: BOINC + FreeBSD = Success

4 in Pending Validation is promising..... means at least there were no immediate detectible failures, client side.

BTW, propose u black out that computer name and repost the screenshot thinking
----------------------------------------
WCG Global & Research > Make Proposal Help: Start Here!
Please help to make the Forums an enjoyable experience for All!
[Dec 8, 2006 7:45:34 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 66   Pages: 7   [ 1 2 3 4 5 6 7 | Next Page ]
[ Jump to Last Post ]
Post new Thread