tips on Linux Seti?

Status
Not open for further replies.

battlemaxx

Ars Tribunus Militum
1,511
Originally posted by sparK:
am thinking about running Linux on my dedicated Seti boxen. was wondering if anyone doing this, might be willing to post any setup tips. thanks.

linux client is slower than M$, unfortunately...so if you're going to for maximum production you might have to think M$, or linux w/ wine and the M$-type client...
 
See also the baseline tips page for more information. A lot of generic advise in all the articles applies to Linux.

Linux does perform a little less well than the Windows version, but this can be at least partly made up in practice with its administrative convenience. I've found it particularly easy to make hands-off running work under Linux. In any case, if that's the license you got, that's what you run.

Wine using the NT client is the fastest way to run SETI on Intel, period, but I've never bothered with it. I believe others can give the technique -- it might even be in one of the references. If not, I can add it to one of the FAQs if someone would send it to me. Or, at least, tell me what other ref has it so I can say where to go in the base FAQ.
 

battlemaxx

Ars Tribunus Militum
1,511
Originally posted by Larry Loen:
See also the http://www.teamlambchop.com/tips.htm for more information. A lot of generic advise in all the articles applies to Linux.

Linux does perform a little less well than the Windows version, but this can be at least partly made up in practice with its administrative convenience. I've found it particularly easy to make hands-off running work under Linux. In any case, if that's the license you got, that's what you run.

Wine using the NT client is the fastest way to run SETI on Intel, period, but I've never bothered with it. I believe others can give the technique -- it might even be in one of the references. If not, I can add it to one of the FAQs if someone would send it to me. Or, at least, tell me what other ref has it so I can say where to go in the base FAQ.

How much faster is the NT client under Wine via Linux?
 
I believe Poof did the experiments -- don't really remember the results but it wasn't double or anything like that IIRC.

Just for fun, I tried out Wine briefly this weekend. I haven't crunched a full unit to be sure, but on my Red Hat system (with Wine pre-installed and somewhat preconfigured), it came up pretty good -- well enough to download and go. And, that's even with a lot of complaint messages about fonts and with it being unable to bring up any windows. I guess we should cheer Win console apps, because they seem easy to do.

I did have to patch a few things:

1. Found, then copied the config file into my ~/.wine directory. I had to mkdir ~/.wine also.

2. Edited a few key names (mostly things like changing /cdrom to /mnt/cdrom).

3. I also discovered where the "C" drive was kept by Red Hat in its preinstall (I think it was /usr/share/wine-c or something like that). That turns out to be critical since it seems to connect with some of the emulation support (I think).

Anyway, that was enough to get me going. Command line was trivial: win seti.3.03.winnt.cmdline.exe or whatever the .exe is called. This I had downloaded right from SETI, fresh, so I had the latest level. I didn't even have to execute "out of" the C drive -- SETI seems to work out of an ordinary directory (not clear how generally this holds, but it wrote all the standard files just fine).

I would strongly recommend that Wine not be run under "root" just on general principles. I know I didn't.
 
I think I'll be getting another ~2 GHz machine at work sometime soon, and it'll be Linux only. What's a good program to do a bit of local caching? Like SETIDriver, but for linux? Also, what's the best way to go about having it auto-start?

Don't need any added programs. Just a few bash scripts and ordinary cron (crontab).

See the self-caching FAQ on the main tips page..

Several well-proven options are given in that FAQ. You can even point the machines at an ordinary Windows-style SetiQueue if you like.
 
Sorry to bring this up again, but I'd like to follow up. 2.6GHz P4 Dell is on the way, and I'm setting up my main work machine right now. After downloading some util from S@Netherlands, I didn't like it and decided to make one myself. I made the following scripts:

1) setiscript, in /usr/local/seti/:

Code:
 while (/bin/true ) ; do
# Linux and Unix have a built-in sleep command
  sleep 10
#  Main directory
  cd /usr/local/seti/1
  ./setiathome -proxy yourproxy:8080 -stop_after_process
  cat result.sah >> results.txt
  ./setiathome -proxy yourproxy:8080 -stop_after_xfer
# Second directory
  cd ../2
  ./setiathome -proxy yourproxy:8080 -stop_after_process
  cat result.sah >> results.txt
  ./setiathome -proxy yourproxy:8080 -stop_after_xfer

[obviously repetitive info omitted]

# 24
  cd ../24
  ./setiathome -proxy yourproxy:8080 -stop_after_process
  cat result.sah >> results.txt
  ./setiathome -proxy yourproxy:8080 -stop_after_xfer
  cd ..
done

I simply copied/pasted this till I had the number I wanted, but it would be relatively easy to make up a real quick perl script to generate this for an arbitrarily large number of caches, and a similar script to create all the directories and copy all the seti files to it.

And next, I wanted a simple way to start/stop my seti processes, so I made the following scripts in my home directory:

2) startseti

Code:
 ./killseti
/usr/local/seti/setiscript > /dev/null &

3) killseti

Code:
 while (ps -Al | grep setiathom) ; do
  # kill off any scripts
  ps -Al > processlist.txt
  awk '/setiathom/ {print $5}' processlist.txt > ppids.txt
  awk '/bash/ {print $4}' processlist.txt > bashpids.txt
  awk '/setiathom/ {print $4}' processlist.txt > setilist.txt
  # join files
  cat ppids.txt >> bashpids.txt
  # sort and find duplicates
  cat bashpids.txt | sort | uniq -d > killlist.txt
  kill -9 `cat killlist.txt` > /dev/null
  
  # kill off any running s@h instances
  kill -9 `cat setilist.txt` > /dev/null
  
  # remove temp files
  rm -f processlist.txt ppids.txt bashpids.txt killlist.txt setilist.txt
  
  # sleep to give time for processes to die
  sleep 1
  
done

Now, I'm kinda new to Linux .... how do I get it to start automatically? Do I simply point to my startseti script in my /etc/rc.local, or is it more complex than that?

Also, any suggestions on those scripts would be appreciated. I just kinda whipped something together real quick, using "> /dev/null" to get rid of all the unwanted output...

EDIT: OK, something's busted as well. My proc wasn't being used, and it wasn't sending the wu. I was getting a strange message about not being able to find the host name or some such thing... Any ideas?

[This message was edited by Bob_2k on August 27, 2002 at 15:07.]
 

Hat Monster

Ars Legatus Legionis
47,680
Subscriptor
My own experiments in Mandrake 7.1 showed negligible difference between WINE and a well tuned NT native system. Wall clock time, btw, measured from time between SETISpy timestamps. Linux measured via Samba/SetiSpy.

If I can dig up the results...(which has just taken me about fifteen minutes of hunting through old archives)

Win2k SP1: 6:23 (TLC benchmark unit, Athlon 1045MHz)
Mandrake 7.1/WINE: 6:19 (TLC benchmark unit, Athlon 1045MHz)
Five runs on NT, six on Mandrake.

The difference is well within the margin of error, which is +/- 9 minutes on the NT box, +/- 12 on the Linux install.

H@
 
Well .... setidriver via wine was pretty craptacular. Wouldn't hide the seti processing window, wouldn't update progress... Oh well, no time to mess with it any more today, I'll have to mess with it more some other day. I wish there was some non-crappy scripts that did local caching out there. The only one I found was more for machines w/ no net connection ... it saved up all the units, then allowed them to be flushed I think.
 
Well, a couple of things.

1. Exactly how to "autostart on boot" will vary a bit by the distribution. Usually, you have to find a file under /etc somewhere called rc.local and put it in there.

2. I haven't found any of that autostart stuff to be necessary. The simpler versions of the script I give in the FAQ are actually quite servicable, especially if you use the screen utility. The nice thing about "screen" is that when you run "headless" you can actually kill your (say) putty session on your PC and then resume it later on. It continues to run, just fine, without any window open! I usually have "screen" with three sub-windows, one running the looping SETI script, one running an ordinary command line, and the other running top -d 20. Usually, this continues to run for days and weeks until I reboot it myself. My version of it works with dialup, so I use the variation that does "stop_after_process" and then the type >> results.txt is in the upload script just ahead of the "stop_after_xfer" line.

3. Don't be so cheap on the sleep command. Go ahead and do a sleep 600. If you have 24 directories, I don't care how fast your CPU is, you can afford a decent sleep interval. You won't notice the difference running normally and you will notice the difference if you ever have an outage long enough to have 24 result.sah files sitting there. Do you really want to spend for 4K times 24 of disk space every ten seconds? That's one reason to have decent sleep besides good net citizenship. Not so many dupes of the last results on the outage. Or, if you'd rather, try this way: 25 seconds of sleep between each directory. That way, you won't miss the recovery an outage restart and you still won't saturate yourself with worthless copies of result.sah files during an outage.

4. To start up, the only file you need in each of your /1 and /2 and .../24 directories is user_info.sah. This is not Windows. You can have one copy of the object code (setiathome) in the base /usr/local/seti directory and use ../setiathome to reach the code. I agree on Windows it is easier to copy the code into each directory (I've done it), but in Linux it isn't. It's only a little bit of storage, but it also is a darn nuisance to have so many copies of the code.

5. Related to 4, I also find it handy in Linux to set a symbolic link to ../setiathome in each of the /1 and /2 and ... /24 directories. These are what I put in my version of your setiscript so that in top, I can tell immediately where I am in the script. I would complicate your killseti a bit (maybe you do the ps based on "-stop"?). I do a command like: ln -s ../setiathome ./setih2 in the /usr/local/seti/2 directory, for instance.

6. Actually, I don't even bother with killseti. It is easy enough to do it by hand on the rare day I have to do it. Just do the usual ps -A -f | grep "setiscript" and kill the result of that. Should pick up all the children, too.

7. Alternatively, in each diretory, pid.sah contains the most recent SETI process. You could use this to advantage in your killseti script and make it simpler (e.g. cd /usr/local/seti/3 ; kill `pid.sah` at any bash script window).
 

Poof

Ars Praefectus
5,092
Subscriptor
Hmmm.... missed this thread at the beginning of the month.

My benches had shown that WINE with the -nt40 parameter would run a WU ~5 mins faster than the natively-run CLI. It might not seem like much but for those in an all-*nix shop who want maximum production, WINE would be the way to go... Otherwise, you're talking about 20 - 30 min difference (slower) running the linux client natively. BUT... those who have farms or even a couple machines might want to run at least 1 instance of the native linux client in order to capture VLAR WUs. In this case, having access to Setiqueue and its WU-routing functionality, will allow you to move VLARs to your linux machine's subqueue and you'll get a nice overall boost not having windoze stuck on a VLAR and having linux running that same VLAR pretty quickly.

As for queueing programs, aside from many home-made scripts that people have created, another option would be JSetidoor, a java-based, platform independent queuing program. I have never tried this but it is available.
 
Poof, how "hard core" about Wine do you have to be? I've never bothered to use it as I like to have simple, self-contained, self-caching scripts (no added points of failure).

A while back, a few experients with wine showed that I could simply cd to my usual Linux directory, more or less stick "wine" in front of the usual parameters, and execute away. Now, I didn't finish a WU, but it seemed to otherwise work (checkpoint, etc.) all without a full-blown Windows drive emulation and so on that I suppose many programs require. Or, so the documents say.

Now, I took whatever default install Red Hat gave me, so some of the hard part (e.g. the equivalent of c:\windows et. al.) was already there. I just had to rummage around the default Red Hat config files until I found it, but I don't think I had drive emulation, just pointers to the emulation code. I was definitely executing the data out of my own directory. I forget if I downloaded a WU or not.

Is it really that easy? If it is, then the usual scripts will work with a bit of tinkering, which would be a good thing for many people.
 

Poof

Ars Praefectus
5,092
Subscriptor
Larry - I would say it's probably easiest if you have a dual-boot machine with a win partition/install already there. I merely mount that win partition and with WINE configured, I basically stick the "wine" command in front of the win seti directory path and add wine command separators (the "--") and seti parameters as necessary. It can be done without a full win install being there (using emulation files) but I haven't tried that (have only done it with the old dosemu). It seems the newer versions of WINE are getting better and better.
 
3. Don't be so cheap on the sleep command. Go ahead and do a sleep 600.

Yeah, I meant to change that back. I had changed it to a shorter amount, because it was executing that before starting wu processing, and I was trying to create/debug my killseti script... Guess I coulda just moved it to the end instead...

4. To start up, the only file you need in each of your /1 and /2 and .../24 directories is user_info.sah.

Yeah. The program I tried before had already set up those directories w/ copies of the client in each directory, so I just didn't bother changing it. I've got 80 gigs, I'm not hurting for disk space.

7. Alternatively, in each diretory, pid.sah contains the most recent SETI process. You could use this to advantage in your killseti script and make it simpler (e.g. cd /usr/local/seti/3 ; kill `pid.sah` at any bash script window).

Cool, didn't know that.

<plug type="shameless">
Bob_2k, KSetiSpy does wu caching.
</plug>

Really? I used to use SetiSpy as a monitoring tool at home once in a while, but I haven't in a while (I use SetiDriver to run it in windows). I might just give KSetiSpy a shot. Looks very smooth from the screenshots. Of course .... would you expect less from your arsware? :)
 
Alright, I've got KSetiSpy up and running now. Very nice indeed. Now I remember why I was hesitant to install it .... the K stands for KDE, and I run Gnome. It still works OK though (but I get some kind of "DCOPServer up and running." message when I start it the first time each reboot).

One thing though: Is there a way to completely minimize it off the desktop? Like down to an applet icon in my control panel? Having it shrink down to a panel applet form would rock. Is there anything out there that would let me do such a thing?
 
Nope, it's a work machine, and all the stuff I develop will be run under Gnome, since that's what everybody uses around here. So I'd REALLY prefer to just keep using gnome.

There are 2 features in Gnome that I thought might work. There's the "swallowed app" that runs a program, then puts the window in a separate area, and then there's the "Status dock", which supposedly allows KDE apps that use the KDE status area to put things there under gnome. But neither one works, and I still end up with a little window with a little icon in it that won't go away. I can minimize it, but it then just stays in my tasklist, which is kind of annoying as well.
 
Status
Not open for further replies.