linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Matthew Dharm <mdharm-kernel@one-eyed-alien.net>,
	USB Developers <linux-usb-devel@lists.sourceforge.net>,
	Kernel Developer List <linux-kernel@vger.kernel.org>
Subject: Re: [linux-usb-devel] System stalls using usb-storage
Date: Sun, 27 Jul 2003 08:24:44 +0200	[thread overview]
Message-ID: <200307270824.44851.oliver@neukum.org> (raw)
In-Reply-To: <20030723200051.C18354@one-eyed-alien.net>

Am Donnerstag, 24. Juli 2003 05:00 schrieb Matthew Dharm:
> Many people, including myself, have observed system stalls when using
> usb-storage.  It happens when copying large amounts of data to a USB device
> -- everything (except the USB access) just stops for a little while.  My
> best guess is that the block cache is filling up (easy since USB is so
> slow).

Can you do a vmstat run? That should provide conclusive data.
If so, write throteling is failing.

> The question is, what is the best way to handle this.  I'm guessing that
> increasing the priority of the usb-storage control thread will help, but
> that's just a guess.  I'm not even sure how to go about doing that, tho...

A kernel thread in the block io path has to have a higher priority than
any user task. Otherwise a priority inversion is possible.

	Regards
		Oliver


  reply	other threads:[~2003-07-27  6:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-24  3:00 System stalls using usb-storage Matthew Dharm
2003-07-27  6:24 ` Oliver Neukum [this message]
2003-07-27  6:35   ` [linux-usb-devel] " Matthew Dharm
2003-07-27  9:09     ` Peter Osterlund

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=200307270824.44851.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=mdharm-kernel@one-eyed-alien.net \
    /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;
as well as URLs for NNTP newsgroup(s).