Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:how_can_i_use_the_command-line_peerslave_and_optimize_the_matlab_licenses [2010/12/08 08:52]
robert
faq:how_can_i_use_the_command-line_peerslave_and_optimize_the_matlab_licenses [2017/08/17 11:21] (current)
Line 5: Line 5:
 Most of the examples on the wiki demonstrate for simplicity how you can start the peerslave within a MATLAB session. The disadvantage of that is that the peerslaves are always using a MATLAB license, even if they are not doing any computations. Furthermore the MATLAB process takes a lot of your system memory. To solve these inefficiency we have implemented a command-line peerslave executable. Most of the examples on the wiki demonstrate for simplicity how you can start the peerslave within a MATLAB session. The disadvantage of that is that the peerslaves are always using a MATLAB license, even if they are not doing any computations. Furthermore the MATLAB process takes a lot of your system memory. To solve these inefficiency we have implemented a command-line peerslave executable.
  
-The command-line peerslave executable runs the peer network maintenance threads and uses the MATLAB engine. If an job arrives, the MATLAB engine is started (at that point it takes a license), executes the job inside the engine and sends the results back to the master. If the peerslave is idle for some time, the engine is stopped and the license returned. Executing multiple jobs in a row is only slowed down by the first time that the engine has to be started, which typically takes 10-30 seconds. The engine will keep running until all jobs are done.+The command-line peerslave executable runs the peer network maintenance threads and uses the MATLAB engine. If job arrives, the MATLAB engine is started (at that point it takes a license), executes the job inside the engine and sends the results back to the master. If the peerslave is idle for some time, the engine is stopped and the license returned. Executing multiple jobs in a row is only slowed down by the first time that the engine has to be started, which typically takes 10-30 seconds. The engine will keep running until all jobs are done.
  
 To start the command-line peerslave, you type To start the command-line peerslave, you type