I've got an Ubuntu VM on my Mac. Is there a command I can run in Ubuntu that will tell me how many cores I have to work with?
I could do "about this mac" on the host, but I'm not sure how well the multi-core processor would translate to the VM.
This should work:
On OS X you can use sysctl or system_profiler:
My processor supports hyper-threading, so there are 8 logical cores and 4 physical cores.