I recently played around with establishing a remote kernel setup without using mathematica grid. To do this I use the LaunchKernels[] command and ssh to establish the connection. A call to my remote desktop (RemoteDesktop) then looks like:

  "ssh -x -f -l username `1` math -mathlink -linkmode Connect `4` -linkname `2` -subkernel -noinit >& /dev/null &", 8]]

Which returns the following error:

SubKernelsProtectedkernelFlush::time: Operation LinkWrite timed out after 15.` seconds

It actually took me some time to figure out, that launching a kernel on RemoteDesktop actually takes longer than the predefined limit of 15 seconds. If I increase the limit to some way higher timespan like this:

Parallel`Settings`$MathLinkTimeout = 100.

LaunchKernels[] sure takes its time, but all the kernels are launched eventually.

So I cannot help but wonder: Is this an ordinary behavior or do you think something is going wrong regarding my setup, which results in launching kernels taking more time? If so, what could be the reason?

Further information: I am working on a MacBook Pro with OS X 10.9 and Mathematica 9.0.1. I testet remote connections to another Mac with OS X 10.8 and Mathematica 9.0.1 and a 64 Bit Linux Machine. Launching kernels took way longer than 15 seconds in each of these two scenarios.

  • $\begingroup$ If this helps: No, it does not always take 15 seconds. Unfortunately I can't offer advice ... just wanted to let you know that something might be wrong. $\endgroup$ – Szabolcs Feb 11 '14 at 18:49
  • $\begingroup$ Thanks for the feedback. I will take a closer look at what might be going wrong. Any suggestions on how to monitor the LaunchKernel[] process in mathematica? $\endgroup$ – Wizard Feb 12 '14 at 13:01
  • $\begingroup$ Might help you: mathematica.stackexchange.com/questions/28274/… $\endgroup$ – Karolis Oct 2 '17 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.