memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Sergey Lyubka
Traffic analysis applications running on high-speed networks are using BPF to capture packet. However, on heavy traffic frequent context switches caused by read(2) from a BPF device is a overhead. I implemented a prototype module that stores captured packets in user mmap-able area. I want to desc

Re: How to build lint libraries, e.g. llib-lc.ln?

2004-06-14 Thread Mark Murray
Alexander Mueller writes: > when writing C applications I'd like to check them using lint. > Unfortunately FreeBSD comes with only "llib-lposix.ln" and > "llib-lstdc.ln" in "/usr/libdata/lint". Is there an easy, i.e. > automated, way to create lint libraries (e.g. llib-lc.ln) for > all the libs in

freebsd asm

2004-06-14 Thread José Nicolás Castellano
Hello to all, I'm proud to join this mailing, having posibilities to learn some new features of freebsd system. I have to mention i did some tests in asm from freebsd-devel and i get surprised, look at this: [demon]~$ uname -a FreeBSD demon.noconname.org 5.2.1-RELEASE-p4 FreeBSD 5.2.1-RELEASE-p4

RE: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Ed Maste
> The module is a netgraph node, called ng_mmq. mmq stands for > memory-mapped queue. The node has one hook, called "input". > When this hook is connected, > o memory buffer is allocated. size is controlled by the > debug.mmq_size sysctl. > o a device /dev/mmqX is created, where

Re: indent bugfix / added features

2004-06-14 Thread Chip Norkus
Followup: I was off most of the weekend, but I did find one bug and have corrected it. The new patch can be found at http://telekinesis.org/indent/indent.patch. I whipped up a simple script to test it over /usr/src and that is at http://telekinesis.org/indent/test.sh. I found that my patch

Re: freebsd asm

2004-06-14 Thread Peter Pentchev
On Mon, Jun 14, 2004 at 01:59:11PM +0200, Jos? Nicol?s Castellano wrote: > Hello to all, > > I'm proud to join this mailing, having posibilities to learn some new > features of freebsd system. > > I have to mention i did some tests in asm from freebsd-devel and i get > surprised, look at this: >

Re: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Sergey Lyubka
Hi Ed, > I did my benchmark by increasing the packet rate until I found > the point at which packets started to be dropped. A bit offtopic - what traffic generator you use ? > In my testing I found the call to microtime() to be quite > expensive. (It will vary depending on which timecounter is >

Re: freebsd asm

2004-06-14 Thread ari edelkind
[EMAIL PROTECTED] said this stuff: [...] > [demon]~$ cat hello.asm > %include 'system.inc' > section .data > holadb 'Hola', 0Ah > hbytes equ $-hola > section .text > global _start > _start: > pushdword hbytes > pushdword hola > pushdword stdout > sys.write > push

Re: freebsd asm

2004-06-14 Thread José Nicolás Castellano
- Original Message - > ... which doesn't exit, therefore your program accesses memory addresses > that aren't meant to supply program code, and it crashes. > > Freebsd system calls are generally accessed using interrupt vector 0x80. > The function that deals with this interrupt in the ker

RE: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Julian Elischer
On Mon, 14 Jun 2004, Ed Maste wrote: > > > > > Now, the questions: > > 1. is my interpretation of benchmark results correct? > > 2. if they are correct, why bpf is faster? > > 3. is it OK to have no mutexes for ringbuffer operations ? > don't forget that bpf is not copying the en

Re: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Bruce M Simpson
On Mon, Jun 14, 2004 at 10:15:14AM -0700, Julian Elischer wrote: > don't forget that bpf is not copying the entire packet, just the > header.. If you look at Sergey's benchmark.c, you will see that the snaplen was set to 32KB. BMS ___ [EMAIL PROTECTED]

Re: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Bruce M Simpson
On Mon, Jun 14, 2004 at 08:38:57AM -0400, Ed Maste wrote: > Hello Sergey. I haven't looked at your code, but I'll provide > some comments, having implemented a mmaped ringbuffer BPF > replacement myself. We've had some prior interest in this. Do you have patches? If so, I'd be more than happy t

FreeBSD or other BSD for no-MMU ARM processor ?

2004-06-14 Thread Gary Corcoran
Does anyone know if there is a port of FreeBSD, or any of the other BSDs (e.g. NetBSD) for that matter, which will run on an ARM processor which does NOT have an MMU (Memory Management Unit)? Thanks, Gary ___ [EMAIL PROTECTED] mailing list http://lists.fr

Re: indent bugfix / added features

2004-06-14 Thread Cyrille Lefevre
"Chip Norkus" <[EMAIL PROTECTED]> wrote > > I was off most of the weekend, but I did find one bug and have > corrected it. The new patch can be found at > http://telekinesis.org/indent/indent.patch. I whipped up a simple > script to test it over /usr/src and that is at > http://telekinesis.o

Re: FreeBSD or other BSD for no-MMU ARM processor ?

2004-06-14 Thread Peter Pentchev
On Mon, Jun 14, 2004 at 03:32:09PM -0400, Gary Corcoran wrote: > > Does anyone know if there is a port of FreeBSD, or any of the > other BSDs (e.g. NetBSD) for that matter, which will run on an > ARM processor which does NOT have an MMU (Memory Management Unit)? Your best bet would be http://www.