![]() |
![]() |
#1 |
Mar 2014
100112 Posts |
![]()
Hello, I recently deployed the PRP 5.3.0 client to a few multi-CPU hosts pointing to the PSP Project servers. A couple of my servers have 32 non-hyper-threaded cores (4-way Intel E5-4650). I changed the way the shell scripts work to configure the PRP client. The install-prpclient.sh script creates subdirectories, but does not copy the binaries around; it creates symlinks. This saves 2GB of disk space on a 32-core system and the symlinks work fine. I also changed the scripts to use "screen" instead of "xterm". I have a new script which generates a screenrc file (update-screenrc.sh) depending on the number of cores you have specified. I also made a generic update-prpclient-ini.sh script which requires you to specify the number of clients. The start-prpclient.sh script then starts screen specifying the generated screenrc. In my case, the screen session is started with 32 windows, each one running from the prpclient-X subdirectory.
I wanted to make these scripts available to the community. Feel free to improve upon them, include them in a future update, etc. https://www.dropbox.com/s/4flb10vy5h...newscripts.zip An example new install might be run as follows (assuming your master_prpclient.ini is ready to be replicated): ./install-prpclient.sh 32 ./update-prpclient-ini.sh 32 ./update-screenrc.sh 32 ./start-prpclient.sh The stop-prpclient.sh does not need to be changed, yet it works well with the "screen" setup. Last fiddled with by brilong on 2014-05-14 at 20:36 |
![]() |
![]() |
![]() |
#2 |
"Mr. Meeseeks"
Jan 2012
California, USA
32·241 Posts |
![]()
Hmm you're right. There is probably a better way then creating a a batch file for every common number of cores... etc this could replace all the "install" scripts(windows).
Code:
@ECHO off echo Clients to install: set /P n= for /l %%x in (1,1,%n%) do ( mkdir prpclient-%%x cd prpclient-%%x copy /Y ..\programs\*.exe copy /Y ..\programs\*.dll cd .. ) EXIT Last fiddled with by kracker on 2014-05-15 at 23:48 |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Patch] "Test/Primenet" prompts improvements on console version | Explorer09 | Software | 2 | 2017-03-09 04:14 |
Possible algorithm/software improvements? | diep | Miscellaneous Math | 9 | 2009-03-08 16:53 |
Improvements for the CWI NFS software package | Istari | Factoring | 30 | 2005-07-12 20:20 |
Any code improvements? | db597 | Software | 7 | 2004-09-09 17:05 |
Improvements possible for assignment procedure and double checking???? | Erasmus | PrimeNet | 10 | 2004-02-19 12:09 |