renaming the executable?

Message boards : Number crunching : renaming the executable?
Message board moderation

To post messages, you must log in.

AuthorMessage
Emrys

Send message
Joined: 21 May 99
Posts: 7
Credit: 1,495
RAC: 0
United States
Message 87004 - Posted: 17 Mar 2005, 15:47:36 UTC

i'd rather not have the full "setiathome_4.02_i686-pc-linux-gnu" showing up in the output of ps or top... anyone ever tried renaming the executable?

i see in slots/0 that there's a text file called setiathome_4.02_i686-pc-linux-gnu that contains the following:

../../projects/setiathome.berkeley.edu/setiathome_4.02_i686-pc-linux-gnu

i'm wondering if changing the name of the executable under projects, and the contents of the soft_link tag shown above, would do the trick.

anyone tried this?
ID: 87004 · Report as offensive
Profile Benher
Volunteer developer
Volunteer tester

Send message
Joined: 25 Jul 99
Posts: 517
Credit: 465,152
RAC: 0
United States
Message 87017 - Posted: 17 Mar 2005, 16:54:17 UTC - in response to Message 87004.  
Last modified: 17 Mar 2005, 16:55:10 UTC

> i'm wondering if changing the name of the executable under projects, and the
> contents of the soft_link tag shown above, would do the trick.

Well,

There is an md5 checksum calculated over the executable, and this value is stored in the client_state.xml file. I can't recall if in the code the filename is inclcuded as part of what is summed up.

As a test you could try reducing the size of your WU queue a bit (so as not to lose many WUs), and then stop boinc, rename both the executable and the reference to it inside of client_state.xml.

When a new science app is released you would have to do it all over again, of course.
ID: 87017 · Report as offensive
Emrys

Send message
Joined: 21 May 99
Posts: 7
Credit: 1,495
RAC: 0
United States
Message 87082 - Posted: 17 Mar 2005, 20:19:33 UTC - in response to Message 87017.  

> There is an md5 checksum calculated over the executable, and this value is
> stored in the client_state.xml file. I can't recall if in the code the
> filename is inclcuded as part of what is summed up.

yeah, this scares me a bit, 'cuz that's obviously a generated file...


> As a test you could try reducing the size of your WU queue a bit (so as not to
> lose many WUs),

having just started with the boinc client today... how would i do this? i don't see it anywhere on the prefs pages on this site. is there a local config file?

> and then stop boinc, rename both the executable and the
> reference to it inside of client_state.xml.

i'll try it later today or tomorrow.

> When a new science app is released you would have to do it all over again, of
> course.

well, yeah... but it beats smacking the Ops guys in the face with the fact that i'm running it. yeah, they're "my" development boxes, and if i feel like pegging the CPUs at 100%, it's my binness... but still, no need to be that ostentatious about it...
ID: 87082 · Report as offensive
Profile FalconFly
Avatar

Send message
Joined: 5 Oct 99
Posts: 394
Credit: 18,053,892
RAC: 0
Germany
Message 87090 - Posted: 17 Mar 2005, 20:54:32 UTC - in response to Message 87082.  
Last modified: 17 Mar 2005, 20:56:59 UTC

It will work, but ONLY if you create an "app_info.xml" in the SETI Project folder (thus enabling the anonymous Platform feature) AND fill in the correct data for your renamed SETI Binary into it.

If you do, any existing WorkUnits on your System will be skipped and discarded, including unfinished ones.

(I know since I recently switched from the original 32bit Binary to a custom compiled x86-64bit on one of my machines)
ID: 87090 · Report as offensive
Emrys

Send message
Joined: 21 May 99
Posts: 7
Credit: 1,495
RAC: 0
United States
Message 87106 - Posted: 17 Mar 2005, 21:33:58 UTC - in response to Message 87090.  

> It will work, but ONLY if you create an "app_info.xml" in the SETI Project
> folder (thus enabling the anonymous Platform feature) AND fill in the correct
> data for your renamed SETI Binary into it.

could you post yours? i don't know what the structure of app_info.xml is supposed to be, and don't see one in my install directory to model on.

thanx!
ID: 87106 · Report as offensive
Ron Roe
Volunteer tester

Send message
Joined: 28 Feb 02
Posts: 156
Credit: 24,124
RAC: 0
United States
Message 87122 - Posted: 17 Mar 2005, 22:12:55 UTC - in response to Message 87106.  

> could you post yours? i don't know what the structure of app_info.xml is
> supposed to be, and don't see one in my install directory to model on.
>
> thanx!
>

Here is an example of app_info.xml.
ID: 87122 · Report as offensive
Emrys

Send message
Joined: 21 May 99
Posts: 7
Credit: 1,495
RAC: 0
United States
Message 87126 - Posted: 17 Mar 2005, 22:26:00 UTC - in response to Message 87122.  

> Here is an example of <a> href="http://boinc.berkeley.edu/anonymous_platform.php">app_info.xml[/url].


egggselent! thanks much!
ID: 87126 · Report as offensive
Profile Skip Da Shu
Volunteer tester
Avatar

Send message
Joined: 28 Jun 04
Posts: 233
Credit: 431,047
RAC: 0
Message 87194 - Posted: 18 Mar 2005, 1:29:59 UTC - in response to Message 87082.  

> > As a test you could try reducing the size of your WU queue a bit (so as
> not to
> > lose many WUs),
>
> having just started with the boinc client today... how would i do this? i
> don't see it anywhere on the prefs pages on this site. is there a local
> config file?

W/U que is loosely controlled by web site settings in YOUR ACCOUNT under general prefs, the setting behind "Connect to network about every "

- da shu @ HeliOS,
"A child's exposure to technology should never be predicated on an ability to afford it."
ID: 87194 · Report as offensive
Profile Benher
Volunteer developer
Volunteer tester

Send message
Joined: 25 Jul 99
Posts: 517
Credit: 465,152
RAC: 0
United States
Message 87200 - Posted: 18 Mar 2005, 1:37:39 UTC - in response to Message 87090.  


> If you do, any existing WorkUnits on your System will be skipped and
> discarded, including unfinished ones.

It is possible not to get WUs discarded, just kinda tricky.

The part that begins <app_version>...you can have multiple sets of these.
(highlight and copy all lines between app_version and /app_version, inclusive)
To make it not reject current WUs, include an app_version for current project version_num (for windows seti current is 409, I think linux is 402...not sure)

ID: 87200 · Report as offensive
Profile FalconFly
Avatar

Send message
Joined: 5 Oct 99
Posts: 394
Credit: 18,053,892
RAC: 0
Germany
Message 87202 - Posted: 18 Mar 2005, 1:42:18 UTC - in response to Message 87200.  
Last modified: 18 Mar 2005, 1:47:54 UTC

I also do it the this way :
Set "Connect to Network every x days" to 0...

Wait until System is depleted off all WorkUnits (will not aquire new ones).
After that, make the clean switch.

IMHO easier than fiddling with the app_info.xml but your mileage may vary.

Hint : Make sure the data is filled into the app_info.xml 100.0% correctly, otherwise you will likely get an Error Message like "No Work sent - unknown Platform", which will cause BOINC to defer contact to the Server for 24 hours (a limitation that can be overcome by editing the client_state.xml, but that's really a last ditch "beat the System" kinda Workaround)
ID: 87202 · Report as offensive

Message boards : Number crunching : renaming the executable?


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.