public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jeremy@classic.engr.sgi.com (Jeremy Higdon)
To: linux-kernel@vger.kernel.org
Subject: changes to kiobuf support in 2.4.(?)4
Date: Wed, 1 Aug 2001 22:55:00 -0700 (PDT)	[thread overview]
Message-ID: <10108012254.ZM192062@classic.engr.sgi.com> (raw)

I'm curious about the changes made to kiobuf support, apparently in
order to improve raw I/O performance.  I was reading through some old
posts circa early April, where I saw reference to a rawio-bench program.
Can someone explain what it does?

I have a driver that uses kiobufs to perform I/O.  Prior to these
changes, the kiobuf allocation and manipulation was very quick and
efficient.  It is now very slow.

The kiobuf part of the I/O request is as follows:

	alloc_kiovec()
	map_user_kiobuf()
	... do I/O, using kiobuf to store mappings ...
	kiobuf_wait_for_io()
	free_kiovec()

Now that the kiobuf is several KB in size, and 1024 buffer heads
are allocated, the alloc_kiovec part goes from a percent or so of
CPU usage to do 13000 requests per second to around 90% CPU usage
to do 3000 per second.

It looks as though the raw driver allocates one kiobuf at open time
(rather than on a per-request basis), but if two or more requests
are issued to a single raw device, it too devolves into the allocate
on every request strategy.

Before I go further, I'd appreciate if someone could confirm my
hypotheses and also explain rawio-bench (and maybe point me to some
source, if available).

thanks

jeremy

             reply	other threads:[~2001-08-02  5:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-02  5:55 Jeremy Higdon [this message]
2001-08-02  6:43 ` changes to kiobuf support in 2.4.(?)4 Andrea Arcangeli
2001-08-02  7:31   ` Jeremy Higdon
2001-08-02  7:45     ` Andrea Arcangeli
2001-08-02  8:10       ` Jeremy Higdon
2001-08-02  8:24         ` Andrea Arcangeli
2001-08-02  8:42           ` Jeremy Higdon
2001-08-02  9:11             ` Andrea Arcangeli
2001-08-02  9:25               ` Jeremy Higdon
2001-08-02 10:00                 ` Andrea Arcangeli
2001-08-02  8:23   ` Gerd Knorr
2001-08-03 11:32     ` Ingo Oeser
2001-08-03 12:45     ` Andrea Arcangeli

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=10108012254.ZM192062@classic.engr.sgi.com \
    --to=jeremy@classic.engr.sgi.com \
    --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