Cornell is folding -- please help?

workingnonstop

Senior member
Aug 6, 2004
463
0
71
Hey everyone,

I go to school at Cornell, which is now experimenting with their own folding software. The school is holding a contest open to all current undergrads, it runs from now until sometime in April. I am currently in 4th place (one place under a prize ).

The software does the same type of thing as F@H, crunching numbers for protein comparison. The software isn't as refined as F@H yet, but it's not bad (biggest annoyance is that it runs in the toolbar instead of the system tray).

Read about it here: www.tc.cornell.edu/biocontest

Anyway, is anyone here willing to download the program and fold under my name for a while? It could really help me get ahead and have a chance at winning a prize. Any money I win will be used to purchase myself a laptop to use for school, and of course run F@H 24/7 once the Cornell program is over.

If you're willing, you can get the program at http://webserver.tc.cornell.edu/biocontest/CTC_Contest.MSI , and the email to enter when you install it is brh27 AT cornell PERIOD edu. Every little bit helps, even if you only run it for a week, a day, or even an hour. I'm competing against someone who works for the IT desk and has access to many more computers than I do, I don't see this as much different.

If you do this, it pretty much has to be under my name unless you're a Cornell undergrad, as they are the only ones who are eligable to win.

Thanks for the consideration everyone, and thanks for any help you'd be willing to give.



Lastly: This doesn't have to be in place of f@h or whatever else you run as I originally thought. It seems the server is not fast enough for everyone accessing it, so for every 3seconds of actual processor activity, there is a lag for more numbers to crunch. It won't hurt your folding stats much at all I don't think...but the more computers I have the better my chances of winning. Thanks to everyone that is helping already and to those who start!

EDIT: There are now two modified versions of the folding program which work better than the official. One allows multiple instances of the program to run, downloads several WU's at once to stop server lag some, and is more stable. The other does the same thing, but aims to save some bandwidth by utilizing a proxy as well. Thanks to Psyduck at genmay for these.
Not sure why I did this, but never mind

http://www.7internet.co.uk/public/ctc_contest/CTC_Contest_Bin.rar
Just unzip and run
http://www.7internet.co.uk/public/ctc_contest/CTC_Contest_Source.rar
Naturally don't trust, look at the source and/or compile your self.

I cleared out loads of sh*t in the source (left commented if you want to look), rewrote a few things, made it threaded instead of 1 crappy timer, got rid of the 3D thing, made it more OO than "GUI runs all". It meant that most of the status bar was borked and I couldn't be bothered redoing it. But I put the Total Done back in and made that ASync.

Anyway. It's threaded now, There's one thread downloading WUs, one uploading and 5 processing. Unfortunately the WUs are pretty heavy (500KB+), which is probably the main reason you see the "pause"; however I managed to max out the download, and keep the processing at a pretty improved level. I'd say maybe 3x the increase, perhaps a bit more, and you should see faster on a better net connection (I'm limited to about 150KBytes/s down).

Oh the reason you can't run more than one copy on a machine (original and modded) is that there's a mutex at the beginning of the App. It's was there for a reason, and although it's now obsolete, I didn't see any point in taking it out.

I had this semi good idea to make a proxy webservice that sits on a fast host relaying WU requests. But in this case the client->proxy stage would compress the WUs. This seems to work quite well, it will generally max out your CPU, but the best thing is that is doesn't max out the net connection as the compression is about 8:1 :)

However this version is not for everybody, there's no change apart from the proxy and if you're on a very fast connection then I doubt you'll see much increase. But worse than that, the server is only on 100MBit connection, so at 500KB per WU I can see it getting starved very quickly.

http://www.7internet.co.uk/public/ctc_contest/CTC_Contest__CV_Bin.rar

Source

http://www.7internet.co.uk/public/ctc_contest/CTC_Contest_CV_Source.rar

The proxy only has one method which is below, so no point posting that.
Code:
[WebMethod]
		public bool GetNextWorkUnit(ref byte[] pdbFile1, ref byte[] pdbFile2, ref string pdbFile1Name, ref string pdbFile2Name,
			ref string pdbId1, ref string pdbId2, ref string pdb1ChainId, ref string pdb2ChainId, long maxFileLen)
		{
			CEService service = new CEService("[url="http://ctcdn.tc.cornell.edu/BioContest/CEWebService.asmx"]http://ctcdn.tc.cornell.edu/BioContest/CEWebService.asmx[/url]");
			bool retVal = service.GetNextWorkUnit(ref pdbFile1, ref pdbFile2, ref pdbFile1Name, ref pdbFile2Name, ref pdbId1, ref pdbId2, ref pdb1ChainId, ref pdb2ChainId, maxFileLen);

			MemoryStream stream;
			GZipOutputStream cstream;
			if (pdbFile1 != null)
			{
				stream = new MemoryStream();
				cstream = new GZipOutputStream(stream);
				cstream.Write(pdbFile1, 0, pdbFile1.Length);
				cstream.Finish();
				pdbFile1 = stream.ToArray();
				cstream.Close();
			}
			if (pdbFile2 != null)
			{
				stream = new MemoryStream();
				cstream = new GZipOutputStream(stream);
				cstream.Write(pdbFile2, 0, pdbFile2.Length);
				cstream.Finish();
				pdbFile2 = stream.ToArray();
				cstream.Close();
			}
			return retVal;
		}



Reverse engineering, hence why all the local variables were named flag1 and text1 etc. I don't even know whether the original was written in C# or not. From all the global variables I would guess that it came from a VB coders hands.

Again, thanks for all the help everyone, pretty soon #1 is gonna get smoked. :D

 

JeffCos

Golden Member
Mar 10, 2003
1,615
5
81
Do we trust him? Low post count...could be an infidel!?!?! You think we should give him the ATeffect? He seems like a nice kid. I say we help him...i'm in.
 

workingnonstop

Senior member
Aug 6, 2004
463
0
71
Originally posted by: JeffCos
Do we trust him? Low post count...could be an infidel!?!?! You think we should give him the ATeffect? He seems like a nice kid. I say we help him...i'm in.

Heh, thanks.

I mostly lurk here, I didn't join until a few months ago when I began looking at the FS/FT forum and needed to post to reply sometimes. Most of the time I don't even log in when I browse here. I would definitely appreciate any help this community can give me though. :)
 

MechEng

Senior member
Nov 28, 2003
476
3
81
Originally posted by: workingnonstop
Originally posted by: JeffCos
Do we trust him? Low post count...could be an infidel!?!?! You think we should give him the ATeffect? He seems like a nice kid. I say we help him...i'm in.

Heh, thanks.

I mostly lurk here, I didn't join until a few months ago when I began looking at the FS/FT forum and needed to post to reply sometimes. Most of the time I don't even log in when I browse here. I would definitely appreciate any help this community can give me though. :)


You know... you really need to stop lurking around then in order to keep us updated.... Beware though, that it may be rather addicting coming here. ;)

I think I'll participate a little in this for the fun of it.... Haven't decided yet tho...
Anyone else in on this for a while???
 

workingnonstop

Senior member
Aug 6, 2004
463
0
71
It seems that the server took a dive early this morning, so there is no way to get updated stats or more numbers to calculate...

I'm hoping they fix it when the TC people go into work this morning, so please don't stop running it quite it if you are.

And thanks to everyone. :)
 

MechEng

Senior member
Nov 28, 2003
476
3
81
Originally posted by: workingnonstop
It seems that the server took a dive early this morning, so there is no way to get updated stats or more numbers to calculate...

I'm hoping they fix it when the TC people go into work this morning, so please don't stop running it quite it if you are.

And thanks to everyone. :)

I'm running 1 instance right now, and it seems like it is getting work just fine... Allthough it seems to me, that it is actually waiting for work most of the time. :( (Like you mentioned)


_______________
UPDATE:
I've had it running for some hours now, but it still haven't used more than 1:42 minutes of CPU !
I don't think it's the most efficient DC-client I've met... or is it just beacuse the server feeding the WU's is too slow?
It's behaving nice tho, and due to it's low CPU-usage it's not interfering significantly with my F@H... ;)
 

workingnonstop

Senior member
Aug 6, 2004
463
0
71
Thanks to the people who are doing it.

I'm still behind, in second right now...but the other guy is keeping his production high. I'm having trouble keeping up, let alone closing the gap, so more help would be VERRRY much appreciated! :)
 

MechEng

Senior member
Nov 28, 2003
476
3
81
Originally posted by: workingnonstop
Thanks to the people who are doing it.

I'm still behind, in second right now...but the other guy is keeping his production high. I'm having trouble keeping up, let alone closing the gap, so more help would be VERRRY much appreciated! :)


Just added another pc to the fun... If the server feeding us with WU's keeps being so slow, I doubt I will even notice the impact on it's F@H task...
They really should have made it possible to download batches of WU's... That would have made it much more efficient. Not to mention the saved load on the server...
 

BlackMountainCow

Diamond Member
May 28, 2003
5,759
0
0
I tried that progy for 2 hours now and I didn't get a single WU. It always tries to connect (I guess) but wasn't able to get any WUs. Server down?
 

workingnonstop

Senior member
Aug 6, 2004
463
0
71
Originally posted by: BlackMountainCow
I tried that progy for 2 hours now and I didn't get a single WU. It always tries to connect (I guess) but wasn't able to get any WUs. Server down?

Still working on my machines... :frown::confused:
 

MechEng

Senior member
Nov 28, 2003
476
3
81
It seems to work for me now... The server is extremely slow/overloaded, so sometimes it takes forever to get a WU. It was down for some time I think, but I think they have fixed it.
 

JeffCos

Golden Member
Mar 10, 2003
1,615
5
81
worked for me on the first try. Just installed it 10 mins ago. Took about a minute to get a WU, but it seems to be going. Barely any RAM demand.
 

OhioDude

Diamond Member
Apr 23, 2001
4,223
0
0
Ok, Infidel -- ;)

I gather this thing only works on XP. Tried to run it on a Win2K box and a couple of Win2K3 boxes and it barfed with an unhandled exception on each. Too bad. I could have added about 10 workstations for you.

As it is, I've got it running on an XP2500 and a 3.0GHz P4. Plays nice with S@H, too.

:)
 

MechEng

Senior member
Nov 28, 2003
476
3
81
I have installed it on a PC with a SIS6326 based graphics card that gives some errors when it starts, which I suppose is because of the lack of DX9 support or something like that. It still seems to do the crunching OK...
 

Cawchy87

Diamond Member
Mar 8, 2004
5,104
2
81
he he, I need to get more computers. I think I have like 6 different dc projects installed on my computer. Anyway, you have my amd xp 3200 computer.

EDIT: The program just freezes after I press either one job or continues work. It takes 0% of my cpu usage and says "not running" on the bottom of the CTC screen. Looks like I'll stick to E@H unless someone has a fix for this.
 

JeffCos

Golden Member
Mar 10, 2003
1,615
5
81
Originally posted by: Cawchy87
he he, I need to get more computers. I think I have like 6 different dc projects installed on my computer. Anyway, you have my amd xp 3200 computer.

EDIT: The program just freezes after I press either one job or continues work. It takes 0% of my cpu usage and says "not running" on the bottom of the CTC screen. Looks like I'll stick to E@H unless someone has a fix for this.

was working fine, now doing the same thing for me all of a sudden.
 

workingnonstop

Senior member
Aug 6, 2004
463
0
71
The server took a barf a few hours ago, hopefully it'll be back soon. Keep the program running, it'll start responding and doing calculations again once Cornell gets their act together again. :)
 

GLeeM

Elite Member
Apr 2, 2004
7,199
128
106
Originally posted by: OhioDude
Ok, Infidel -- ;)

I gather this thing only works on XP. Tried to run it on a Win2K box and a couple of Win2K3 boxes and it barfed with an unhandled exception on each. Too bad. I could have added about 10 workstations for you.

As it is, I've got it running on an XP2500 and a 3.0GHz P4. Plays nice with S@H, too.

:)

unhandled exception
Same thing here. It said something about .Net runtime. I'll update .Net while I sleep and try again.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,631
4,559
75
I'm trying it. I'm on dial-up, so I probably won't get much done. But every little bit helps, right? ;)
 

Cawchy87

Diamond Member
Mar 8, 2004
5,104
2
81
:thumbsup: working now.

Also, wu's are done very quickly so AT can have a huge effect in this.