FoldingControl...

Status
Not open for further replies.

Zen Shepherd

Ars Tribunus Angusticlavius
6,877
Subscriptor
looks interesting; although not compatible with the two client folders I've got setup (two copies of the proggie with the local tag).

How difficult would it be to specify one or two directories where the client is and have FoldingControl use those links with the -local tag?

I'll prolly see about firing up FoldingControl tonite right as I'm starting new WUs, that way I won't lose too much. . .though those 2 WUs will still need to be sent out again. . .
 

littlegreen

Ars Praetorian
556
Subscriptor++
hans: do you do anything but sit watching the forum? - you replied 1 min after i posted !! ... oh & thanks :)

i really hope it works ok ... the only problem it has is that it gets confused when the client crashes, it can't restart it properly - thats what v2 will do :)

lone shepherd: it already uses the -local tag, so it could be getting confused? ... on the other hand, it could be because its setting both clients to the same thread name.... anyway, you are only supposed to run 1 copy at once (two on a duallie) vijay says so :p

[This message was edited by alistair b on April 02, 2001 at 17:52.]
 

Zen Shepherd

Ars Tribunus Angusticlavius
6,877
Subscriptor
alistair - i'm on a dual processor system.

okay i think i got it working. . .i'm just stupid and didn't really look at it very closely the first time around :rolleyes:

ah well, i think it's all good now. . .both clients are running, affinity is properly set, they are using up cpu time all good, etc.

I'll keep ya updated as to how it goes!
 
alistair that worked perfectly! Thanks! Using FC now, looks awesome! One small complaint though, having to open up a new window to monitor the clients sucks :( Especially having one window for the two clients (if you're running two) but having it only display one clients info at a time. Other than that its great. The layout of the two seperate windows is great. Now if you can get those two into one window, and still have it be nice and manageable that would be even better. SetiDriver's layout comes to mind as being a good template for you. Oh and look into getting an icon! That would help a lot too!
 

littlegreen

Ars Praetorian
556
Subscriptor++
yeah i know the separate stats window sucks... i was already working on putting it into the main dialog for fc2... not sure how i'll work having 2 clients displayed at once... would it be ok if you got two progress bars but only one set of times? (and switch them with a button) - otherwise the window will be getting pretty big...

alistair
 
You could have just one section for displaying the stats. When only one instance is going it displays one set of data. When a second instance starts it just puts two sets of values in the same spot. Maybe this will help:

For single instances:

Protien: Beta
Last Frame: 7 seconds
Est Total Time: 24 minutes

For two instances:

Protien: Beta
Villin

Last Frame: 7 seconds
45 seconds

Est Total Time: 24 minutes
1 hour 12 minutes


Except make it look prettier by having the label for the data be kinda centered between the two values.

Edit: Eck all my whitespacing gone!! I guess thats what the code tag is for... =) But code makes the stuff really small... Just picture the data ligned up with each other :D
 

Zen Shepherd

Ars Tribunus Angusticlavius
6,877
Subscriptor
A few things:

- The clients will not connect to the server for some reason once they finish a unit. (It stops on 'Connecting to (ip)'). Not sure what's up here. . .
- Upon exit, FoldingControl deletes the instances of fah.exe. (have reinstalled it twice; now I've got a backup copy of just fah.exe).
- The program seems really sluggish. . .ex: when minimized, and I click on it from the taskbar it takes several seconds to pop up with the info. (It 'freezes' / 'hangs' for a while). This also applies on exit, and upon trying to navigate it.

Mebbe this has something to do with getting data from .txt docs rather than keeping it in memory? I dunno I can't tell. . .

Let me go ahead and mention it looks great, and I know as a developer myself that it sucks that the 'this is broken' is more prevalent than the 'woo-hoo!' stuff :D

So, great work!

Also, some of these problems may be due to running on WinXP Beta. If no one else has these problems, then don't choo worry a bit about'em cause they ain't your fault!
 

littlegreen

Ars Praetorian
556
Subscriptor++
the sluggishness you report could be that it has built in delays for writing to files - i can't have fah starting before its cfg file is written or it gets really messed up.... or it needs to exit the client, wait then remove it...

deleting the client is a hanger on from when it was a caching prog and the client was 1.8meg ... thirty directories makes 50meg of wasted space... if you install fah then put foldingcontrol in that dir (without doing anything else), it should work...

not sure about not connecting.... maybe a fault with the 'ask b4 connect' .... does FC terminate the client? does it just fail to connect? ... i think the sequence should be:
finish frame 100 -> terminate client -> start client
send unit -> terminate client -> start client
get new unit -> terminate client -> start client
start processing new unit

this is from its caching heritage too...

thanks for the criticism at least you help and say clearly whats happening :) ... and the praise :D

alistair
 

badsac

Ars Tribunus Militum
2,421
How do I get Folding Control to work?

I've got it in the Folding@Home directory.

When I try to run it, it gives me two error dialogs at the same time. The top one says

"The FOLDINGCONTOL.EXE file is linked to missing export KERNEL32.DLL:SetProcessAffinityMask"

The next one says,

"C:\Program Files\Folding@Home\FoldingControl.exe
A device attached to the system is not functioning."

I'm running Win95. Does this mean Folding Control doesn't work with 95?
 

littlegreen

Ars Praetorian
556
Subscriptor++
badsac: it could be due to win95 - why not get a service pack - they're called win98, win98se and winME :D ... its not a single proc problem... because it runs in win98/se (not tried ME) .... does it work if the affinity mask setting is off?

slwb: when it did caching, it stopped the client while it waited for the all clear to transmit... it also helps when the cache size changed...

councilor: i'll have a look at that saving problem...

alistair

ps. badsac,i didn't answer cos i was asleep :D
 

littlegreen

Ars Praetorian
556
Subscriptor++
ok, i've put up a new release which should allow saving of the dual proc options....

badsac: you might want to give this version a go & see if it clears up the problem... i'll sift though the code & see if i can find any calls to the setaffinity function which happen when only 1 proc is installed...

alistair

btw, i need lots of sleep... i get tired from coding soooo fast :)
 

Zen Shepherd

Ars Tribunus Angusticlavius
6,877
Subscriptor
alistair b - I haven't tried yet, but RE my prior problem, I suspect that the reason why the client couldn't connect is as follows:

I did not have a copy of fah.exe in the root directory where FoldingControl was (I merely had copies of fah.exe in two directories, one for each cpu).

You said that FC stops and restarts the client several times upon completion of a unit. I assume that this also means the client is stopped, deleted, then replaced several times. Since there was no fah.exe in the dir FC was operating in, it had no exe to replace; thus the client was not actually running after the WU was completed.

This I suspect is the solution to the problem.

I may try it again tonite and see; but I would like it if the client was a bit more responsive (no freezing / lag). As it is, I'm not too big a fan of sluggish-responding apps. . .
 

littlegreen

Ars Praetorian
556
Subscriptor++
PhalSe: sounds like the unit got corrupted... maybe you oc'd too far? ... its really better to hit the exit button to switch off the client and FC ... if you rebooted using the reset button, that would probably stuff it up...

lone shepherd: yeah the client deletion could explain your connection problem. as for the lag, what lags? is it everything? (eg does hide/unhide lag?) or is it when the client starts and stops? - in which case theres not a lot to do about it...

i tried it without delays and the ability to start & stop the client quickly can lead to problems - when you stop the client, FC writes a new status file, when you start the client FC reads the status file... i found that access violations start to occur without delays...

badsac: this is a bit strange, i don't know why the win98 kernel32.dll has SetAffinityMask and win95 doesn't... neither supports >1 processor... and the command is never called on uni-proc machines.... theres also some error catching code in there, but clearly it doesn't work for you... i'll have another look at it.

slwb: i'm thinking about using tabs across the top rather than multiple windows... what d'you think? ... you appear to have become a design consultant :D

anyone where i can find out about tab controls? the vc6 help doesn't help because they seem to have been tacked on afterwards - all the code tells be how to create one - but i can already do that in the gui building bit...

alistair
 

Zen Shepherd

Ars Tribunus Angusticlavius
6,877
Subscriptor
alistair - no; it seems very laggy all the time. don't worry about it right now. . .I want to play with it some more and see if it's a consistent problem or just something transient.

But it's always sluggish; when i click on it from the taskbar, the outline of the dialog box will be displayed, but it will take several seconds for the content to appear. it seemed to exhibit this behavior continuously.

Once again, this may be a platform issue, or something to do with my system rather than the program itself. I'll play with it some more and let you know then; don't think anything of it yet.
 
alistair your bill is in the mail :D :D Tabs would probably work. Have one tab for all the setup/admin stuff (client starting/stopping, the cpu affinity and priority, etc...), another tab for the monitoring, and a third tab for the stats stuff. With the monitoring all on one tab that gives you more real estate for it. You can probably go with two seperate fields so each client has its own. Just remember, bigger isn't always better. The size it is right now is excellent, but it won't be a bad thing to make it a little bigger if you have to.
 

littlegreen

Ars Praetorian
556
Subscriptor++
lone shepherd: the only thing i can think of is you're running folding on normal/high priority that will make it sluggish, (but everything would be)... maybe the platform - surprisingly enough, ive not tested under xp yet :)

slwb: er... the cheque's in the post ;) .... i think you're right about the size, i'm not going to increase it, except to fit in the tabs... i was thinking:
1, FC Config
2, Client Config
3, Stats (probably with 2 sets in the same tab for duallies - what d'you think?.. can you manage 2 or d'u prefer 1?)
4, Log (not sure may remain as separate...
5, OpenGL renderer
6, About
7, Mystery Tab... :D
OnOff/Save/Exit buttons on the bottom

suggestions welcome :)

alistair
 

PhalSe

Ars Scholae Palatinae
1,038
Maybe it is because i didn't close FC first. The reboot was not OC related besides that i wanted to go higher. This machine is generally VERY stable at 933, i ran it for 2 weeks without a crash running Seti@Home constantly. Otherwise i just went straight to start/shutdown/restart like i would normally, changed the setting in the bios, started windows. Started FC seperately because it's not in my startup folder yet and found the unit had restarted.

Also i'm not sure if you were aware but the logs on my dual machine seem off. For Example the first unit(CPU0) finishes in 6 hours, the second(CPU1) finishes in 6.5. The logs show that the first finished in 6 and the second in .5.

[This message was edited by PhalSe on April 03, 2001 at 19:26.]
 

littlegreen

Ars Praetorian
556
Subscriptor++
oh dear... 0.5hrs doesn't seem right... i haven't got a dual machine here, so i can't test on them... than all these bloody quirks (bugs?) turn up... grrrrrrrrrr.....

i'll look into it....

by the time FC2.0 is released, all the bugs should've been ironed out... so you may not get instant fixes for FC1.0 (depending on the problem)... i think i can get a decent usable prog out of it though :D

alistair

btw, thanks for the praise :)
 

littlegreen

Ars Praetorian
556
Subscriptor++
hmmmmmm.... not sure about this hanser.... i can do it, but do ppl want it?

-> my duron folds something like 30 units/day... i don't want hundreds of images to be generated & stored on the hd...

perhaps a snapshot button (which outputs the image you're looking at) would be better? - filename could be date/time & type... this could work better.... also the default view may not be the best one.... and different units often have different orientations, so comparision of images is useless...

alistair
 
Status
Not open for further replies.