Workqueues and Worker thread name

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

 



Hi,

I am a little new to this area, so seeking expert advice.

I have created "delayed works" using "INIT_DELAYED_WORK" for each core
on my system and a corresponding work_queues using
"create_freezable_workqueue".
Now what I have some work getting scheduled on this queues. What I
observe is that top command shows CPU being taken by kernel threads as
below-
 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  #C WCHAN     COMMAND
101 root      20   0     0    0    0 R  9.6  0.0  63:16.29  6
worker_th [kworker/6:1]
  104 root      20   0     0    0    0 S  9.6  0.0  70:53.11  3
worker_th [kworker/3:1]
  105 root      20   0     0    0    0 S  9.6  0.0  84:45.37  2
worker_th [kworker/2:1]
 1451 root      20   0     0    0    0 S  9.6  0.0  67:25.71 14
worker_th [kworker/14:1]
 1452 root      20   0     0    0    0 S  9.6  0.0  62:55.86 13
worker_th [kworker/13:1]
 1453 root      20   0     0    0    0 S  9.6  0.0  67:43.90 12
worker_th [kworker/12:1]
  100 root      20   0     0    0    0 R  9.3  0.0  60:41.05  7
worker_th [kworker/7:1]
  103 root      20   0     0    0    0 S  9.3  0.0  62:39.62  4
worker_th [kworker/4:1]
 1450 root      20   0     0    0    0 S  9.3  0.0  59:29.10 15
worker_th [kworker/15:1]
13928 root      20   0     0    0    0 S  9.3  0.0   0:21.43  1
worker_th [kworker/1:1]
13933 root      20   0     0    0    0 S  9.3  0.0   0:14.36  0
worker_th [kworker/0:2]
   97 root      20   0     0    0    0 S  9.0  0.0  54:43.59 10
worker_th [kworker/10:1]
  102 root      20   0     0    0    0 S  9.0  0.0  61:08.43  5
worker_th [kworker/5:1]
   96 root      20   0     0    0    0 S  8.6  0.0  50:55.86 11
worker_th [kworker/11:1]


How, do I know if this is for the work that I have created and its
taking that much CPU. Also, while creating the work_queues I have a
name to them. How to relate that name here in top.

Any help will be highly appreciated.

Thanks,
Prashant
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs


[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux