From: Andrea Arcangeli <andrea@suse.de>
To: Jeremy Higdon <jeremy@classic.engr.sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: changes to kiobuf support in 2.4.(?)4
Date: Thu, 2 Aug 2001 11:11:50 +0200 [thread overview]
Message-ID: <20010802111150.N29065@athlon.random> (raw)
In-Reply-To: <10108012254.ZM192062@classic.engr.sgi.com> <20010802084259.H29065@athlon.random> <andrea@suse.de> <10108020031.ZM229058@classic.engr.sgi.com> <20010802094517.I29065@athlon.random> <10108020110.ZM232959@classic.engr.sgi.com> <20010802102431.L29065@athlon.random> <andrea@suse.de> <10108020142.ZM233422@classic.engr.sgi.com>
In-Reply-To: <10108020142.ZM233422@classic.engr.sgi.com>; from jeremy@classic.engr.sgi.com on Thu, Aug 02, 2001 at 01:42:21AM -0700
On Thu, Aug 02, 2001 at 01:42:21AM -0700, Jeremy Higdon wrote:
> My understanding is that databases like to have multiple outstanding
> requests to the same file, which I believe falls into the the multiple
> file descriptors, one file case. So for us, it is interesting. Or
> do I misunderstand what you wrote?
the databases I know open the file without sharing the fd, so they're
fine even if we share the same iobuf from multiple fd. Infact even with
threads you can open the same file multiple times.
> Actually, I want to be clear on this . . .
>
> If I do
>
> dd if=/dev/raw1 . . . &
> dd if=/dev/raw1 . . . &
> wait
>
> with the O_DIRECT patch, do I get some slow path allocations?
That will work fine with the per-file iobuf ala O_DIRECT, no slow path
allocations will ever happen.
Even if you do:
clone()
parent:
fd = open("/dev/raw1")
write(fd)
read(fd)
child:
fd = open("/dev/raw1")
write(fd)
read(fd)
you won't run into slow path allocations.
> At 13000 IOPS, when allocating and freeing on every I/O request,
> the allocate/free overhead was approximately .6% on a 2 CPU system,
> where the total overhead was about 25%. So I would theoretically
> gain 3% (maybe a little better since there is locking involved) if
> I could avoid the alloc/free.
Ok good.
Andrea
next prev parent reply other threads:[~2001-08-02 9:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-02 5:55 changes to kiobuf support in 2.4.(?)4 Jeremy Higdon
2001-08-02 6:43 ` 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 [this message]
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=20010802111150.N29065@athlon.random \
--to=andrea@suse.de \
--cc=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