Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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. – Szabolcs Feb 11 '14 at 18:49
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? – Wizard Feb 12 '14 at 13:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.