Current method for querying number of cpu sockets is not robust
Created by: pkuyym
Current implementation is:
However, in some computers, output of above command is:
Core(s) per socket: 6
which will lead to exception
ValueError: invalid literal for int() with base 10: ''