Find the answer to your Linux question:
Results 1 to 2 of 2
i am calling sysconf(_SC_NPROCESSORS_ONLN) from my apps code to get number of logical CPUs. this code works with x86, but NOT with EM64T versions. any known issues? How do i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    2

    sysconf(_SC_NPROCESSORS_ONLN) not working in EM64T RHEL/SuSE


    i am calling sysconf(_SC_NPROCESSORS_ONLN) from my apps code to get number of logical CPUs. this code works with x86, but NOT with EM64T versions. any known issues?

    How do i find number of logical CPUs in EM64T (x64) versions of RHEL & SuSE?

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    I think you can just count the number of "processor" lines in /proc/cpuinfo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •