Re: [R] Parallel code runs slower!

2010-11-10 Thread Mike Marchywka
> From: santosh.srini...@gmail.com > To: r-help@r-project.org > Date: Wed, 10 Nov 2010 19:37:29 +0530 [[elided Hotmail spam]] > > My parallel code is running slower than my non-parallel code! Can someone > pls advise what am I doing wrong here? I c

Re: [R] Parallel code runs slower!

2010-11-10 Thread jim holtman
Can you provide a little more information. What operating system are you using? Have you monitored the CPU and memory utilizations of the processes? Do you have enough physical memory; e.g., are you paging? How big are the matrices that you are processing; e.g., str(tTA) and object.size(tTA). T

[R] Parallel code runs slower!

2010-11-10 Thread Santosh Srinivas
My parallel code is running slower than my non-parallel code! Can someone pls advise what am I doing wrong here? t and tTA are simple matrices of equal dimensions. #NON PARALLEL CODE nCols=ncol(t) nRows=nrow(t) tTA = matrix(nrow=nRows,ncol=nCols) require(TTR) system.time( for (i in 1:nCols) {