Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › -bigadv on an x6 in native LINUX
New Posts  All Forums:Forum Nav:

-bigadv on an x6 in native LINUX

post #1 of 5
Thread Starter 
From our friend tear, for those of you that want to run -bigadv on an x6 in native LINUX here you go...
Quote:
Originally Posted by tear
Here we go (execute both commands below as root):
Code:
cat /proc/stat | awk 'BEGIN { TARGET_NCPUS=8 } ; { if ($1 == "intr") { for (i=NR-2;i<TARGET_NCPUS;i++) print "cpu" i S } ; S="" ; for (i=2;i<=NF;i++) S=S " " $i ; print }' > /tmp/stat.save

mount --bind /tmp/stat.save /proc/stat
Then start the client.

Note: this workaround may affect some monitoring tools (they will show zero
activity); if that's the case (and if it annoys you you can do the following
(again, as root) once the client has started:
Code:
umount /proc/stat
Though if you do so you'll have to run the two top lines again whenever
you wish to (re)start the client. Same thing after a reboot.

Let me know

Thanks,
tear
Remember to only run -bigadv on dedicated folding systems. We don't want to slow the project down
Edited by brutis - 3/20/11 at 7:59am
Jagdhund
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD MC Super Micro H8QGL-iF+  on board 32GB (2x16) Gskill DDR3 
Hard DriveCoolingOSMonitor
320GB WG water Ubuntu 10.04 64bit 21" Samsung LCD 
KeyboardPowerCaseMouse
gineric 1200W Corsair bread box Razor 
Mouse Pad
na 
  hide details  
Reply
Jagdhund
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD MC Super Micro H8QGL-iF+  on board 32GB (2x16) Gskill DDR3 
Hard DriveCoolingOSMonitor
320GB WG water Ubuntu 10.04 64bit 21" Samsung LCD 
KeyboardPowerCaseMouse
gineric 1200W Corsair bread box Razor 
Mouse Pad
na 
  hide details  
Reply
post #2 of 5
Thread Starter 
Her's another way to get -bigadv running on your x6 in native LINUX system. No need for VM.

Which ever LINUX OS you go with make sure that it's on an ext3 exstention.

The following is for Ubuntu. Run these comands in terminal.

Code:
sudo apt-get install ia32-libs
The next two comands must be done every time after a client shutdown or system reboot. If it's not done the OS will report just 6 cores to the client which means no -bigadv WU's.
Code:
sudo cat /proc/stat | awk 'BEGIN { TARGET_NCPUS=8 } ; { if ($1 == "intr") { for (i=NR-2;i<TARGET_NCPUS;i++) print "cpu" i S } ; S="" ; for (i=2;i<=NF;i++) S=S " " $i ; print }' > /tmp/stat.save
Above is all one line.

Code:
sudo mount --bind /tmp/stat.save /proc/stat
Close that terminal then open up a new one (or you may want to fold as root, your choice).

Code:
mkdir -p ~/folding
Code:
cd ~/folding
Code:
 wget http://www.stanford.edu/group/pandegroup/folding/release/FAH6.34-Linux64.tgz
Code:
tar xzf FAH6.34-Linux64.tgz
Code:
ls -la
Code:
./fah6 -configonly
When configuring add these in the proper area while configuring, -smp 6 -bigadv -verbosity 9

Code:
echo "./fah6 $*" > fah
Code:
chmod +x fah
And finally after this next command it will be off and running for you

Code:
./fah
Your hardware monitor will not work but if you need it run this command
Code:
sudo umount /proc/stat
Remember to only run -bigadv on dedicated x6 folding systems.

My x6 @ 3.9GHz will have a TPF of <00:30:00 http://foldingforum.org/viewtopic.ph...art=30#p176708
Edited by brutis - 5/29/11 at 2:03pm
Jagdhund
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD MC Super Micro H8QGL-iF+  on board 32GB (2x16) Gskill DDR3 
Hard DriveCoolingOSMonitor
320GB WG water Ubuntu 10.04 64bit 21" Samsung LCD 
KeyboardPowerCaseMouse
gineric 1200W Corsair bread box Razor 
Mouse Pad
na 
  hide details  
Reply
Jagdhund
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD MC Super Micro H8QGL-iF+  on board 32GB (2x16) Gskill DDR3 
Hard DriveCoolingOSMonitor
320GB WG water Ubuntu 10.04 64bit 21" Samsung LCD 
KeyboardPowerCaseMouse
gineric 1200W Corsair bread box Razor 
Mouse Pad
na 
  hide details  
Reply
post #3 of 5
Here is a more automated way to run -bigadv on ANY cpu using a lot of info from this post. Thanks to the OP.

This is tested on an AMD 1090t with Ubuntu 10.10 and an ext3 root fs. It will probably work on any system that has GNOME installed.

If you don't have GNOME installed, change the 'gnome-terminal' part to whatever terminal you are using.

What this script will do:

a. Set the number of CPU cores to 12
b. start the fah6 program with -smp -bigadv
c. return the number of cores to the native amount

You need to have the fah6 binary in "/home/$USER/fah/". If you want you can easily change any of this in the script to suit your setup.

You will have to enter your passwd to run this script.

Hope you find it useful.

Code:
#!/bin/bash

# This program requires your password be entered when prompted.

# This portion sets your core count to 12.

sudo cat /proc/stat | awk 'BEGIN { TARGET_NCPUS=12 } ; { if ($1 == "intr") { for (i=NR-2;i<TARGET_NCPUS;i++) print "cpu" i S } ; S="" ; for (i=2;i<=NF;i++) S=S " " $i ; print }' > /tmp/stat.save

sleep 2

sudo mount --bind /tmp/stat.save /proc/stat

# This launches the fah6 client.
# I am assuming you have renamed the f@h binary to "fah6" and its in a folder called "fah" in your user directory.

gnome-terminal -x /home/$USER/fah/fah6 -smp -bigadv &&

# After a short delay to ensure the Folding @ home client has started, we will set the core count back to stock so everything else works as it should.

sleep 3 && sudo umount /proc/stat

# And were done....

Edited by gsa700 - 7/9/11 at 8:42pm
Goliath
(13 items)
 
fBSD
(10 items)
 
pfSense Box
(11 items)
 
CPUMotherboardGraphicsRAM
i7 4770 Gigabyte z87x-ud3h Intel HD4600 G.Skill Ripjaws X 
Hard DriveOptical DriveCoolingOS
Crucial M500 Pioneer Blu-ray Burner Swiftech Polaris Linux Mint 
MonitorKeyboardPowerCase
Korean 1440p WASD 104 key v2 - mx Blue switches Corsair HX-650 v2 Lian Li pc-a05n 
Mouse
Logitech G600 
CPUMotherboardGraphicsRAM
Intel Core i7 2700k Asus z68 Deluxe Gen 3 Gt 610 8 Gb Samsung Magic Memory 
Hard DriveHard DriveOSPower
WD Green WD Green FreeBSD 10 OCZ ModXtreme Pro 500 
CPUMotherboardGraphicsRAM
Intel Celeron G1620 Asus z68 Deluxe 9500 GT Corsair Value Ram 
Hard DriveOSMonitorPower
OCZ Agility SSD pfSense / FreeBSD SSH via LAN Antec 520w Gamer 
OtherOtherOther
Intel PCIe Dual Gigabit LAN card. D-Link Gigabit 8 port Switch Apple Airport Extreme N - for wireless access. 
  hide details  
Reply
Goliath
(13 items)
 
fBSD
(10 items)
 
pfSense Box
(11 items)
 
CPUMotherboardGraphicsRAM
i7 4770 Gigabyte z87x-ud3h Intel HD4600 G.Skill Ripjaws X 
Hard DriveOptical DriveCoolingOS
Crucial M500 Pioneer Blu-ray Burner Swiftech Polaris Linux Mint 
MonitorKeyboardPowerCase
Korean 1440p WASD 104 key v2 - mx Blue switches Corsair HX-650 v2 Lian Li pc-a05n 
Mouse
Logitech G600 
CPUMotherboardGraphicsRAM
Intel Core i7 2700k Asus z68 Deluxe Gen 3 Gt 610 8 Gb Samsung Magic Memory 
Hard DriveHard DriveOSPower
WD Green WD Green FreeBSD 10 OCZ ModXtreme Pro 500 
CPUMotherboardGraphicsRAM
Intel Celeron G1620 Asus z68 Deluxe 9500 GT Corsair Value Ram 
Hard DriveOSMonitorPower
OCZ Agility SSD pfSense / FreeBSD SSH via LAN Antec 520w Gamer 
OtherOtherOther
Intel PCIe Dual Gigabit LAN card. D-Link Gigabit 8 port Switch Apple Airport Extreme N - for wireless access. 
  hide details  
Reply
post #4 of 5
nice info here. if you're new to linux and want to get folding big -bigadv right away, you can also see my guide that uses gnome to setup folding -bigadv on an x6 or 2500k
Phor the Win
(19 items)
 
Built 2 Phold
(14 items)
 
Phort Awesome
(14 items)
 
CPUMotherboardGraphicsRAM
AMD Phenom II X4 970 (4.0 - 1.48v) MSI NF980-G65 MSI N460GTX Hawk Talon Attack (875/1750/2000) Mushkin Ridgeback 1600 (2x2GB) 
Hard DriveOptical DriveCoolingOS
WD CaviarBlack 1TB LITE-ON iHAS424-98 Corsair H70 Win. 7 Home x64 
MonitorPowerCase
32" Sony Trinitron TV Corsair 1000HX LIAN LI PC-B25FWB 
CPUMotherboardGraphicsRAM
AMD Phenom II x4 965 MSI MS-7548 Aspen MSI N460GTX Hawk Talon Attack (895/1790/2000) Crucial DDR2 800 (4x1 GB) 
Hard DriveOptical DriveCoolingOS
WD CaviarBlue 500GB Alcohol 120% Corsair H50 Windows 7 Home x64 
MonitorPowerCase
eMachines 19" LCD Corsair HX1000 Corsair CC-9011075-WW 
  hide details  
Reply
Phor the Win
(19 items)
 
Built 2 Phold
(14 items)
 
Phort Awesome
(14 items)
 
CPUMotherboardGraphicsRAM
AMD Phenom II X4 970 (4.0 - 1.48v) MSI NF980-G65 MSI N460GTX Hawk Talon Attack (875/1750/2000) Mushkin Ridgeback 1600 (2x2GB) 
Hard DriveOptical DriveCoolingOS
WD CaviarBlack 1TB LITE-ON iHAS424-98 Corsair H70 Win. 7 Home x64 
MonitorPowerCase
32" Sony Trinitron TV Corsair 1000HX LIAN LI PC-B25FWB 
CPUMotherboardGraphicsRAM
AMD Phenom II x4 965 MSI MS-7548 Aspen MSI N460GTX Hawk Talon Attack (895/1790/2000) Crucial DDR2 800 (4x1 GB) 
Hard DriveOptical DriveCoolingOS
WD CaviarBlue 500GB Alcohol 120% Corsair H50 Windows 7 Home x64 
MonitorPowerCase
eMachines 19" LCD Corsair HX1000 Corsair CC-9011075-WW 
  hide details  
Reply
post #5 of 5
Ubuntu Guide

This guide will automate the whole thing, including your password. It can be adapted for 2500k and x6 for regular bigadv, and for 2600k for 6903/6904.

EDIT: ack.. another zombie thread...
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Overclock.net Folding@Home Team
Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › -bigadv on an x6 in native LINUX