Очевидный вариант:
cat /proc/cpuinfo | grep 'physical id' | sort | uniq | wc -lНеочевидный (точно работает на 2.6.18/rhel5, 2.6.32/rhel6):
ls /sys/devices/system/node|grep node|wc -l
No comments :
Post a Comment
Note: only a member of this blog may post a comment.