Project Help: Need Technical Scheduling Information about Distributed Computing

Status
Not open for further replies.
Hi ppl,

I'm currently taking a class on Scheduling Algorithms and for this semester's research project, I've decided to take a look at Distributed Computing and how projects such as Folding or SETI divides, schedules, and prioritizes NP-Hard problems.

I've perused several of the official project webpages, as well as a few DC team webpages and wasn't able to find any scheduling information. I'm hoping to program a small demonstration as a part of my project.

Would anybody happen to know where I might be able to find a spec or white paper about how the server application works (Folding, SETI, Genome, etc)? Furthermore, would anybody know where I might be able to find more technical information about Distributed Computing?

Thanks in advance!
 

FeLine

Ars Scholae Palatinae
753
Good luck getting any of the big projects to talk to you.

Try ECC2: http://www.ecompute.org/ecc2/ The whole architecture is open-source, if you go to the IRC channel and ask around, Jay (JBerg) will be happy to hand you the source to the server or the client/server protocol and the used algorithm is documented by Pollard[1] -- I do not think seti of F@H can point you to any kind of peer-reviewed documentation of their methods and algorithms. Most of the big DC projects were just cobbled together by people who wrote something that "seemed to work" (and not infrequently had to pay a steep price for it later).



[1] J. Pollard, Mathematics of Computation, volume 32, 918-924, 1978.
 

MarcC

Ars Scholae Palatinae
1,361
drop by the forums for smaller projects and you'll usually find the project leads around to talk. Ecc2 is probably the best example as it is completely open source.
Stephen Brooks from the muon project and Howard Feldman from the distributed folding have both been willing in the past to discuss their projects.
Louis Helm from the Seventeen or Bustproject is also pretty active and helpful.
Cheers,
Marc
 
The one project where this might be relevant (may even still be, not clear to me) is the F@H project.

A year or so back, I was directed to a paper (which is probably still on their web site somewhere) that talks about scheduling WUs for this project.

It turns out that, in particular, the WU they were running at the time had an interesting property. If you broke them into smaller pieces than you otherwise might and returned them as rapidly as possible, you could get "better" than linear performance because you could cancel some oustanding work.

Now, in recent days, I've taken my first look at F@H in a long time and it isn't clear whether or not they are still holding to this. Or, for that matter, whether it is really NP-Hard or simply some other sort of exponentially growing algorithm (DF is, after all, working on an alternate algorithm which, if successful, would be a better performer).

I haven't paid as close attention as you'd like and it may very likely be that a lot of these problems aren't proven to be NP anything in a formal sense.

But, if I had your paper to write, F@H is the place to start.

Projects like SETI@home are clearly not NP-hard -- it's just a long, dull polynomial slog through an endless number of work units produced by a telescope.

Likewise, ECC2100, RC5-72 and very likely GIMPS Lucas-Lehmer are not NP hard.
 
Regarding the comment that DC scheduling may not be an NP-Hard problem, I actually somewhat agree, which is why I'd like to look into some documentation about how the algorithms used on the server side might work.

A valid parallel would be something like how scheduling is performed in a Linux kernel, which simply uses a round-robin algorithm to divide computing time on the CPU from different processes (assuming equal priority levels).

Would be there be any evidence of DC project that alters its scheduling of related work units when others have been completed? This would be akin to a result affecting the priority of other work units.

Mr Loen, if I might inquire, what is DF?

Thanks for the input, guys! With only 7 weeks til I finish my masters, I figure I should probably tackle something a bit challenging before I get outta school for the 2nd time.
 
Not really sure if this is what you need to know but, ...

The relationship between the work may or may not matter, or be somewhere in the middle. In general, the projects crunched here (there may be others, that we dont do here) follow this distribution:


  • Work units are related and must be sequentially processed, i.e., to generate work unit a+1 you need the result a, and so on until the sequence is finished at a+n. Example: F@H
  • Work units are unrelated except for a final assembly phase, i.e., the server can send out units a+17, a+4, etc., and at the end of the run assembles the array a ... a+n for analysis. Example: DF, UD, G@H
  • Work units are completely unrelated and can be randomly assigned, due to some nature such as checking a complete number, or other, space. Examples: GIMPS, S@H, RC5-72
  • One could also posit a structure where the work is unrelated but should be done sequentially, due to an increasing computational complexity, for a nature where only one answer exists (or is sufficient) and the early discovery of the answer would save processing time.


Originally posted by i like to do drawrings:

Would be there be any evidence of DC project that alters its scheduling of related work units when others have been completed? This would be akin to a result affecting the priority of other work units.
 

aegion

Ars Scholae Palatinae
1,020
Originally posted by Larry Loen:

Now, in recent days, I've taken my first look at F@H in a long time and it isn't clear whether or not they are still holding to this. Or, for that matter, whether it is really NP-Hard or simply some other sort of exponentially growing algorithm (DF is, after all, working on an alternate algorithm which, if successful, would be a better performer).
I thing you may be slightly confused about the goals and applications of F@H and DF. Folding at home's goal is not primarily to predict the outcome of protein folding accurately, but to simulate the actual act of folding itself. This is important for dealing with medical diseases caused by protein misfolds, an issue not simulated by DF's method. The application may also be useful in making protein prediction software more accurate by adding insights on how protein folding works. On the other hand, DF generally predicts the outcome of protein folding to a higher degree of accuracy than F@H, also allowing for the prediction of larger sized protein's shapes much more quickly. The project's are not redundant, and neither project's success would invalidate the other's work.
 
Would be there be any evidence of DC project that alters its scheduling of related work units when others have been completed?

This is exactly what I was getting at when I suggested how F@H works (or, at least, used to work).

Since the results of existing work, if returned soon enough, can cancel work to-be-allocated, this is (I presume) exactly the sort of thing you are looking for.

The other projects, so far as I know, have little in this regard.

SETI@home has some redundancy whereby it has a pool of current units and retires them after N come back. The minimum value of N is two, but it sometimes gives out the same unit as many as seven times (requing only two to ever come back, but accepting more).

There would be some interest in the (not entirely known) details of this. While the second return will allow the unit to be formally retired, we assume a given unit is not handed out 100 times, either. That implies a kind of semi-retired status which undoubtely covers several days worth of work backed up somewhere.

But, none of that is obviously NP-hard. Moreover, it is largely dictated by circumstance (how many connections they got from their users today) and not the intrinsic needs of the project. The F@H issue, on the other hand, has enough of a fundamental link to the actual problem, that their strategy resulted in a refereed paper.

The main headache for you, however, is that I suspect you may find that none of this ends up being NP-hard.

The essence of distributed computing is that it applies to the "easy cases" of problem distribution. That is to say, where what is often called the "shared nothing" memory model works excellently and where there is virtually no communication required between the cooperating processors (and none during the actual calculations).

I must confess I have not analyzed it with NP-hard criteria in mind, but I just don't see how you get to it. This is not remotely like the travelling salesman, because you don't really have any known "distance" equivalent to optimize. You just hand out a unit to whomever connects, whether it be a T1 or a dialup ultimately on the other end, whether in the next town or the next continent.

In other words, if there are any considerations beyond managing the maximum IP connection count in terms of how the work out and results back traffic is handled, I don't know about it and do not expect any. So, except maybe for the F@H stuff, I don't see that NP enters into the actual distribution of work and (as we've pointed out) isn't an issue for most of the algorithms considerd locally or globally, either.
 
Hmm I think you're right. I did find the refereed paper on the Folding Project, but it appears to talk more about mathematically dividing the work units, rather than any sort of scheduling.

I guess it might be time to look for another topic, but any further assistance in the DC field will be really appreciated. I've learned a lot about the software end of DC in the couple days I've been researching this.
 
Well, if you're looking for something different, you might consider the cheating problem. Defined correctly, it might be NP hard or at least NP something.

If you take the paper I cited and also a paper on the SETI BOINC site, there is very little written on how to secure projects in distributed computing. In fact, as the BOINC pages point out, this actually limits problems that can be distributed in this fashion. The project must be able to be opportunistic (as a SETI search is) such that a fairly large number of units can be thrown out, virtually at any time, without invalidating the science. You could not (with current state-of-the-art) do drug testing with distributed computing even if the problem is sufficiently parallel to work.

The solutions I've seen are of the "satisficing" sort where you accept a certain bounded error rate. But, if you reject that? Maybe that makes the problem NP because you are introducing (implicitly) a form of optimality and because any proof I could imagine of the NP-ness would relate to the need to do things like control who got what unit to make any guarantees work.

There are several hidden boosts to this problem. There is no proper notion of identity. Or, rather, even if you knew identify perfectly, it doesn't matter (so far as is known). Cheaters can be motivated by at least running up phoney statistical counts to trying to ruin the science. But, in any case, anyone doing mischief to a distributed computing project is not really carefully identified. It is often pathetically easy for cheaters to run multiple user identifiers on the same local box. There is no notion of "authorized user" and all you really care about is "validated work." That is, the result you get was as a result of a real calculation and not some fakery (which can include simple replays of old answers).

So you hand out work to whom you do not know (individually or collectively) and from whom you get results of unknown quality. If you insist on "zero" bad units, that may "set the hook" for your NP proof. I'm too tired to work it out (or do your homework -- ;) -- ), but it is a place to look if you like DC and want to "paper-ize" it for school.
 
Status
Not open for further replies.