Query about workqueues

94 views
Skip to first unread message

Raj Kumar

unread,
May 23, 2014, 7:27:10 AM5/23/14
to android...@googlegroups.com
Hi,

I was trying to understand the workqueues in more details:

e.g. it is given

kworker/u4:0
kworker/0:0

What does u4:0 represents and similarily 0:0 represents. I was glancing into the code when pool->cpu>0, there is u appended.

Can you please explain u4:0 and 0:0 (what does it represent) in workqueue kworker?

Regards,
Raj Kumar

Boyan Vladinov

unread,
Jul 2, 2014, 2:42:34 AM7/2/14
to android...@googlegroups.com
Name: kworker/%u:%d%s (cpu, id, priority)
Purpose: Execute workqueue requests

https://www.kernel.org/doc/Documentation/kernel-per-CPU-kthreads.txt

Raj Kumar

unread,
Jul 2, 2014, 2:10:03 PM7/2/14
to android...@googlegroups.com

Hi Boyan,

Thanks for your reply. But this documentation is stating:
kworker/%u:%d%s (cpu, id, priority)

which means it will print like kworker/0:0
if cpu is 0, id is 0 and priority is 1
but here it is:
kworker/u4:0
what does u, 4, 0 represents here, it still did not answer my question.
Can you explain on this?

Regards,
Raj





--
--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel
---
You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-kerne...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raj Kumar

unread,
Jul 2, 2014, 2:21:04 PM7/2/14
to android...@googlegroups.com, boyan.v...@gmail.com
Hi Boyan,

I looked into the code of workqueues and understood:

kworker/u4:0
kworker/0:0

In this u means, it is not bound to any cpu, rest it is cpu and instance. Correct me if I an wrong.
regards,
raj




On Wed, Jul 2, 2014 at 12:12 PM, Boyan Vladinov <boyan.v...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages