Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > D2OL on dual processor?

D2OL on dual processor?
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2000
Location: Cincinnati, OH USA
Status: Offline
Reply With Quote
Oct 4, 2002, 06:30 PM
 
Hi, I read the post in another thread about running two D2OL clients, but I'm having problems - I can only get one client to load at a time, then I'm coming up with errors. Can someone be a little more specific as to how I need to install/run 2 clients? When I do it right, will there be two "plus sign" apps showing up in my dock?

FWIW, I'm running 10.2 on a Dual 1 GHz G4.

Thanks,

Jeff
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Oct 6, 2002, 04:00 PM
 
How to install 2 D2OL clients.

1. Install first client in the default location (/Applications) with installDDOL.
2. Register this client when it autolaunches after install.
3. Set your pref settings and verify Client is running.
4. QUIT D2OL, both the agent and then the Drug Design Optimization Lab app.
5. Look at your dock, are all the D2OL icons gone? If not repeat step 4.
6. Rename the SengentD2OL.app to something else, like D2OL1.app.
7. Repeat steps 1-6
8. Quit all D2OL clients.
9. Launch each of your D2OL clients and verify they are both running.
10. Don't forget to go to D2OL's web site, login, and add your nodes.
11. Bonus(optional) edit the launch.xen file within the D2OL app bundle to name each of your agents differently. You can get into the app bundle by Control-Clicking on the SengentD2OL.app and choosing Show Package Contents. The path you want to follow is
SengentD2OL.app/Contents/MacOS
The launch.xen file is in there. See another thread on editing if you wish to do this.
     
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Oct 6, 2002, 06:48 PM
 
Thanks mikkyo, that should help several folks, and now I finally know how to get "into" the D2OL .app bundle. That helps me, even though I don't have a dual processor machine.

Hey jbcool. Glad to see you are still around.

- Shaktai (AKA: Eaglechild)
     
jswayze  (op)
Fresh-Faced Recruit
Join Date: Jun 2000
Location: Cincinnati, OH USA
Status: Offline
Reply With Quote
Oct 6, 2002, 08:20 PM
 
Well, I can get things are up and running on two clients, but once I quit the agents (the GUI time-waster thingies) the only way I can find to stop them (nicely) is to restart my machine. I can start killing all the processes that look like D2OL, but I'm never sure exactly what I'm doing

Can anyone clue me in as to which processes to kill, or how to find the proper parent processes in order to stop the clients?

Thanks,

Jeff

PS - the main "plus sign" apps that I use to kick things off never show up in my dock. They did the first time I ran the program, but not any more.
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Oct 6, 2002, 08:38 PM
 
Originally posted by jswayze:
Well, I can get things are up and running on two clients, but once I quit the agents (the GUI time-waster thingies) the only way I can find to stop them (nicely) is to restart my machine. I can start killing all the processes that look like D2OL, but I'm never sure exactly what I'm doing

Can anyone clue me in as to which processes to kill, or how to find the proper parent processes in order to stop the clients?

Thanks,

Jeff

PS - the main "plus sign" apps that I use to kick things off never show up in my dock. They did the first time I ran the program, but not any more.
This is a bug when running on Jaguar. There is no simple workaround.
You will lose work units anytime you kill the D2OL app and processes.
They don't trap signals yet so there is no nice way to kill things.
If you do a ps awwwux and look at all the stuff that is running, you will see a SengentD2OL.app -psn something. That is the parent, however it isn't what you see in the dock as that is a java app. So look for a java app, maybe killing that will kill the other things, but not in my experience.
I usually kill DockWin.exe or GridWin.exe first, then the java, then the parent, SengentD2OL.app.
I'm not sure why the Dock icon-link to the java app is busted under Jaguar, but it may be some simple thing that that has changed in the way apps are handled in the OS. I've been playing around, but havent found anything that works yet.
Good luck.
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Oct 7, 2002, 03:11 PM
 
See the possibilities thread for a fix

I should also mention that, if, during the second install the installer never launches D2OL after it finishes, give it 5 minutes then force quit it.
Then launch D2OL and make sure everything works.
I had a couple of instances of it just sitting there after the install and not ever actually doing anything even though it was done.
I checked the installed version and made sure it was all the same as the supposedly failed install and it was. Just launch it and register and make sure it is running before you put it into speed no GUI mode.
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Oct 9, 2002, 01:20 AM
 
Notha thing!
Say you have your two instances of D2OL installed and working, but want to use the background controller:file method..
Well you better be pretty comfortable with the command line and doing things in Terminal.

You will also need to change the Info.plist file again.
INSIDE the bundle of your *second* D2OL install, change the actual executable from D2OL to D2OL2.
The path to this file is
SengentD2OL2.app/Contents/MacOS/D2OL
You only need to change your second client since the silly file controller checks for a process running called D2OL and quits if it is there, assuming it is another copy of itself..but we actually have 2 different installs.
Then in the Info.plist back up there in Contents, you will need to change the CFBundleExecutable key's string to match (change from D2OL to D2OL2).

Now you can set up a launcher that looks like this:

#!/bin/sh
cd /Applications/SengentD2OL.app/Contents/MacOS
/usr/bin/nohup /user/bin/nice -n -20 ./D2OL controller:file &
cd /Applications/SengentD2OL2.app/Contents/MacOS
/usr/bin/nohup /user/bin/nice -n -20 ./D2OL2 controller:file &

put the above in a file (as plain text with unix linebreaks) and call it d2olLauncher or something and stick it in your home directory (obviously the paths and names have to match the actual paths/names of your clients).
Then in your home directory, make it executable
chmod a+rwx ./d2olLauncher
and as root
sudo -s
you can launch both (you quit the GUI versions first right?) by doing
./d2olLauncher

This means you can also set up a crontab to launch them for you at reboot and have them run in the background.
The crontab file would look like

@reboot /Users/you/d2olLauncher

where you is your short login name (look in /Users)
save that as d2olTab
then as root
sudo -s(in case you forgot)
set it as root's crontab
crontab d2olTab

The crontab tells your machine to run the launcher at boot time.
You have to set it as root's crontab to take advantage of the super high CPU usage settings.
The launcher changes to the directory INSIDE the app bundle with the D2OL executable and then fires it off with nohup(cant be killed by logging out or dropped connections), a nice value of -20 (hog all the CPU as much as you can) and use the controller:file version of the D2OL app and run in the background (&.
Then it does the same for your second client.

When using this method of controlling D2OL, you may want to switch the NSUIElement key's string value back to 1 to make the dock icons disappear again if running on Jaguar since the gui wont launch when you click on them anyway.

To control the clients, you use the control.prp file inside the app's bundle.
The path is
SengentD2OL.app/Contents/MacOS/control.prp
The file itself contains comments on what each item does.

Basically, to stop the agent you open the file, change the Shutdown=false line to Shutdown=true and save it.
This will cause that client to shutdown, pretty quickly too.
Remember to do it for both clients if you want to shut them both down.
As soon as they are stopped, (verify with ps awwwux | grep D2OL) change the Shutdown tag back to false. If you forget, you can't launch the clients again as they will just quit. So change them back right away.
You can also show the GUI with that file, just read through it to see how.

The nice thing about running it this way is it is pretty much invisible and you don't really see it running so it can't get in your way (except for that it is hogging all the CPUs).

You can do this if you have only one client too and you dont have to change anything inside the app bundle.
In the Launcher you can also change the priority(niceness) if you like, or leave that part out of your launcher.
20 is CPU friendly: let everything else go first
0 is normal: use as much as it wants without getting in the way of other stuff
-20 is number crunching takeover: use all the CPU slowing other processes

Just to help ease confusion, here is a heirachy view of my 2 installs showing important files only.
Code:
/Applications SengentD2OL.app/ Contents/ Info.plist - This is the file that has applications settings jre/ MacOS/ agent.icns com/ control.prp - This file controls D2OL when running in background D2OL - This is the actual D2OL executable launch.xen - This file has the java property settings lib/ node.icns org/ README.TXT - Directions for running the D2OL res/ lots of prp files for D2OL's settings node.prp - This is your node ID, copy before reinstalling xen.prp PkgInfo Resources/ SengentD2OL2.app/ Contents/ Info.plist - This is the file that has applications settings jre/ MacOS/ agent.icns com/ control.prp - This file controls D2OL when running in background D2OL2 - This is the actual D2OL executable(renamed) launch.xen - This file has the java property settings lib/ node.icns org/ README.TXT - Directions for running the D2OL res/ lots of prp files for D2OL's settings node.prp - This is your node ID, copy before reinstalling xen.prp PkgInfo Resources/
Enjoy.
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Sep 22, 2003, 03:58 PM
 
Bump to see if any of this is needed with the new D2OL.
     
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Sep 22, 2003, 08:35 PM
 
Originally posted by mikkyo:
Bump to see if any of this is needed with the new D2OL.
Thanks mikkyo. I finally found it myself, but the new client is dramatically different and I still couldn't get it to work.

There should be a way, but just haven't found the combination. This is the response to the issue over in the D2OL forum.
This problem troubles me. I am escalating to the coders immediately.

--------------------
Charles Beckius
D20L Forum Administrator
(Last edited by Shaktai; Sep 22, 2003 at 08:51 PM. )
     
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Sep 23, 2003, 10:31 PM
 
See this thread for the fixes to get two copy's to run as well as the reason why there is a problem.

http://forums.macnn.com/showthread.p...86#post1599886
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2