netdev
[Top] [All Lists]

Re: TCP IP Offloading Interface

To: Larry McVoy <lm@xxxxxxxxxxxx>
Subject: Re: TCP IP Offloading Interface
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Sun, 13 Jul 2003 17:24:14 -0700
Cc: lm@xxxxxxxxxxxx, roland@xxxxxxxxxxx, alan@xxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20030714002200.GA24697@xxxxxxxxxxxxxxxxx>
References: <ODEIIOAOPGGCDIKEOPILCEMBCMAA.alan@xxxxxxxxxxxxxxxx> <20030713004818.4f1895be.davem@xxxxxxxxxx> <52u19qwg53.fsf@xxxxxxxxxxx> <20030713160200.571716cf.davem@xxxxxxxxxx> <20030713233503.GA31793@xxxxxxxxxxxxxxxxx> <20030713164003.21839eb4.davem@xxxxxxxxxx> <20030713235424.GB31793@xxxxxxxxxxxxxxxxx> <20030713165323.3fc2601f.davem@xxxxxxxxxx> <20030714002200.GA24697@xxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Sun, 13 Jul 2003 17:22:00 -0700
Larry McVoy <lm@xxxxxxxxxxxx> wrote:

> Hey, maybe it isn't, but could you please quantify the cost of the VM 
> operations?  How hard is that?

Ok.

So the page is in a non-uptodate state, NFS would have it locked,
and anyone else trying to get at it would sleep.

This page we have currently is "dummy" in that it is only a place
holder in case we don't get a full page from the networking.

We have all the infrastructure to do everything up to this point.

Next, if the networking gave us a full page, we'd "replace"
the dummy page with this one, which would involve:

1) delete the dummy page from the lookup, insert the networking's
   page

2) arrange so that all sleepers on the dummy page will do a relookup
   and find the new page

And when we're done with the operation we wake everyone up.

I can't see any part of this turning out to be expensive.

<Prev in Thread] Current Thread [Next in Thread>