I have set up a RStudio server on an Amazon EC2 micro instance (the free one, just to start). I've done this following this tutorial. As I understand from the description, the machine should have two cores, so I would like to use it for parallel computations (if it works with two cores, I will then extend it to more powerful machines). However when I run
parallel::detectCores()
on I get the following error message
Error in system(cmd, TRUE) :
cannot popen 'grep processor /proc/cpuinfo 2>/dev/null | wc -l', probable reason 'Cannot allocate memory'
I'm not a Linux expert so I don't know what's going on here. How can it be a memory problem?