Re: /proc/cpuinfo format - arch dependent!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ricky Beam <[email protected]> wrote:
>
> Short of a kernel module to export the kernel variables, that's the only
>  damned way to find the number of cpus in a Linux system.

Question is: do you need to know the number of CPUs (why?) or do you need
to know the number of CPUs which you're currently allowed to use or do you
need to know the maximum number of CPUs which you are allowed to bind
yourself to, or what?

Probably these things can be worked out via the get/set_affinity() syscalls
and/or via the cpuset sysfs interfaces, but it isn't as simple as you're
assuming.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux