From zepu.zhang at gmail.com  Thu Jan 26 21:27:08 2012
From: zepu.zhang at gmail.com (Zepu Zhang)
Date: Thu, 26 Jan 2012 11:27:08 -0900
Subject: [Rd] Conflicts between 'parallel' and 'Rprof',
	and between two parallel R sessions
In-Reply-To: <CAG5L0QWqkg0zAMgqSKd5vzREiW0kDfRyymdy4O9Zo=Awf17V3Q@mail.gmail.com>
References: <CAG5L0QWqkg0zAMgqSKd5vzREiW0kDfRyymdy4O9Zo=Awf17V3Q@mail.gmail.com>
Message-ID: <CAG5L0QVzYqYz+RZfDBcMEUjvQ9XFfXPZrNCN3ysbKPn0Pq5eKg@mail.gmail.com>

Dear list,

I observed two problems that I suppose are generic.

First, using 'Rprof' to profile a parallel (based on the package
'parallel') code caused

.... Error in unserialize(node$con) : error reading from connection....

Second, on a multicore desktop, I concurrently opened two terminals
and ran two separate R sessions, both running (actually
identical) parallel code (which sets up a cluster with as many nodes
as there are cores). I got

?...Error in socketConnection("localhost", port = port, server = TRUE,
blocking = TRUE, ?: ? cannot open the connection
In addition: Warning message:
In socketConnection("localhost", port = port, server = TRUE, blocking = TRUE, ?:
?port 10187 cannot be opened

Are there ways to do the two things above without problems?

Thanks!

Zepu



[Rd] Conflicts between 'parallel' and 'Rprof', and between two parallel R sessions
Zepu Zhang