Seti Driver type queueing on Linux

Status
Not open for further replies.
I think people can show how to adapt all the various "driver" stuff, but its pepetual abscence from Linux shows how needless it is in the Linux environment.

There are several solutions for Linux, two of which require no additional machines (and, additional machines might themselves be unavailable, a factor often neglected).

If your machine is continually attached to the Internet:

1. Use crontab/crond. With this approach, you start up SETI at a fixed time (daily or hourly is probably enough). If SETI is running and running well, the extra copy quickly terminates, taking up negligible resources. If SETI has stalled, it tries again, overcoming any stalls based on the SETI servers being down (the only real reason SETI client stops). Where's the caching you say? Simple, kick off the copies of setiathome in several directories simultaneously. This approach is nice in that it is totally hands free, requiring no maintenance whatever. Because of how Linux works, your eventual WU count and even your average time will be the same as running one copy of hte program. You do have to have about 16 MB per copy of main storage to make this work, seldom a problem nowadays.

2. Use several directories and a simple script. For instance (assume the setiathome software is in directory "seti" and data directories underneath it at dir1, dir2, dir3, and dir4):

code:<HR>
Code:
cd seti/dir1
../setiathome -stop_after_process > /dev/null 2> /dev/null &
../setiathome -stop_after_xfer > /dev/null 2> /dev/null &
cd ../dir2
../setiathome -stop_after_process > /dev/null 2> /dev/null &
../setiathome -stop_after_xfer > /dev/null 2> /dev/null &
cd ../dir3
../setiathome -stop_after_process > /dev/null 2> /dev/null &
../setiathome -stop_after_xfer > /dev/null 2> /dev/null &
cd ../dir4
../setiathome -stop_after_process > /dev/null 2> /dev/null &
../setiathome -stop_after_xfer > /dev/null 2> /dev/null &

You can run exactly like this or turn it into a loop. If you turn it into a loop, you should add this at the top and bottom:

code:<HR>
Code:
while /bin/true 
do
. . .(as before)
sleep 600
done

The sleep 600 protects you (and SETI) against uselessly banging on the SETI site if there is a long, long outage.

The version shown would give you four work unit times that the SETI server could be down before you lost as much as a cycle. If that's not enough caching, add more directories. I've run with great success (number 8 in TLC) with as little as two units cached for method two or two copies of the program for method one. Most people are more paranoid than that -- if you're one of them, run more stuff. A week's worth is the longest anyone should cache.

If your machine is not continuously attached to the Internet, adapt solution two. On the download machine:

code:<HR>
Code:
cd seti/data1
../setiathome -stop_after_xfer
cd ../data2
../setiathome -stop_after_xfer
cd ../data3
../setiathome -stop_after_xfer
cd ../data4
../setiathome -stop_after_xfer

On the remote (unconnected machine):

code:<HR>
Code:
cd seti/data1
../setiathome -stop_after_process > /dev/null 2> /dev/null &
cd ../data2
../setiathome -stop_after_process > /dev/null 2> /dev/null &
cd ../data3
../setiathome -stop_after_process > /dev/null 2> /dev/null &
cd ../data4
../setiathome -stop_after_process > /dev/null 2> /dev/null &

Obviously, you do the appropriate upload and download of the data at the right time. You might find that it is handy to have a version for the processing machine that starts at data3 and ends at data2, enabling you to do the upload download cycle at more than one logical point in the process.

All of this is more or less suggested by the SETI README itself and a little contemplation. It probably explains why there is a lot less of this sort of thing in the Linux world for SETI. It isn't needed.
 
Setiqueue worked great for my internal network (I had the firewall listening/distributing packets on the internal 192.168....., when I switched the program to listen on the external nic so I could cache & stat for some other remote machines (switching the internal machines to the new address as well) I ended up losing quite a few jobs. It was very strange, they got sent somewhere but I would check and not get credit. So I quickly uninstalled setiqueue and went back to old faithful stand alone setidriver direct downloading from Berkely.

I really miss the setiqueue stats and how everything was interconnected but when I started losing work units well...you know.

Me
 
I really miss the setiqueue stats and how everything was interconnected but when I started losing work units well...you know.

This helps confirm something I've long suspected. I keep telling folks that the queueing solutions add an additional point of failure. Everytime I mention it, I get shouted down. It's like a lot of things in life -- people count the hits and ignore the misses.

To me, the real attraction of the add-on programs nowadays is not the caching per se (which nearly anyone can do without any added program), but rather the ancilary features, such as extensive personal stats tracking, that they provide.

But, they're touted by their many supporters as if you can't run SETI without them. In fact, as you note, they can actually cut down on your score compared to the simple expedient of doing the caching locally on your own machine.

I've probably blurred this discussion by pointing out how lightweight my own caching solution is. If I ran with maybe four or fourteen units in the pipeline, using the means discussed herein, instead of the usual two or so that I actually use, the discussion might be a bit cleaner.

In truth, however, one or two units in the cache, however done, do amazingly well nowadays. SETI outages are far fewer, and shorter, than they used to be. Darn near anything works. But, watch out for your own central server!
 
I agree on not having a central WU distribution server. That's why I run Seti Driver with a seperate cache on every machine, and then use SetiWatch to look at all the results. I have only had it (SetiWatch) running for a week or two now, but it's a great program and I wish I had checked it out earlier.

This way if something borks it only effects one machine, but if there is a large Berkeley outage I'm covered and can move WU's around from the slower machines to the faster one's if I need to. Admittedly having sole & total control over all the servers in my office does make life easier.
 

fragile

Ars Praefectus
4,866
Moderator
This helps confirm something I've long suspected. I keep telling folks that the queueing solutions add an additional point of failure. Everytime I mention it, I get shouted down. It's like a lot of things in life -- people count the hits and ignore the misses.

Well - I run multiple Q's pointing back to a pair of Q's then onto a single Q. The Q's in the office are split by their usage. On is a lab Q, on e is my office Q, they both point to my central Q, which in turn points to my home Q, then onto yet another Q, before finally getting to S@H.


At home I have a Q that feeds my public network, and internally a second Q that feeds my private IP's.

In all cases I ensure that setiQ retains sent results, if there is a repeat of the false duplicate WU's I can resent from my choice of Q's and still ensure that I get credit.

I can survive for a week of s@H downtime if I need to. This would require little or no effort on my part, and was a great releif during the worst of the outages earlier this year.

Finally on my linux boxen, I use the patented LL multiple processing, but as the linux client often gets held up trying to get a new WU, I kill the process every 6 hours and re-spawn it, to ensure that if it is stalled, it will re-start and get a WU as required.
 

Hat Monster

Ars Legatus Legionis
47,680
Subscriptor
I run my SETIQueue as it provides a convenient gateway between the big bad world and my "offline" machine, effectively making it an online machine. It removes the need for seperate SETIDrivers, which can get annoying on machines you're trying to keep a low profile on, and they can be stacked. My SQ runs into John Avara's and I think he runs his into somebody else's too.

Many are aware that SETIQueue is a single point of failure. So is the mains power, but I don't have a UPS yet. Hell, so is my house and I don't have a spare one of those either.

My experience with SETIQueue is very positive.

H@
 
Originally posted by Larry Loen:
Quote: "
I really miss the setiqueue stats and how everything was interconnected but when I started losing work units well...you know.
"

This helps confirm something I've long suspected. I keep telling folks that the queueing solutions add an additional point of failure. Everytime I mention it, I get shouted down. It's like a lot of things in life -- people count the hits and ignore the misses.

IMO this is a good example of how a program like SetiQueue can help to reduce wastage. In the example there was a problem and because data was pooled and statistics taken the problem became clearly visible. With a bunch of separate systems if one of them had a problem or was misconfigured it would be difficult to spot. You could be losing hundreds of results and never know it.

To me, the real attraction of the add-on programs nowadays is not the caching per se (which nearly anyone can do without any added program), but rather the ancilary features, such as extensive personal stats tracking, that they provide.

Perhaps, but the caching is still important. Also a pooled cache
is more efficient than lots of separate caches. With separate caches some clients can run out while others have work untis to spare. With a pooled cache you can keep on going until you really run out.

But, they're touted by their many supporters as if you can't run SETI without them.

You can run it without them but you can run it better with them.

In fact, as you note, they can actually cut down on your score compared to the simple expedient of doing the caching locally on your own machine.

In my experience the opposite is true when they are used well.
 
Status
Not open for further replies.