Running multiple projects

Status
Not open for further replies.

CSMan

Wise, Aged Ars Veteran
107
I know there have been discussions on running multiple projects before, but as far as I can tell, that has been running two or more at the same time.
I have Win XP Pro. Is there a way, like the task scheduler, to start a program at a specified time, and then close it at another time? That way I could run two or more projects, and just have the computer automatically open and close projects. Especially since some projects don't play nice with others.
 

Geordie

Ars Scholae Palatinae
1,163
You know what would be a sweet Arsware proggie? A DC client manager. It runs at a low priority and just checks and uses any available MHz for units. It would kick ass!

I ain't no codesmith to comment on the feasibilty of such a util but each DC client will take all the available CPU, there is no "spare Mhz" AFAIK. You could have a prog to start/stop projects to give them CPU time throughout the day but IMO its best to run projects in campaign's (As the ARS firing squad does) as you feel the need. Setting up the clients as a service with scripts to start and stop at will is a neat solution. Check out this page.

http://www.nelliott.demon.co.uk/distributed/index.html
 
"Spare MHz" could show up a couple of ways:

1. A client crash. G@H still does this sometimes. In fact, I still run two units on my Linux machine to prevent losses because of this.

2. A modem connnected F@H machine. There is no caching, so if your latest F@H unit finishes before you upload, cycles are there to be had.

3. Running out of SETI cache. If you were "into" multiple projects and wanted this as your alternative, you could skip SETI caching and simply run the other project when SETI's server site was unavailable.

In my "best machine" HTML, I have started trying to show what clients run together based on equal sharing and/or one getting most-to-all of the cycles. This is actually a fairly complex area, because some of them can be readily modified to different priorities while others cannot (even in Linux where this is presumably a bit easier). Since not all projects play nice together in the sense of one or both of those strategies, launching the lesser project when the first does something interesting (e.g. uploads, finishes) is a possiblity for some situations.
 

Poof

Ars Praefectus
5,092
Subscriptor
I'm currently running combinations of projects on some of my machines, eg., SETI + F@H2 on a 1.2@1.4GHz T-bird, SETI + G@H on a PIII 600@972, UD + D2OL on my Duron 700@954, etc. The beauty being that should one client be unable to upload or suddenly crashes, the other will continue to run.

The interesting thing about doing this is that the developers of all of these different clients claim that their programs "only use spare cycles". Yet real world observations show that there are a number of differences in priority-setting going on within the code... Enough so that some clients will truly only grab a few idle cycles here and there, whereas others will be more assertive.

Theoretically, if all of these clients were truly idle-priority clients, then running 2 such clients side by side should result in a 50/50 split of CPU utilization. However, this is rarely the case.

Thus, the Texas DC clients such as UD & RC5/OGR will take a step back, while the California projects from UC Berkeley (SETI) and Stanford (G@H, F@H) grab more cycles. When putting cycle-grabbing clients together, it seems that G@H is the most aggressive, followed by SETI.

As Larry noted, with Linux (or any other *nix), there exists some amount of manual intervention with process priority control that can implemented to adjust for the more aggressive clients. Similarly, this can be done with NT/2K/XP Pro's Task Manager and manually setting pre-configured levels of process priority (eg., "high", "realtime", "normal", etc.), although this is not at the same level of granualarity as the *nix "nice".

As an example, I can run the SETI & G@H win clients with WINE on my Red Hat 6.2 machine, and by using the "nice" command, force a 65/35 split of CPU utilization for SETI/G@H. Whereas left to their own devices, the split might be 50/50 or even the reverse (35/65) priority.

Alot of this is a matter of experimenting to see what does what with what on each OS.
 
Unix "nice" is a difference in itself.

This is a notion that says, in effect, "pessimize me, don't optimize me."

I think there are plenty of OSes in the world (Windows is one, I think) that lacks this notion. There is only "less optimal."

This can make a difference, because priority cannot be implemented absolutely for all kinds of technical reasons. The basic problem is that lower priority work can possess exclusive rights to things higher priority work wants. So, the lower priority work needs some sort of minimal execution even when higher priority work is continuously available (this is the only way to free up the important resource). "Nice" is a way of saying "you don't have to be as nice to me as you otherwise would."

This means that the results you get for a given client pair may vary by Linux versus Windows because of how the OS treats work and how the clients exploit the available definitions.
 

pointwood

Ars Praefectus
5,949
Subscriptor
Originally posted by Poof:
Theoretically, if all of these clients were truly idle-priority clients, then running 2 such clients side by side should result in a 50/50 split of CPU utilization. However, this is rarely the case.

Thus, the Texas DC clients such as UD & RC5/OGR will take a step back, while the California projects from UC Berkeley (SETI) and Stanford (G@H, F@H) grab more cycles. When putting cycle-grabbing clients together, it seems that G@H is the most aggressive, followed by SETI.
In my experience, the dnetc client and the F@H2 client splits 50/50.
 

Geordie

Ars Scholae Palatinae
1,163
"Spare MHz" could show up a couple of ways:
1. A client crash. G@H still does this sometimes. In fact, I still run two units on my Linux machine to prevent losses because of this.

2. A modem connnected F@H machine. There is no caching, so if your latest F@H unit finishes before you upload, cycles are there to be had.

3. Running out of SETI cache. If you were "into" multiple projects and wanted this as your alternative, you could skip SETI caching and simply run the other project when SETI's server site was unavailable.

This is all assuming a fault condition with the [individual] project you are running. In the ideal world this would never happen <g> and rarely does with the more established clients provided you have a stable farm. My SETIQ server is reporting an effiency of 92% which I assume as being the amount of CPU time for each client vs real time elapsed. Given power cuts and other acts of god (my family closing machines down!) I can live with that ;)

To come back to CLM100's question would an application to monitor CPU usuage and start/stop clients based on %CPU be feasible? More to the point would it bring any benefit to a well honed setup?
 

CSMan

Wise, Aged Ars Veteran
107
Well, I don't really know what I'm talking about, so excuse me while I make a fool of myself :D

Couldn't a program be written that would allocate "unused" cpu cycles to certain programs? Kinda like using the program as a funnel. Let's say, for example, you're defragging your hard drive. Couldn't you have a program that would take any cycles not being used by the defragging software or anything else, and of the cycles left, say S@H you get 35% and G@H you get 65%?
 

Poof

Ars Praefectus
5,092
Subscriptor
In my experience, the dnetc client and the F@H2 client splits 50/50.

Just out of curiosity, which OS were you using? I haven't yet tried running F@H2 with dnet, mainly because I have dnet on my older, slower machines (those that wouldn't get F@H results from either version, in before the time limit) or on those machines with OSes that have no client (eg., my NetBSD, where the emulation currently installed on it is for gnulibc 5 rather than 6, so I can't run any of the new clients in linux emulation mode).

I do know that running more than one process on something like 98, is tricky at best as that OS is not really optimized for multitasking. Not that it can't be done because I'm doing it right now with 98SE with 2 projects.... But something that a number of us observed back with F@H and how having 2 DOS windows open at once, with only one being highlighted, often meant that the process supposedly running as the background task, would suddenly cease (or suspend) running until the focus was shifted back to it. And only then did both processes proceed to run again in some split of CPU utilization. It became a bit of a hit or miss situation, prompting me to just minimize both windows to let both tasks run in the background.
 
Status
Not open for further replies.