public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Simon Kämpflein" <s.kaempflein@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: Question: IO priorities for disk writes?
Date: Tue, 14 Apr 2009 12:22:34 +0200	[thread overview]
Message-ID: <49E463EA.7070407@gmx.de> (raw)

Hello,

is there a possibility to prioritize disk writes? I tried ionice with
cfq scheduler, but as far as I understand and tested it only works for
reading.

Background:
I have one block device (SATA drive) and a data stream of about 6 MB/s
written by a process to files on the device (fs: reiserfs, fp opened
with O_DIRECT). The data is generated externally and processed and
buffered in memory by the process. So an average bandwidth of 6 MB/s for
writing is required. Another process reads the data in parallel, also
with about 6 MB/s.

So generally this is no problem when the system has nothing else to do.
But when other heavy disk writes occur, e.g. data written to the disk
via network (another extreme case: dd if=/dev/zero of=tmpfile), the
writing speed drops far below 6 MB/s.

So far I tried with no luck (io scheduler cfq):
- "ionice -c0 -n0" for the writer and reader
- "ionice -c3" for all pdflush threads

Is there any possibility to get this working with the current kernel
version? The performance of the other processes besides the
reader/writer is unimportant. Alternatively I'm thinking about using a
second block device for the writing/reading (maybe an USB-Stick?).

Best regards,
Simon


                 reply	other threads:[~2009-04-14 10:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=49E463EA.7070407@gmx.de \
    --to=s.kaempflein@gmx.de \
    --cc=linux-kernel@vger.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