← Back to team overview

touch-packages team mailing list archive

[Bug 1399861] Re: top errors out when a cpu is taken offline

 

procps-3.2.8
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/1399861

Title:
  top errors out when a cpu is taken offline

Status in procps package in Ubuntu:
  New

Bug description:
  
  1. start top in a session
  2. press '1' to show the CPUs individually
  3. in a separate (root) session, shut down a cpu like this:
      # echo 0 > /sys/devices/system/cpu/cpu2/online
  4. top will exit with a message like this:
            top: failed /proc/stat read

  Related:  when reactivating a cpu, top will only continue to show the
  first N-1 cpus in its display.

  The workaround for people who want to keep an active system monitor up, can do:
  $   while true; do top; done

  cpus_refresh() assumes that Cpu_tot never changes;  it reads that many
  cpu* entries from /proc/stat, incorrectly interpreting the 'intr' line
  as a failed cpu line read.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1399861/+subscriptions


References