Current-Users archive

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

Re: Thread scheduling



On Fri, 13 Apr 2012, Robert Swindells wrote:

Is it possible to get threads in a single process to be scheduled onto
different CPUs in a system ?

Using top(1), I just see all the threads scheduled onto the same CPU
with all the others idle.

It doesn't look that way on my system (running a -current kernel from last December):

  PID   LID USERNAME PRI STATE      TIME   WCPU    CPU NAME      COMMAND
29497    12 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
29497    11 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
29497    10 mhitch    85 netio/2    0:00  0.00%  0.00% -         spine
29497     9 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
29497     8 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
29497     7 mhitch    85 netio/3    0:00  0.00%  0.00% -         spine
29497     6 mhitch    85 netio/3    0:00  0.00%  0.00% -         spine
29497     5 mhitch    85 netio/3    0:00  0.00%  0.00% -         spine
29497     4 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
29497     3 mhitch    85 netio/1    0:00  0.00%  0.00% -         spine
29497     2 mhitch    85 netio/3    0:00  0.00%  0.00% -         spine
29497     1 mhitch    85 nanosl/1   0:00  0.00%  0.00% -         spine
17079    30 mhitch    85 netio/2    0:00  0.00%  0.00% -         spine
17079    29 mhitch    85 netio/2    0:00  0.00%  0.00% -         spine
17079    28 mhitch    85 netio/3    0:00  0.00%  0.00% -         spine
17079    27 mhitch    85 netio/2    0:00  0.00%  0.00% -         spine
17079    26 mhitch    85 netio/1    0:00  0.00%  0.00% -         spine
17079    25 mhitch    85 netio/2    0:00  0.00%  0.00% -         spine
17079    24 mhitch    85 netio/3    0:00  0.00%  0.00% -         spine
17079    23 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
17079    22 mhitch    85 netio/1    0:00  0.00%  0.00% -         spine
17079    21 mhitch    85 netio/1    0:00  0.00%  0.00% -         spine
17079    20 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
17079    19 mhitch    85 netio/2    0:00  0.00%  0.00% -         spine
17079    18 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
17079    17 mhitch    85 netio/0    0:00  0.00%  0.00% -         spine
17079    16 mhitch    85 netio/3    0:00  0.00%  0.00% -         spine

Mike

--
Michael L. Hitch                        mhitch%montana.edu@localhost
Computer Consultant
Information Technology Center
Montana State University        Bozeman, MT     USA


Home | Main Index | Thread Index | Old Index