Re: HEADS UP: zerocopy bpf commits impending
- From: Robert Watson <rwatson@xxxxxxxxxxx>
- Date: Mon, 24 Mar 2008 14:15:51 +0000 (GMT)
On Mon, 24 Mar 2008, Christian S.J. Peron wrote:
I just want everyone to know that I have completed the zerocopy bpf commit. Please be on the "lookout" for any strange bpf related issues.
For people that want to test the new zerocopy bpf implementation, a patch can be found here:
http://people.freebsd.org/~csjp/pcap.1206364304.diff
Any comments, patches etc can be sent to Robert Watson (rwatson@) or myself.
FYI, right now there is a known issue in which only one of the two BPF buffers can be owned by user processes at a time. As a result, when acking one buffer, it's almost always the case that userspace will enter select() even though another buffer is essentially ready, leading to a system call being generated for each buffer even though that's undesirable. I'm working on some changing allowing both buffers to be owned by userspace at a time, but it will be a couple of weeks before that enters CVS. I believe that the current libpcap patches should keep working with that fine, although of course, we'll see. :-) The bpf.4 documentation is very careful to warn that applications should not assume that there are any invariants about the number of buffers assigned to userspace at a time.
Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: HEADS UP: zerocopy bpf commits impending
- From: Petri Helenius
- Re: HEADS UP: zerocopy bpf commits impending
- References:
- HEADS UP: zerocopy bpf commits impending
- From: Christian S.J. Peron
- Re: HEADS UP: zerocopy bpf commits impending
- From: Robert Watson
- Re: HEADS UP: zerocopy bpf commits impending
- From: Christian S.J. Peron
- HEADS UP: zerocopy bpf commits impending
- Prev by Date: Re: HEADS UP: zerocopy bpf commits impending
- Next by Date: Re: HEADS UP: zerocopy bpf commits impending
- Previous by thread: Re: HEADS UP: zerocopy bpf commits impending
- Next by thread: Re: HEADS UP: zerocopy bpf commits impending
- Index(es):
Relevant Pages
|
|