• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Gentoo Ebuild - foldingathome

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

splat

ASCII Moderator
Joined
Apr 6, 2002
follow the gentoo bug requesting inclusion in to the official tree
--------------------------------------------------------------------------------

Alrighty. I made a gentoo ebuild for fah-6.00_beta2 smp.

how to use:
add portage_overlay to make.conf:
Code:
echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf

extract ebuild:
Code:
mkdir /usr/local/portage
mv ebuild-foldingathome-6.00_beta2.tar.gz /usr/local/portage/
cd /usr/local/portage
tar zxvf ebuild-foldingathome-6.00_beta2.tar.gz

if you aren't running ~amd64, then add to package.keywords:
Code:
echo "sci-biology/foldingathome" >> /etc/portage/package.keywords

then emerge:
Code:
emerge -va foldingathome

you will need to set the -smp flag manually with this release. To do so, edit /etc/conf.d/foldingathome

to config fah:
Code:
/opt/foldingathome/amd-64/initfolding

add to run at startup:
Code:
rc-update -a foldingathome default

start:
Code:
/etc/init.d/foldingathome start

file is in zip format so i could attach it to the post. disclaimer: this is provided as is. I take no responsibility for any damage this might cause to your computer and/or data. Use at your own risk.

update 5/19/2009: made one for 6.24beta http://www.ocforums.com/showpost.php?p=6102850&postcount=17
 

Attachments

  • ebuild-foldingathome-6.00_beta2.zip
    7.3 KB · Views: 102
Last edited:
portage only has 5.02 client and 5.91_beta hardmasked. so i made a custom ebuild to grab the new 6.00_beta2. and a howto so people can use it.
 
to config:
Code:
/opt/foldingathome/initfolding

notes: on my c2d dual core, this spawned 3 threads. on my amd64 dual core, this spawned 1 thread. i can only assume it has something to do with the fah program itself.

With the linux 6.0 client you need to use the -smp flag (add it in the config where it asks for it) in order to get the SMP client. This will give you more PPD on a dual core+ than the standard work units and also use all of the available processor.

With smp, it should always spawn four threads, it might show as eight processes in top/ps though.
 
With the linux 6.0 client you need to use the -smp flag (add it in the config where it asks for it) in order to get the SMP client. This will give you more PPD on a dual core+ than the standard work units and also use all of the available processor.

With smp, it should always spawn four threads, it might show as eight processes in top/ps though.

ah yes, i totally glazed over that in the directions. I'll update the ebuild tonight.

edit: just to note, you can use this ebuild, but you'll have to manually set -smp in /etc/conf.d/foldingathome
 
Last edited:
May help?

Code:
#!/bin/bash

echo "Configuring Portage Stuff..."
echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf
echo "sci-biology/foldingathome" >> /etc/portage/package.keywords

# Not sure if splat tgz'd then zipped it or just zipped it?
echo "Sorting out ebuild...."
if [ -f ebuild-foldingathome-6.00_beta2.zip ]; then
   uzip ebuild-foldingathome-6.00_beta2.zip # Check my uzip syntax
fi
if [ -f ebuild-foldingathome-6.00_beta2.tar.gz ]; then
   tar zxvf ebuild-foldingathome-6.00_beta2.tar.gz -C /usr/local/portage
else [ -f ebuild-foldingathome-6.00_beta2.ebuild ]; then
   cp ebuild-foldingathome-6.00_beta2.ebuild /usr/local/portage
fi

echo "Emerging..."
emerge -va foldingathome && \
echo "Please set up FaH:" && \
/opt/foldingathome/initfolding && \
#Uncomment to add to startup
#rc-update add foldingathome default

Feel free to correct it - script untested at the moment.
 
May help?

Code:
## script cutout for space

Feel free to correct it - script untested at the moment.

The file is a straight zip, solely so i could attach it to the post. vbulletin wouldn't let me attach a .tar.gz

you could also have the script start the folding client at the end. And i assume you have this being run from /usr/local/portage, with the package in /usr/local/portage. Anyway, i'm sure someone will find that helpful, thanks.

BTW, last night i did update the ebuild to put -smp in /etc/conf.d/folding by default, and it works great...but I didn't have time to make a new zip and upload it here because I was working on a few other projects. Anyway, you can still modify the conf.d/folding file by hand to get the same effect.
 
The file is a straight zip, solely so i could attach it to the post. vbulletin wouldn't let me attach a .tar.gz

you could also have the script start the folding client at the end. And i assume you have this being run from /usr/local/portage, with the package in /usr/local/portage. Anyway, i'm sure someone will find that helpful, thanks.

BTW, last night i did update the ebuild to put -smp in /etc/conf.d/folding by default, and it works great...but I didn't have time to make a new zip and upload it here because I was working on a few other projects. Anyway, you can still modify the conf.d/folding file by hand to get the same effect.

I just have a little bit of time to kill before showing prospective students round the University so I thought I'd just write a wee script :p
 
Hey all. I manage a VMware cluster at work and have alot of gentoo VMs. Since you've recently peaked my interest I got F@H running on a gentoo vm. I just did an emerge and it gave me 5.0.2-r5. Its maxing out the 2 cores I gave it but I'm only getting 583PPD. If I unmask 6.02-r1 and get it installed do you think I will see a noticeable increase (w/ -smp)?

Another question. I ran the initfolding script but it didn't ask me about memory (even in advanced). It looks like F@H is using maybe 110MB per Core. Would increasing it help? How do I do that?

PPD going to T32monkeys / 32.
 
I gave up on the gentoo ebuilds and just did a manual install. I always have ~amd64 keyworded and life has been much easier. Does anyone know of an overlay that gets the latest and greatest and works the best??
 
Hey all. I manage a VMware cluster at work and have alot of gentoo VMs. Since you've recently peaked my interest I got F@H running on a gentoo vm. I just did an emerge and it gave me 5.0.2-r5. Its maxing out the 2 cores I gave it but I'm only getting 583PPD. If I unmask 6.02-r1 and get it installed do you think I will see a noticeable increase (w/ -smp)?

Another question. I ran the initfolding script but it didn't ask me about memory (even in advanced). It looks like F@H is using maybe 110MB per Core. Would increasing it help? How do I do that?

PPD going to T32monkeys / 32.

Holy thread resurrection Batman! :eek:

Ok, I'm no Linux expert... but what I'm reading you say is that you are running client v5.02... and you're asking if 6.02 (or you can try v6.24 64-bit) will yield more ppd with the -smp option. The answer is undoubtedly... Yes. :D

You can get those clients here: http://folding.stanford.edu/English/Download
 
Holy thread resurrection Batman! :eek:

Haha I thought this was from 03/09 not 03/08. I gotta stop using google to find everything.

I tried to switch to 6.02 with -smp but it requires a 64-bit OS. So I have to start over from scratch. So much for cloneing and a 30mins setup.:bang head

I'll follow that link and install manually since F@H is pretty small and shouldn't be a pain.

Thanks
 
Yep... 64-bit req. It's really just to make sure that people are using modern processors as the client (6.02) is 32-bit, I think they just check the kernel type. There is indeed a 64-bit build (6.24 beta) on that page if you'd like to try it instead.

Yes... it's pretty easy... download, extract...

Run: ./fah6 -configonly

(answer config questions)

Run: ./fah6 -smp -verbosity 9

That's it... happy Folding! :)
 
lol, 2 files in the tgz. That was easy.

I had to use -forceasm to get the A2 cores to run. Still not maxing out my i7 with 2 vms.
 
quickly made one for 6.24beta
 

Attachments

  • ebuild-foldingathome-6.24.zip
    7.4 KB · Views: 96
my 6.24 edits finally got pulled in to the main portage tree a few weeks ago, btw

Thats cool! I still fold on gentoo vm's (look at my noob questions lol.). But its so easy to untar the files I never really needed to emerge it. Not to diminish what you did, I'd be proud if they put my changes in the main portage.

Thread jack question. Since you seem to be a gentoo guru, have you done gpu folding on gentoo? I was going to switch distros for it because it seems like pita. Trying out Sabayon 5 right now, aside from the wrong driver it works out of the box.
 
Back