Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-67035

nproc doesn't work as expected in s390x

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • rhel-10.0
    • coreutils
    • None
    • No
    • Low
    • rhel-sst-cs-base-utils
    • ssg_core_services
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • s390x
    • None

      What were you trying to do that didn't work?

      In a test we are using "nproc --all" to take all the CPUs on the machine so we could run tasks in parallel with taskset. In a virtual s390x machine with 2 cores the command return that it has 64 cores (I imagine is the total cores of the parent machine) and it didn't agree with the lscpu comand output.

      $ nproc --all
      64
      $ lscpu
      ...
      CPU(s):                   2
      ...

      What is the impact of this issue to you?

      Low since we can migrate to lscpu

      Please provide the package NVR for which the bug is seen:

      coreutils-9.5-5.el10.s390x.rpm
      coreutils-common-9.5-5.el10.s390x.rpm
      coreutils-single-9.5-5.el10.s390x.rpm

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Run "nproc --all" to an s390x virtual machine

      Expected results

      nproc --all will give me the cores of the virtual machine

      Actual results

      nproc --all give me more cores (probably all the cores on the physical machine)

              rh-ee-lzaoral Lukáš Zaoral
              rh-ee-gpantela George Pantelakis
              Lukáš Zaoral Lukáš Zaoral
              Radka Brychtova Radka Brychtova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: