Subject: Re: Request for comments: sharing memory between user/kernel space
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 03/22/2007 14:57:21
> Depends on how the socket buffer is being handled. If we have the
> pending info sitting around in mbufs, this change won't do much.
> You're right that it won't save us anything.
> If however we copy the incoming packets into the buffer, we save an
> extra copy in the kernel. Yes, we still have a copy to userland, but
> we have one less copy in the kernel.
But doesn't that require either (a) exposing *all* network traffic to
the userland process or (b) knowing at DMA buffer setup time (ie, well
in advance) which packets are destined for that particular connection?
Now, (a) may be acceptable for some special-case applications, but the
discussion I've seen makes this sound as though it's something intended
for general-purpose use. And I think (b) is even less generally
suitable than (a) is....
Perhaps I'm misunderstanding something.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B