From: Andy Walls <awalls@md.metrocast.net>
To: Tejun Heo <tj@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Date: Tue, 04 Jan 2011 08:21:35 -0500 [thread overview]
Message-ID: <1294147295.2107.14.camel@morgan.silverblock.net> (raw)
In-Reply-To: <20110104083637.GB8066@mtj.dyndns.org>
On Tue, 2011-01-04 at 09:36 +0100, Tejun Heo wrote:
> Hello,
>
> On Mon, Jan 03, 2011 at 07:54:56PM -0500, Andy Walls wrote:
> > 2. To prevent work items being handled by keventd/n from being delayed
> > too long, as the deferred work in question can involve a bit of sleeping
> > due to contention, the workload of the CX23418's MPEG encoding engine,
> > and the number of CX23418 devices in the system.
> >
> > Will all the sleeping that can happen, is the move to a system wq, under
> > cmwq, going to have adverse affects on processing other work items in
> > the system?
> >
> > I get the feeling it won't be a problem with cmwq, but I haven't paid
> > enough attention to be sure.
>
> It won't be a problem. Now the system_wq supports parallel execution
> of multiple works and manages concurrency automatically. Work items
> can sleep as necessary without worrying about other work items.
OK, that's what I thought. I just wanted to ensure that busy CX23418
chips are not going to delay the processing of other work-events in the
rest the system down.
> ...
> > It is not unusual for scheduled TV recording software to start nearly
> > simultaneous DTV TS, MPEG, and VBI or MPEG Index streams on multiple
> > cards. So 3 CX23418 cards with 3 streams each. Let's nominally
> > estimate the timing of the CX18_CPU_DE_SET_MDL commands per stream at
> > the PAL frame rate of 25 Hz; or 1 CX18_CPU_DE_SET_MDL mailbox command
> > per stream per 40 milliseconds.
>
> IIUC, if they spend any significant amount of time executing, they'll
> be doing so by waiting for events (mutex, IRQ...), right?
Right. As a CX23418 is expected to do more streaming by the host, the
mailbox mutex contention goes up and the latency of the CX23418
responding to mailbox commands also goes up so there is more wait()ing.
> If so,
> there's nothing to worry about. If it's gonna burn a lot of CPU
> cycles, we'll need to use a workqueue marked CPU_INTENSIVE but I don't
> think that's the case here.
Correct, CPU is not the concern here.
> Thank you.
Thanks. I'll do a proper inspection of the patch tonight. It looked OK
on cursory review.
Regards,
Andy
next prev parent reply other threads:[~2011-01-04 13:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1294062595-30097-1-git-send-email-tj@kernel.org>
2011-01-03 13:49 ` [PATCH 11/32] v4l/cx18: update workqueue usage Tejun Heo
2011-01-04 0:54 ` Andy Walls
2011-01-04 8:36 ` Tejun Heo
2011-01-04 13:21 ` Andy Walls [this message]
2011-01-08 17:03 ` Andy Walls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294147295.2107.14.camel@morgan.silverblock.net \
--to=awalls@md.metrocast.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox