Re: Question on /proc/cpuinfo

2012-09-23 Thread Jan Engelhardt
On Friday 2012-09-14 14:30, Cong Wang wrote: > On 09/14/2012 07:18 AM, JA Magallón wrote: >> Hi... >> >> Probably it is a stupid question, but... I wan to count the number of >> processors, cores and threads on a linux system. I do it by reading >> /proc/cpuinfo. > > Probably lscpu(1) is better fo

Re: Question on /proc/cpuinfo

2012-09-14 Thread Cong Wang
On 09/14/2012 07:18 AM, JA Magallón wrote: Hi... Probably it is a stupid question, but... I wan to count the number of processors, cores and threads on a linux system. I do it by reading /proc/cpuinfo. ... Since when is it safe to read things the modern way (kernel version ?). Is there a bet

Question on /proc/cpuinfo

2012-09-13 Thread JA Magallón
Hi... Probably it is a stupid question, but... I wan to count the number of processors, cores and threads on a linux system. I do it by reading /proc/cpuinfo. The problem is that the meaning of 'cpu cores' and 'siblings' seems to have changed over time. Nowadays, it looks like this: Dual P4 X

Question on /proc/cpuinfo

2012-09-13 Thread JA Magallón
Hi... Probably it is a stupid question, but... I wan to count the number of processors, cores and threads on a linux system. I do it by reading /proc/cpuinfo. The problem is that the meaning of 'cpu cores' and 'siblings' seems to have changed over time. Nowadays, it looks like this: Dual P4 X