Skip to content
Prev 8193 / 15076 Next

R run time question

Why are you installing a 32 bit R?  And why an older version of R?

Can you not install a 64 bit version of the latest R?
Running the ANOVA requires more than 4GB of RAM, which can not be done
with 32 bit versions of software.  So you will need 64 bit R to do this analysis.
What OS version is on your server?  If it's an old 32 bit version, upgrading the server
to a recent 64 bit OS will help.  Then install a recent 64 bit version of R.

If you can do this, you can better assess whether this analysis can be done 
faster on the 8GB laptops.

R runs entirely in RAM, so if the analysis needs more than 8GB of RAM, you may
be experiencing "swapping" on the laptops.  The operating system allocates
as much memory as the job needs - if that amount of memory exceeds the amount
of RAM you have, then the rest is allocated to "virtual memory" which is
on the disk drive.  Swapping occurs when part of the virtual memory of your job
that is on disk is needed - the OS has to copy a chunk of what is in RAM out to
disk, so it can copy the other chunk on disk back into RAM.

Monitor the laptop with a shell command line process such as "top" 
and you will be able to determine how much virtual memory your R job
is using, and how many "swaps" are involved.  Swapping really slows things
down as reading and writing from the disk is slow.  If your job is swapping
on the laptop, but uses less than 13GB of memory in total, it will run faster
on the server.  If the job is not swapping at all on the laptop,  it will not
run appreciably faster on the server.


HTH

Steve McKinney