Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › Folding@Home Guides and Tutorials › [Ubuntu] Setting up the SMP (CPU) client
New Posts  All Forums:Forum Nav:

[Ubuntu] Setting up the SMP (CPU) client - Page 12  

post #111 of 187
The process is in the background On a different account, I usually kill it from my account (2 diff accounts), ctrl+c is just kill -15 anyway, I just wanna know what process I should send the signal too to avoid corrupting the data and resetting back to 0%

I'd assume itd be process 9983 in th above list, as I think this'd be the process you kill by using ctrl+c
Edited by ShadoX - 2/24/11 at 3:07pm
Liquid Dreams
(28 items)
 
NAS
(17 items)
 
CPUMotherboardGraphicsRAM
AMD X4 640 Gigabyte GA880GA-UG3H ATI HD4250 Corsair 2x2Gb DDR3 1333Mhz 
Hard DriveHard DriveOptical DriveCooling
Samsung Spinpoint F3 1T Samsung Spinpoint F4 2T Liteon DVD-+RW Zalman CNPS9500 
OSMonitorKeyboardPower
Ubuntu Server 42" LCD Full HD-TV via 1080P HDMI None Silverstone Strider 450w 
CaseMouseMouse PadAudio
TT Armor (w/ Custom 240mm Sidefan/Black Respary) None None 5.1 via HDMI to TV 
Other
Acer Infrared Remote control 
  hide details  
Liquid Dreams
(28 items)
 
NAS
(17 items)
 
CPUMotherboardGraphicsRAM
AMD X4 640 Gigabyte GA880GA-UG3H ATI HD4250 Corsair 2x2Gb DDR3 1333Mhz 
Hard DriveHard DriveOptical DriveCooling
Samsung Spinpoint F3 1T Samsung Spinpoint F4 2T Liteon DVD-+RW Zalman CNPS9500 
OSMonitorKeyboardPower
Ubuntu Server 42" LCD Full HD-TV via 1080P HDMI None Silverstone Strider 450w 
CaseMouseMouse PadAudio
TT Armor (w/ Custom 240mm Sidefan/Black Respary) None None 5.1 via HDMI to TV 
Other
Acer Infrared Remote control 
  hide details  
post #112 of 187
Thread Starter 
Can't really answer that.

Very little Linux Folding experience, and I've only ever used CTRL+C. Sorry.
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
post #113 of 187
Lol ok

Well i had a play around when my linux SMP finished a WU, i found if you issue the command

Code:
kill -INT <PID>
to the actual folding process (as per previous example)

Code:
 9978 ?        Tl     0:00 ./fah6 -smp -verbosity 9
 9982 ?        S      0:00 sh -c ./FahCore_a3.exe -dir work/ -nice 19 -suffix 03
 9983 ?        SNl   62:11 ./FahCore_a3.exe -dir work/ -nice 19 -suffix 03 -np 4
issue the command to 9983, it closes it just as it would if you used Control+C. No worries of data corruption or resetting to 0% on the WU now

Heres a little write up which i think will help those getting into Linux (being a tutorial thread )
  • kill = command to kill a process
    • in the format of "kill <signal type> <pid>"
Signal Types
  • -INT
    • Stands for Interrupt, which is the same "signal" sent when you use Control+c
    • Also can be written in the command as -2 (eg. kill -INT 0001 and kill -2 00001 are the same command and would both kill process 0001 the with an interrupt call)
  • -SIGTERM
    • Stands for Terminate. This signal is actually called by Control+C also if you watch closely, Control+C will call "Interrupt" to stop the process (in Folding waiting until next step is completed), then immediately calls "SigTerm" to actually close the process
    • Can also be written as -15 (eg, kill -SIGTERM 0001 and kill -15 0001 are the same)
  • -SIGKILL
    • Stands for Kill. Used for process's that have hung/frozen (thus won't respond to other signals). Can also be used just to end a process outright, this is messy though as the process won't run through any shutdown routines (ie for folding, won't have time to wait till next step and save and properly shutdown cores, the whole thing just stops and disappears no matter what its in the middle of, possibly of data corruption by using this in such a fashion)
    • Can also be written as -9 (eg, kill -SIGKILL 0001 and kill -9 0001 are the same)
There are many other "Signals" that can be sent (see Here) but these are the main ones you'll ever use.

Be aware also that the first 2 (-2 and -15) are effectively 'Signaling" a process to close its self in different ways (-2 makes the process finish up what its doing in a nice clean manner, then its self calls -15 to close the process cleanly). If the process has hung or frozen, then it can not respond to signals, Thats when you use -9, which isn't a "signal" to the process its self, but rather a signal for the "computer" to just make the process disappear.

When stopping Folding @ Home in any linux. Its best to send the -2 (or -INT) signal to the ./FahCore_**.exe process which can be found by logging into the user which is folding and running the ps x command

Be sure to signal the right FahCore, there are 2, one is listed as ./FahCore_**.exe with lots of arguments after it, one is listed as sh -c /FahCore_**.exe also with lots of arguments after it. Don't signal the sh -c process, signal the other one (it will also be the one with a large number under the "Time" column) - See the "Code" block at the top of the page for an example

You can also get the pid of the "Folding" process by running the command top - It will be the process at the top sucking all the CPU cycles

Hope this helps
Liquid Dreams
(28 items)
 
NAS
(17 items)
 
CPUMotherboardGraphicsRAM
AMD X4 640 Gigabyte GA880GA-UG3H ATI HD4250 Corsair 2x2Gb DDR3 1333Mhz 
Hard DriveHard DriveOptical DriveCooling
Samsung Spinpoint F3 1T Samsung Spinpoint F4 2T Liteon DVD-+RW Zalman CNPS9500 
OSMonitorKeyboardPower
Ubuntu Server 42" LCD Full HD-TV via 1080P HDMI None Silverstone Strider 450w 
CaseMouseMouse PadAudio
TT Armor (w/ Custom 240mm Sidefan/Black Respary) None None 5.1 via HDMI to TV 
Other
Acer Infrared Remote control 
  hide details  
Liquid Dreams
(28 items)
 
NAS
(17 items)
 
CPUMotherboardGraphicsRAM
AMD X4 640 Gigabyte GA880GA-UG3H ATI HD4250 Corsair 2x2Gb DDR3 1333Mhz 
Hard DriveHard DriveOptical DriveCooling
Samsung Spinpoint F3 1T Samsung Spinpoint F4 2T Liteon DVD-+RW Zalman CNPS9500 
OSMonitorKeyboardPower
Ubuntu Server 42" LCD Full HD-TV via 1080P HDMI None Silverstone Strider 450w 
CaseMouseMouse PadAudio
TT Armor (w/ Custom 240mm Sidefan/Black Respary) None None 5.1 via HDMI to TV 
Other
Acer Infrared Remote control 
  hide details  
post #114 of 187
Got a couple of questions on the VM side regarding 2600K.

1. How many cores and threads do I need to allocate for the VM?
If I allocate 2 cores and 2 threads, Can I still be able to get bigadv units?

2. Any ideas about the expected PPD on this setup?

Kindda off topic, and for this, I apologize.
post #115 of 187
Thread Starter 
1) 8. You need 8 threads to be able to request SMP WUs. You can then only Fold on 6 or 7 if you wish.

2) Not really certain; depends on how many threads you end up using.
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
Megadoomer
(14 items)
 
Family Computer
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X6 1090T @ 4.0Ghz ASUS M4A89GTD PRO Sparkle GTS 450 2x4GB G-Skill Sniper 
Hard DriveCoolingOSMonitor
Samsung F1 1TB CM Hyper 212+ Windows 7 Professional x64 Samsung T220 
KeyboardPowerCaseMouse
Logitech MX3000 Laser CM 1000M HAF 922 Logitech VX Revolution 
CPUMotherboardGraphicsRAM
Q6600 Asus PN5-D 750i Evga GTS 250 2x2GB Crucial Ballistix 
Hard DriveOptical DriveOSMonitor
750GB Hitachi Samsung Super Writemaster Windows 7 Professional x64 19" Dell 
PowerCase
Corsair 450VX Antec 900 
  hide details  
post #116 of 187
Quote:
Originally Posted by zodac View Post
1) 8. You need 8 threads to be able to request SMP WUs. You can then only Fold on 6 or 7 if you wish.

2) Not really certain; depends on how many threads you end up using.

Thanks zodac. I guess I just have to install VM and test it myself. It seems that the information on 2600K + bigadv + VM + linux is not really that clear.

First, bigadv requires 8 threads. 2600K has 4 cores 4 threads. If I put everything (4 cores and 4 threads) on a VM, then might as well run it in Native windows 7 since VM application still gets it's a chunk of processing power.
post #117 of 187
Quote:
Originally Posted by _s3v3n_ View Post
Thanks zodac. I guess I just have to install VM and test it myself. It seems that the information on 2600K + bigadv + VM + linux is not really that clear.

First, bigadv requires 8 threads. 2600K has 4 cores 4 threads. If I put everything (4 cores and 4 threads) on a VM, then might as well run it in Native windows 7 since VM application still gets it's a chunk of processing power.
Have you tried running it natively in Linux? You'd prolly see a better PPD from that...
WKS04
(16 items)
 
WORK_PC
(13 items)
 
LAP03
(13 items)
 
CPUMotherboardGraphicsRAM
i7 920 D0 (HT on) @3.6 GHz Asus P6T nVidia 250 6 GB OCZ Gold 
Hard DriveOptical DriveCoolingOS
250 GB SATA CD DVD RW RASA RS360 Ubuntu 10.04 (W7U x64 as alternate boot) 
MonitorMonitorKeyboardPower
LG 19" (L194WS) LCD HP 15" LCD QWERTY (Logitech) High Power Plus 850W modular 
CaseMouseMouse PadAudio
Jeantech Phong2 Trackball (Logitech) n/a Hitachi AX-M5 
CPUMotherboardGraphicsRAM
Q8400 Dell Optiplex 780 GT430 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB Yes W7 Pro (x86 - with Linux x64 VM) 2 x 24" Dell 
KeyboardPowerCaseMouse
Dell Yeah, got one of those... Dell Logitech Trackball 
Mouse Pad
N/A 
CPUMotherboardGraphicsRAM
T5670 (Core2Duo) HP on-board 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB CD DVD RW W7 Ultimate (x86) 17" 
KeyboardPowerCaseMouse
QWERTY on-board Laptop touchpad 
  hide details  
WKS04
(16 items)
 
WORK_PC
(13 items)
 
LAP03
(13 items)
 
CPUMotherboardGraphicsRAM
i7 920 D0 (HT on) @3.6 GHz Asus P6T nVidia 250 6 GB OCZ Gold 
Hard DriveOptical DriveCoolingOS
250 GB SATA CD DVD RW RASA RS360 Ubuntu 10.04 (W7U x64 as alternate boot) 
MonitorMonitorKeyboardPower
LG 19" (L194WS) LCD HP 15" LCD QWERTY (Logitech) High Power Plus 850W modular 
CaseMouseMouse PadAudio
Jeantech Phong2 Trackball (Logitech) n/a Hitachi AX-M5 
CPUMotherboardGraphicsRAM
Q8400 Dell Optiplex 780 GT430 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB Yes W7 Pro (x86 - with Linux x64 VM) 2 x 24" Dell 
KeyboardPowerCaseMouse
Dell Yeah, got one of those... Dell Logitech Trackball 
Mouse Pad
N/A 
CPUMotherboardGraphicsRAM
T5670 (Core2Duo) HP on-board 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB CD DVD RW W7 Ultimate (x86) 17" 
KeyboardPowerCaseMouse
QWERTY on-board Laptop touchpad 
  hide details  
post #118 of 187
@ShadoX re: killing process

In the GUI, opening the performance monitor, finding FahCore_a5, killing process. Same thing?
post #119 of 187
Quote:
Originally Posted by Nude_Lewd_Man View Post
Have you tried running it natively in Linux? You'd prolly see a better PPD from that...
I'm gonna try native linux. I just started folding on VM linux and it's saying 2 days (3 days in win7), TPF is 30 mins ( 35 mins in win7).
post #120 of 187
You should be good with just Folding directly within Linux with the Linux client (not through Wine) as that's the best PPD...

WKS04 ("MF - WildCard" in the link below) is running W7U x64 @ 4.1 GHz, so you should be able to beat that by a good margin with your chip...
http://www.nude-lewd-man.co.uk/N_L_M
WKS04
(16 items)
 
WORK_PC
(13 items)
 
LAP03
(13 items)
 
CPUMotherboardGraphicsRAM
i7 920 D0 (HT on) @3.6 GHz Asus P6T nVidia 250 6 GB OCZ Gold 
Hard DriveOptical DriveCoolingOS
250 GB SATA CD DVD RW RASA RS360 Ubuntu 10.04 (W7U x64 as alternate boot) 
MonitorMonitorKeyboardPower
LG 19" (L194WS) LCD HP 15" LCD QWERTY (Logitech) High Power Plus 850W modular 
CaseMouseMouse PadAudio
Jeantech Phong2 Trackball (Logitech) n/a Hitachi AX-M5 
CPUMotherboardGraphicsRAM
Q8400 Dell Optiplex 780 GT430 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB Yes W7 Pro (x86 - with Linux x64 VM) 2 x 24" Dell 
KeyboardPowerCaseMouse
Dell Yeah, got one of those... Dell Logitech Trackball 
Mouse Pad
N/A 
CPUMotherboardGraphicsRAM
T5670 (Core2Duo) HP on-board 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB CD DVD RW W7 Ultimate (x86) 17" 
KeyboardPowerCaseMouse
QWERTY on-board Laptop touchpad 
  hide details  
WKS04
(16 items)
 
WORK_PC
(13 items)
 
LAP03
(13 items)
 
CPUMotherboardGraphicsRAM
i7 920 D0 (HT on) @3.6 GHz Asus P6T nVidia 250 6 GB OCZ Gold 
Hard DriveOptical DriveCoolingOS
250 GB SATA CD DVD RW RASA RS360 Ubuntu 10.04 (W7U x64 as alternate boot) 
MonitorMonitorKeyboardPower
LG 19" (L194WS) LCD HP 15" LCD QWERTY (Logitech) High Power Plus 850W modular 
CaseMouseMouse PadAudio
Jeantech Phong2 Trackball (Logitech) n/a Hitachi AX-M5 
CPUMotherboardGraphicsRAM
Q8400 Dell Optiplex 780 GT430 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB Yes W7 Pro (x86 - with Linux x64 VM) 2 x 24" Dell 
KeyboardPowerCaseMouse
Dell Yeah, got one of those... Dell Logitech Trackball 
Mouse Pad
N/A 
CPUMotherboardGraphicsRAM
T5670 (Core2Duo) HP on-board 4 GB 
Hard DriveOptical DriveOSMonitor
250 GB CD DVD RW W7 Ultimate (x86) 17" 
KeyboardPowerCaseMouse
QWERTY on-board Laptop touchpad 
  hide details  
New Posts  All Forums:Forum Nav:
  Return Home
This thread is locked  
Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › Folding@Home Guides and Tutorials › [Ubuntu] Setting up the SMP (CPU) client