Hi,

On 2014-05-30 19:58:35 +0300, Eugene V. Lyubimkin wrote:
> Hmm, is that a separate bug then? Does htop shows a wrong number of CPUs
> on some machines, or the meters view is drawn "badly", or?

I meant that if htop displays the CPU's on 4 columns for some machine
with 64 CPU's, it will also display 4 columns on a machine with 8 CPU's,
and even on a machine with 2 CPU's, which is rather ridiculous. And
conversely, if I start htop first on a machine with 2 CPU's, only one
column will be used on this machine but also on a machine with 64 CPU's.

Here's an example. On a machine with 64 CPU's:

fraise:~> \rm ~/.config/htop/htoprc
fraise:~> htop

  1  [||||||87.4%]   17 [|||||100.0%]     33 [||||||99.4%]   49 [|||||100.0%]
  2  [||||||96.2%]   18 [|||||100.0%]     34 [|||||100.0%]   50 [|||||100.0%]
  3  [||||||98.7%]   19 [|||||100.0%]     35 [|||||100.0%]   51 [|||||100.0%]
  4  [|||||100.0%]   20 [|||||100.0%]     36 [||||||93.8%]   52 [|||||100.0%]
  5  [|||||100.0%]   21 [|||||100.0%]     37 [|||||100.0%]   53 [|||||100.0%]
  6  [|||||100.0%]   22 [|||||100.0%]     38 [|||||100.0%]   54 [|||||100.0%]
  7  [|||||100.0%]   23 [|||||100.0%]     39 [|||||100.0%]   55 [|||||100.0%]
  8  [|||||100.0%]   24 [|||||100.0%]     40 [|||||100.0%]   56 [|||||100.0%]
  9  [|||||100.0%]   25 [||||||98.1%]     41 [|||||100.0%]   57 [|||||100.0%]
  10 [|||||100.0%]   26 [|||||100.0%]     42 [|||||100.0%]   58 [|||||100.0%]
  11 [|||||100.0%]   27 [|||||100.0%]     43 [|||||100.0%]   59 [|||||100.0%]
  12 [|||||100.0%]   28 [|||||100.0%]     44 [|||||100.0%]   60 [|||||100.0%]
  13 [|||||100.0%]   29 [|||||100.0%]     45 [|||||100.0%]   61 [|||||100.0%]
  14 [|||||100.0%]   30 [|||||100.0%]     46 [|||||100.0%]   62 [|||||100.0%]
  15 [|||||100.0%]   31 [|||||100.0%]     47 [|||||100.0%]   63 [|||||100.0%]
  16 [|||||100.0%]   32 [|||||100.0%]     48 [|||||100.0%]   64 [|||||100.0%]
  Mem[|||||||||||||||122037/257946MB]     Tasks: 564, 176 thr; 67 running
  Swp[|                   11/10001MB]     Load average: 62.48 59.45 61.08 
                                          Uptime: 33 days, 07:49:02

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
[...]

Then on a machine with 2 CPU's:

doubleeagle:~> htop

  1  [|||||100.0%]                        2  [||     2.0%]
  Mem[|||||               129/3968MB]     Tasks: 51, 90 thr; 2 running
  Swp[                      0/3814MB]     Load average: 1.54 1.89 1.87 
                                          Uptime: 11 days, 08:04:19

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
[...]

Now the opposite:

doubleeagle:~> \rm ~/.config/htop/htoprc
doubleeagle:~> htop

  1  [||||||||||||||||||||||||100.0%]     Tasks: 51, 90 thr; 2 running
  2  [|                         2.0%]     Load average: 1.15 1.69 1.80 
  Mem[|||||               129/3968MB]     Uptime: 11 days, 08:05:39
  Swp[                      0/3814MB]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
[...]

fraise:~> htop

  1  [|||||||||||||||||||||||| 75.8%]     Tasks: 562, 173 thr; 66 running
  2  [||||||||||||||||||||||||100.0%]     Load average: 59.51 59.31 60.79 
  3  [||||||||||||||||||||||||100.0%]     Uptime: 33 days, 07:51:40
  4  [||||||||||||||||||||||||100.0%]
  5  [||||||||||||||||||||||||100.0%]
  6  [||||||||||||||||||||||||100.0%]
  7  [||||||||||||||||||||||||100.0%]
  8  [||||||||||||||||||||||||100.0%]
  9  [||||||||||||||||||||||||100.0%]
  10 [||||||||||||||||||||||||100.0%]
  11 [||||||||||||||||||||||||100.0%]
  12 [||||||||||||||||||||||||100.0%]
  13 [||||||||||||||||||||||||100.0%]
  14 [||||||||||||||||||||||||100.0%]
  15 [||||||||||||||||||||||||100.0%]
  16 [||||||||||||||||||||||||100.0%]
  17 [||||||||||||||||||||||||100.0%]
  18 [||||||||||||||||||||||||100.0%]
  19 [||||||||||||||||||||||||100.0%]
  20 [||||||||||||||||||||||||100.0%]
  21 [||||||||||||||||||||||||100.0%]
  22 [||||||||||||||||||||||||100.0%]
  23 [||||||||||||||||||||||||100.0%]
  24 [||||||||||||||||||||||||100.0%]
  25 [||||||||||||||||||||||||100.0%]
  26 [||||||||||||||||||||||||100.0%]
  27 [||||||||||||||||||||||||100.0%]
  28 [||||||||||||||||||||||||100.0%]
  29 [||||||||||||||||||||||||100.0%]
  30 [||||||||||||||||||||||||100.0%]

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to