Re: usb kthreads

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Thu, 13 Aug 2009 13:10:44 +0300
On Thu, Aug 13, 2009 at 10:09:37AM +0100, Andrew Thompson wrote:
> 2009/8/13 Kostik Belousov <kostikbel_at_gmail.com>
> >
> > On Thu, Aug 13, 2009 at 12:30:02AM -0700, Andrew Thompson wrote:
> > > Hi,
> > >
> > >
> > > Here is an aesthetic patch to change the usb kernel processes to threads,
> > > this hides them from the usual 'ps' output. Please test and review.
> > >
> > > š1290 š?? šDL š š 0:00.00 [usbus0]
> > > š[lots and lots more...]
> > > š1309 š?? šDL š š 0:00.00 [usbus4]
> > >
> > > After the patch they can be seen as kernel threads.
> > >
> > > š PID š šTID COMM š š š š š š TDNAME š š š š š CPU šPRI STATE š WCHAN
> > > š š 0 100000 kernel š š š š š swapper š š š š š š0 š 68 sleep š sched
> > > š š 0 100009 kernel š š š š š firmware taskq š š 0 š 92 sleep š -
> > > š š 0 100020 kernel š š š š š kqueue taskq š š š 0 š 92 sleep š -
> > > š š 0 100021 kernel š š š š š acpi_task_0 š š š š0 š 92 sleep š -
> > > š š 0 100022 kernel š š š š š acpi_task_1 š š š š0 š 92 sleep š -
> > > š š 0 100023 kernel š š š š š acpi_task_2 š š š š0 š 92 sleep š -
> > > š š 0 100027 kernel š š š š š thread taskq š š š 0 š 92 sleep š -
> > > š š 0 100031 kernel š š š š š bwi0 taskq š š š š 0 š 16 sleep š -
> > > š š 0 100032 kernel š š š š š bwi0 taskq š š š š 0 š 16 sleep š -
> > > š š 0 100106 kernel š š š š š usbus0 š š š š š š 0 š 20 sleep š wmsg
> > > š š 0 100107 kernel š š š š š usbus0 š š š š š š 0 š 16 sleep š wmsg
> > > š š 0 100108 kernel š š š š š usbus0 š š š š š š 0 š 20 sleep š wmsg
> > > š š 0 100109 kernel š š š š š usbus0 š š š š š š 0 š 20 sleep š wmsg
> > > š š [ ... ]
> > > š š 0 100127 kernel š š š š š usbus4 š š š š š š 0 š 20 sleep š wmsg
> > >
> > Can you use this opportunity to change "wmsg" wait channel name
> > to something having "usb" in the name ?
> 
> When the thread is idle this should be `-` ?

Taskqueue loop uses "-" as a name for the wait channel used when no work is
scheduled, see subr_taskqueue.c:404. 

Received on Thu Aug 13 2009 - 08:10:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:53 UTC