Re: Query about Tun/Tap Modules

Peter T. Breuer (ptb@it.uc3m.es)
Sun, 9 Sep 2001 18:13:43 +0200 (MET DST)


"Erik Andersen wrote:"
> On Sun Sep 09, 2001 at 08:58:56PM +0530, Shiva Raman Pandey wrote:
> >
> > Q2. What can be other ways, not very complicated to solve my purpose
> > instead of using Tun/Tap.
>
> The network block device can be used via loopback...

Not totally relaibly, however. It must deadlock when writing to a
server on the same machine, because when we run out of memory
we must free buffers by flushing pending writes on devices, which will
send packets for the nbd out to loaclhost and to the local server, where
they will take a buffer just prior to being written to disk ... and
of course they won't succeed because we are out of memory.

I would like the algorithms that free buffers to avoid the device
that caused the memory pressure. Since they can't do that, the
next best thing is to avoid it some of the time, which they
can do by avoiding everything randomly. Please add randomness under
stress, people.

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/