From: "Ed L. Cashin" <ecashin@coraid.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>, ak@suse.de
Subject: Re: ATA over ethernet swapping and obfuscated code
Date: Tue, 31 Jul 2007 12:21:40 -0400 [thread overview]
Message-ID: <20070731162140.GI3206@coraid.com> (raw)
In-Reply-To: <20070731152924.GM2087@elf.ucw.cz>
On Tue, Jul 31, 2007 at 05:29:24PM +0200, Pavel Machek wrote:
...
> Is the protocol documented somewhere? aoe.txt only points at
> HOWTO... aha, protocol is linked from wikipedia.
> http://www.coraid.com/documents/AoEr10.txt ... perhaps that should be
> linked from aoe.txt, too?
Perhaps. Most people reading the aoe.txt file won't need to refer to
the protocol itself, though.
> Hmm, aoe protocol is really trivial. Perhaps netpoll/netconsole
> infrastructure could be used to create driver good enough for
> swapping? (Ok, it would not neccessarily perform too well, but... we'd
> simply wait for the reply synchronously. It should be pretty simple).
I think that in general you still need a way to receive write
confirmations without allocating memory, and the driver can't provide
that mechanism. The problem is that when memory is scarce, writes of
dirty data must be able to complete, but because memory is scarce,
there might not be enough to receive and process packets write-reponse
packets, and the driver has no way of affecting the situation. That's
why I think a callback could work: The network layer could allow
storage drivers to register a callback that recognizes write
responses.
Usually the callback would not be used, but if free pages became so
scarce that network receives could not take place in a normal fashion,
the (zero or few) registered callbacks would be used to quickly
determine whether each packet was a write response. The distinction
is important, because write responses can result in the freeing of
pages.
When a storage driver's callback identified a write response, then a
reserved skb could be used to process the receive without allocating
memory. During the memory crunch packets that were not write
responses would be dropped just as they are already, but dirty pages
would be flushed. The mechanism would only take effect when free
pages were scarce.
It is easy to chat, though. Maybe someday I will test and submit a
patch that implements this mechanism, but I'm hoping that somebody
beats me to it. :)
--
Ed L Cashin <ecashin@coraid.com>
next prev parent reply other threads:[~2007-07-31 16:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-31 13:58 ATA over ethernet swapping and obfuscated code Pavel Machek
2007-07-31 14:46 ` Sébastien Dugué
2007-07-31 15:03 ` Ed L. Cashin
2007-07-31 15:29 ` Pavel Machek
2007-07-31 16:21 ` Ed L. Cashin [this message]
2007-07-31 22:27 ` ATA over ethernet swapping Pavel Machek
2007-08-01 9:18 ` Peter Zijlstra
2007-08-09 10:11 ` Pavel Machek
2007-08-13 7:45 ` Peter Zijlstra
2007-08-21 7:42 ` Pavel Machek
2007-08-03 12:13 ` ATA over ethernet swapping and obfuscated code Torsten Kaiser
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=20070731162140.GI3206@coraid.com \
--to=ecashin@coraid.com \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.