Skip to contentSkip to conversation

Query about Tun/Tap Modules

DISCUSSION Peter T. Breuer 1 participant 1 message Sep 9, 2001

lore
Share & tools
lore
#0 lore raw

"Erik Andersen wrote:"

Quoted 6 lines · Shiva Raman Pandey
Quoted 3 lines

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