public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: DervishD <lkml@dervishd.net>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: usb-storage nice value
Date: Fri, 18 May 2007 08:15:12 +0200	[thread overview]
Message-ID: <20070518061512.GA32730@DervishD> (raw)
In-Reply-To: <464CB2B3.50506@s5r6.in-berlin.de>

    Hi Stefan :)

 * Stefan Richter <stefanr@s5r6.in-berlin.de> dixit:
> DervishD wrote:
> >     I'm having problems when reading/writing to external USB harddisks:
> > my *internal* harddisk stalls from time to time, so watching a movie
> > while copying data is a PITA (well, if the movie is bad, the leaps help
> > a bit...).
> 
> If the internal harddisk is source or target of these copy operations...

    Not...
 
> ...
> > is there any way of modifying the pdflush behaviour so
> > large buffered writes are less "agressive" and doesn't block apps which
> > are just reading?
> 
> ...then switching to another IO scheduler might perhaps help.
> 
> # cat /sys/block/hda/queue/scheduler
> 
> # echo deadline > /sys/block/hda/queue/scheduler

    That's another thing I wanted to test, but I'm already using
"deadline" scheduler. How about changing "read_ahead_kb" to a much
higher value so there's plenty of data buffered? The problem seems to
be, according to Alan Cox, that my VIA mobo fills completely the PCI bus
when doing IO bursts, so I can take advantage of that "bug" and fill the
bus when reading.

    My only doubt is if it will affect performance negatively in other
usage patterns (e.g. while writing CD's, since the hard disk will take
the bus on each read operation, and will read more than the current 128
kB).

    Thanks a lot for your answer :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

  reply	other threads:[~2007-05-18  6:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-17 10:03 usb-storage nice value DervishD
2007-05-17 10:19 ` Alan Cox
2007-05-17 10:34   ` DervishD
2007-05-17 19:53 ` Stefan Richter
2007-05-18  6:15   ` DervishD [this message]
2007-05-18  6:33     ` Jan Engelhardt
2007-05-18  8:21       ` DervishD
2007-05-18  8:49         ` Jan Engelhardt
2007-05-18 11:13           ` DervishD
2007-05-18  9:46 ` Heikki Orsila
2007-05-18 11:12   ` DervishD

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=20070518061512.GA32730@DervishD \
    --to=lkml@dervishd.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stefanr@s5r6.in-berlin.de \
    /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