How many CPUs and memory do you allocate to your Linux machine?

C++
cat /proc/cpuinfo

Source

Also in C++: