Quantcast

Maximum PC

It is currently Thu Dec 25, 2014 1:31 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sat Oct 02, 2010 3:00 pm 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
First, I would like to thank gigabyte, and everybody else, for helping me learn linux.

This is for Ubuntu 10.04 (64-bit) LTS Desktop: Released April 2010 and maintained until April 2013 If you use another OS, to include Ubuntu 9.04, 9.10, etc... and have problems please create a new thread.

Contents (use ctrl + f to find what you're looking for):

SMP guide: *SMP*
GPU3 guide: *GPU*
SMP optimization: *SMP OPTIMIZATION*

more coming soon :D


Also, for all commands, copy and paste into the "Terminal" program, located under "Applications -> Accessories -> Terminal"

any command that begins with "sudo" may require you to enter your password. Don't worry that nothing appears when you type the password, just type it and hit enter.




*SMP*


Go to Applications > Accessories > Terminal copy and paste (Shift+Insert or right click+paste) Ensure you press Enter to execute the last line of code in each group.
Update the system.
Quote:
sudo apt-get update
sudo apt-get upgrade -y
Install ia32-libs.
Quote:
sudo apt-get install ia32-libs


Create new folders, and setup the client
Code:
mkdir -p ~/fah/smp
cd ~/fah/smp
wget http://www.stanford.edu/group/pandegroup/folding/release/FAH6.29-Linux.tgz
tar xvf FAH6.29-Linux.tgz
./fah6 -verbosity 9 -smp
Press enter for the last command. If you have an i7 with Hyper Threading or more than 4 cores, than add the appropriate # after -smp. Example: ./fah6 -smp 8 -verbosity 9

for bigadv, add the -bigadv flag Example: ./fah6 -smp 8 -verbosity 9 -bigadv

Now setup the client, with passkey, and you will get an error message. don't worry, a fix has appeared.

Code:
cd ~
wget http://darkswarm.org/whosyerdaddy-0.6.sh
chmod +x whosyerdaddy-0.6.sh
cp -a /lib ~/lib64-fah
cd ~/lib64-fah
~/whosyerdaddy-0.6.sh


Now to start the client, type:

Code:
LD_LIBRARY_PATH=~/lib64-fah ./fah6 -smp -verbosity 9


If you want to stop the client press "CTRL + C"

Happy folding!! :D :D





Ted


Last edited by Tedster on Sun Oct 10, 2010 2:01 pm, edited 3 times in total.

Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sat Oct 02, 2010 3:02 pm 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
*GPU*

This sets up a GPU3 client.

#####NOTE: Linux GPU folding is NVIDIA only at this time.#####

Credit for a lot of this guide goes to this guide at foldingforum.

First, download some files:

Code:
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/256.35/NVIDIA-Linux-x86_64-256.53.run
wget http://developer.download.nvidia.com/compute/cuda/3_0/toolkit/cudatoolkit_3.0_linux_32_ubuntu9.04.run


And install something:

Code:
sudo apt-get install build-essential linux-headers-`uname -r`


This command will stop the GUI, so write down the next commands:
Code:
sudo service gdm stop


Now press "[CTRL] + [ALT] + [F1]"

log in and run this command to install the nvidia driver:

Code:
sudo sh NVIDIA-Linux-x86_64-256.53.run


follow the prompts, and say yes to the opengl libraries, and yes to the nvidia-xconfig

now the command which will bring back the GUI:

Code:
sudo service gdm start


Log in again, and continue setup

install the CUDA toolkit

Code:
sudo sh cudatoolkit_3.0_linux_32_ubuntu9.04.run


press enter at the prompt for the path, and now time to create some links:

%-%
Code:
sudo sh -c "echo '/usr/local/cuda/lib' > /etc/ld.so.conf.d/cuda.conf"
sudo ldconfig


now to create the wine directory structure:

Code:
wine notepad


hit x on the notepad window that appears.

Some wrappers, and more linking:

Code:
cd ~/.wine/drive_c/windows/system32
wget http://www.linuxfah.info/wrapper-3.0/cudart/cudart.dll.so
wget http://www.linuxfah.info/wrapper-3.0/cufft/cufft.dll.so
ln -s cudart.dll.so cudart32_30_14.dll
ln -s cudart.dll.so cudart.dll
ln -s cudart.dll.so nvcuda.dll
ln -s cufft.dll.so cufft32_30_14.dll
ln -s cufft.dll.so cufft.dll


now to check if the linking worked with this command:

Code:
ldd ~/.wine/drive_c/windows/system32/cudart.dll


You want an output similar to this:

Code:
linux-gate.so.1 =>  (0xf7706000)
libcudart.so.3 => /usr/local/cuda/lib/libcudart.so.3 (0xf7697000)
libwine.so.1 => /usr/lib32/libwine.so.1 (0xf7556000)
libm.so.6 => /lib32/libm.so.6 (0xf752f000)
libc.so.6 => /lib32/libc.so.6 (0xf73cc000)
libdl.so.2 => /lib32/libdl.so.2 (0xf73c8000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf73af000)
librt.so.1 => /lib32/librt.so.1 (0xf73a6000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf72b7000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf72a7000)
/lib/ld-linux.so.2 (0xf7707000)


If anything says "not found", then go back to the step marked with "%-%"

Finally, now for the client:

Code:
mkdir -p ~/fah/gpu0
wget http://www.stanford.edu/~friedrim/.Folding@home-Win32-GPU_XP-631.zip -O Folding@home-Win32-GPU_XP-631.zip


now for the program to unzip it:

Code:
sudo apt-get install unzip


and now use it to unzip the client and remove the stanford dll's so that it uses the wrappers:

Code:
unzip Folding@home-Win32-GPU_XP-631.zip -d ~/fah/gpu0
rm ~/fah/gpu0/*.dll


Now time to start the client:

For non-fermi nvidia cards:

Code:
cd ~/fah/gpu0
nice wine Folding@home-Win32-GPU.exe -verbosity 9 -forcegpu nvidia_g80


And for Fermi cards:

Code:
cd ~/fah/gpu0
nice wine Folding@home-Win32-GPU.exe -verbosity 9 -forcegpu nvidia_fermi


configure the client, and use "CTRL + c" if you need to stop it at any time.


IMPORTANT NOTE: If the computer is not a dedicated folder, set the CPU usage to 83% in the config to avoid a LOT of mouse lag. if it is dedicated, feel free to leave it at 100%, but keep the window active, so that you can ctrl c it if you need to.


Happy folding.





Ted


Last edited by Tedster on Sun Oct 03, 2010 1:57 pm, edited 3 times in total.

Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sat Oct 02, 2010 3:02 pm 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
*SMP OPTIMIZATION*


Belboz99 wrote:
Hey all,

If any of you on here use the SMP and GPU clients simultaneously on Linux as I do, then you may have noticed a drop in your GPU performance. This is due mostly to a scheduling issue. For some reason, you can set the clients of the SMP to idle, and the GPU to low, and it will still not differentiate between the two processes in terms of priority.

The drop in PPD I've been seeing due to this issue is massive, I'm talking in the thousands of PPD here for those that have higher-end cards, even my lowly 8800GTS was taking about a 1,000 - 2,000 ppd hit off this scheduling problem.

The solution is actually rather simple, as all things should be on Linux. ;) Smartcat and I worked it out this afternoon.

1. Install schedtool
Code:
sudo apt-get install schedtool


2. Either start your SMP client with the following command, or modify any script you may be using accordingly.
Code:
schedtool -D -e ./fah6 -smp



What this does:

The -D simply assigns the process an idle priority, much the same as should happen using the config tool, but obviously doesn't. It's a much lower priority than even nice 19, allowing the GPU client to grab whatever CPU cycles it desires. The -e flag simply tells it to execute the following command, in this case the fah6 client. ;)


How to see it in action:

Simply open System Monitor from System > Administration and watch the CPU usage of the GPU core (generally FahCore_11.exe), note the percentage of CPU utilization without the SMP client running.

Start the SMP client without the schedtool and you'll no doubt see the CPU utilization of the GPU client drop, on both of my systems I see it drop in half. You'll also see a marked increase in time between frames on the logs.

Start the SMP client with the schedtool adjustments and you'll likely see everything on the GPU end look much the same as without the SMP client running, as in, no performance hit. ;)


Which means this command.

Code:
LD_LIBRARY_PATH=~/lib64-fah schedtool -D -e ./fah6 -smp -verbosity 9






Ted


Last edited by Tedster on Sun Oct 10, 2010 1:59 pm, edited 1 time in total.

Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sat Oct 02, 2010 3:03 pm 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
Reserved.





Ted


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 03, 2010 1:55 pm 
Max [Ph]otographer
Max [Ph]otographer
User avatar

Joined: Mon Jun 28, 2004 4:10 pm
Posts: 5203
Hey Ted,

The guide is a good start, but I'm afraid it needs a bit of work. For starters, if this is an Ubuntu 10.04 Guide, then why the use of 9.04 drivers from nvidia?

Also, the other snafu that caught me was this:
Code:
unzip Folding@home-Win32-GPU_XP-631.zip -d ~/fah/gpu0
rm ~/fahgpu3/*.dll


Note how you unzipped the Fah executables and drivers to ~/fah/gpu0, but then instruct the reader to remove the drivers from ~/fahgpu3, a non-existant directory.

I might have some more tips / corrections to add later. As of right now though, I can't get mine running, and that's sad. :(

Dan O.


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 03, 2010 1:59 pm 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
For the GPU drivers, that is what is specified in the guide I linked it to. The cuda toolkit works fine. And also, when I do a GPU2 installation, I use the toolkit specified in the ubuntu 8.04 guide. it should work.





Ted


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Wed Oct 06, 2010 6:50 pm 
Team Member Top 250
Team Member Top 250
User avatar

Joined: Tue Apr 15, 2008 8:01 pm
Posts: 1260
sudo apt-get install ia32-libs

"e: Couldn't find package ia32-libs"

know what that's about?


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Thu Oct 07, 2010 2:44 am 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
wierd. It works fine for me.




Ted


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Thu Oct 07, 2010 9:26 am 
Max [Ph]otographer
Max [Ph]otographer
User avatar

Joined: Mon Jun 28, 2004 4:10 pm
Posts: 5203
nekollx wrote:
sudo apt-get install ia32-libs

"e: Couldn't find package ia32-libs"

know what that's about?



Try updating first:

Code:
sudo apt-get update


And if that doesn't do the trick, add in the Restricted and Universe repositories in "Software Sources" which is located in "Administration".

https://help.ubuntu.com/community/Repositories/Ubuntu

Dan O.


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Thu Oct 07, 2010 4:48 pm 
Team Member Top 250
Team Member Top 250
User avatar

Joined: Tue Apr 15, 2008 8:01 pm
Posts: 1260
Belboz99 wrote:
nekollx wrote:
sudo apt-get install ia32-libs

"e: Couldn't find package ia32-libs"

know what that's about?



Try updating first:

Code:
sudo apt-get update


And if that doesn't do the trick, add in the Restricted and Universe repositories in "Software Sources" which is located in "Administration".

https://help.ubuntu.com/community/Repositories/Ubuntu

Dan O.


Updated and check those two were enabled and still isn't working


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 10, 2010 3:20 am 
Max [Ph]otographer
Max [Ph]otographer
User avatar

Joined: Mon Jun 28, 2004 4:10 pm
Posts: 5203
nekollx wrote:
Belboz99 wrote:
nekollx wrote:
sudo apt-get install ia32-libs

"e: Couldn't find package ia32-libs"

know what that's about?



Try updating first:

Code:
sudo apt-get update


And if that doesn't do the trick, add in the Restricted and Universe repositories in "Software Sources" which is located in "Administration".

https://help.ubuntu.com/community/Repositories/Ubuntu

Dan O.


Updated and check those two were enabled and still isn't working


Which version of Ubuntu are you using? IIRC, 9.04 and earlier called the package something else.

Also, are you sure you're running 64-bit Ubuntu?

Code:
uname -m


Dan O.


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 10, 2010 4:30 am 
Team Member Top 250
Team Member Top 250
User avatar

Joined: Tue Apr 15, 2008 8:01 pm
Posts: 1260
Belboz99 wrote:
Which version of Ubuntu are you using? IIRC, 9.04 and earlier called the package something else.

Also, are you sure you're running 64-bit Ubuntu?

Code:
uname -m


Dan O.


10.04 LTS Lucid Lynx
How do i check if it is x64 or x32?


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 10, 2010 5:53 am 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
That could be why. It defaults to the 32bit option on the download page.





Ted


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 10, 2010 5:57 am 
Max [Ph]otographer
Max [Ph]otographer
User avatar

Joined: Mon Jun 28, 2004 4:10 pm
Posts: 5203
nekollx wrote:
Belboz99 wrote:
Which version of Ubuntu are you using? IIRC, 9.04 and earlier called the package something else.

Also, are you sure you're running 64-bit Ubuntu?

Code:
uname -m


Dan O.


10.04 LTS Lucid Lynx
How do i check if it is x64 or x32?


That last command I gave you. ;)

Code:
uname -m


Copy the output of that here.

Dan O.


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 10, 2010 4:24 pm 
Team Member Top 250
Team Member Top 250
User avatar

Joined: Tue Apr 15, 2008 8:01 pm
Posts: 1260
says 1686


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Sun Oct 10, 2010 4:32 pm 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
you have the 32 bit. that package is only for the 64 bit.





Ted




Ted


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Mon Oct 11, 2010 4:39 am 
Team Member Top 250
Team Member Top 250
User avatar

Joined: Tue Apr 15, 2008 8:01 pm
Posts: 1260
Tedster wrote:
you have the 32 bit. that package is only for the 64 bit.





Ted




Ted



so what do i do?


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Mon Oct 11, 2010 6:06 am 
Max [Ph]otographer
Max [Ph]otographer
User avatar

Joined: Mon Jun 28, 2004 4:10 pm
Posts: 5203
nekollx wrote:
Tedster wrote:
you have the 32 bit. that package is only for the 64 bit.

Ted

Ted


so what do i do?



That depends on what you want to do.

If you want to run Both GPU and SMP, then you need to be running a 64bit version of a Linux-based OS such as Ubuntu.

If you only really want to run GPU and perhaps Single Core Client, then no worries, just follow the rest of the guide and forget that step, just don't expect to be able to install the SMP client.

You can get the 64bit version of Ubuntu 10.10 here: http://www.ubuntu.com/desktop/get-ubuntu/download

And yes, 10.10 is now the latest version... Ubuntu uses a Year / Month naming convention, thus 10.10 is October 2010, 10.04 was April 2010, and 9.10 was October 2009, there is as you can see a 6 month release cycle.

Being that it's now October, new Release, woot!

Dan O.


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Mon Oct 11, 2010 6:11 am 
Max [Ph]otographer
Max [Ph]otographer
User avatar

Joined: Mon Jun 28, 2004 4:10 pm
Posts: 5203
I should note that current users of 10.04 or even earlier versions can upgrade without re-installing by simply checking your Update Manager for updates, you should see a new Release available. ;)

http://www.ubuntu.com/desktop/get-ubuntu/upgrade

I should also note that I've been running 10.10 since Beta (August), and folding on this Quad-Core with the GPU client for a week before and now post release.


Dan O.


Top
  Profile  
 
 Post subject: Re: The Ubuntu 10.04 (64 bit) Survival guide
PostPosted: Mon Oct 11, 2010 9:46 am 
Million Club - 20 Plus
Million Club - 20 Plus
User avatar

Joined: Sun May 24, 2009 5:32 am
Posts: 4294
I just used 10.04 because it is LTS version.





Ted


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.