RES: Select() vs Netmap

2014-06-02 Thread Fred Pedrisa
Hello, The code is built in the top of kipfw code, even if you remove the call to the 'ipfw packet parser' and leave only the loop there to forward the packets from one port to another, the problem also happens :) Sincerely, Fred Pedrisa -Mensagem original- De: Fr

RES: Select() vs Netmap

2014-06-01 Thread Fred Pedrisa
Enviada em: domingo, 1 de junho de 2014 14:41 Para: Fred Pedrisa Cc: freebsd-current Assunto: Select() vs Netmap On Sunday, June 1, 2014, Fred Pedrisa > wrote: > Hey, guys. > > > > > > I'm currently experiencing a strange issue in my program (Using netmap). > > >

Select() vs Netmap

2014-06-01 Thread Fred Pedrisa
Hey, guys. I'm currently experiencing a strange issue in my program (Using netmap). Sometimes, when I call select() in a FD, it gets like 4~8 packets per event, however suddenly it drops to 1~2 packets per event, losing a lot of performance and increasing the number of select calls neces

RES: Thread Scheduler Priority

2014-05-30 Thread Fred Pedrisa
Hello, This is 'min' and 'max' for the default policy : Min : 0, Max : 103 In my system. -Mensagem original- De: owner-freebsd-curr...@freebsd.org [mailto:owner-freebsd-curr...@freebsd.org] Em nome de Ian Lepore Enviada em: sexta-feira, 30 de maio de 2014 23:50 P

RES: Thread Scheduler Priority

2014-05-30 Thread Fred Pedrisa
Any clue on this ? :( -Mensagem original- De: owner-freebsd-curr...@freebsd.org [mailto:owner-freebsd-curr...@freebsd.org] Em nome de Fred Pedrisa Enviada em: quinta-feira, 29 de maio de 2014 02:19 Para: 'Adrian Chadd' Cc: 'freebsd-current' Assunto: RES: Thread Sched

RES: RES: KQueue vs Select (NetMap)

2014-05-29 Thread Fred Pedrisa
etMap) On 29.05.2014 06:57, Fred Pedrisa wrote: > Hello, > > There are 4 threads, and a total of 32 FDs. What do you think ? > > -Mensagem original- > De: owner-freebsd-curr...@freebsd.org > [mailto:owner-freebsd-curr...@freebsd.org] Em nome de Adrian Chadd > Envia

RES: Thread Scheduler Priority

2014-05-28 Thread Fred Pedrisa
Hello, Yes. -Mensagem original- De: owner-freebsd-curr...@freebsd.org [mailto:owner-freebsd-curr...@freebsd.org] Em nome de Adrian Chadd Enviada em: quinta-feira, 29 de maio de 2014 02:18 Para: Fred Pedrisa Cc: freebsd-current Assunto: Re: Thread Scheduler Priority are you doing this

Thread Scheduler Priority

2014-05-28 Thread Fred Pedrisa
Hi, Guys. How can I adjust a certain thread to have the maximum system priority in the scheduler ? I've tried doing it this way : /* Set thread priority. */ if (pthread_getschedparam(ts[gnThre

RES: KQueue vs Select (NetMap)

2014-05-28 Thread Fred Pedrisa
Hello, There are 4 threads, and a total of 32 FDs. What do you think ? -Mensagem original- De: owner-freebsd-curr...@freebsd.org [mailto:owner-freebsd-curr...@freebsd.org] Em nome de Adrian Chadd Enviada em: quinta-feira, 29 de maio de 2014 01:52 Para: Fred Pedrisa Cc: freebsd-current

RES: KQueue vs Select (NetMap)

2014-05-28 Thread Fred Pedrisa
2014 01:46 Para: Fred Pedrisa Cc: Jan Bramkamp; freebsd-current Assunto: Re: KQueue vs Select (NetMap) The advantage is being able to include it in the rest of a kqueue IO loop where it's doing other things. -a On 28 May 2014 20:53, Fred Pedrisa wrote: > Hello, > > Yes, but kque

RES: KQueue vs Select (NetMap)

2014-05-28 Thread Fred Pedrisa
2014 00:30 Para: freebsd-current@freebsd.org Assunto: Re: KQueue vs Select (NetMap) On 29.05.2014 03:04, Fred Pedrisa wrote: > Hey Guys, > > > > How does kQueue performs over select with netmap ? You are asking for a comparison between apples and oranges. Netmap is an API for h

KQueue vs Select (NetMap)

2014-05-28 Thread Fred Pedrisa
Hey Guys, How does kQueue performs over select with netmap ? ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Cycle Count

2014-04-07 Thread Fred Pedrisa
Hi, guys. How can we get a precise cycle count since the computer has started AND the estimated number of cycles per second for the current core ? Sincerely, Fred Pedrisa ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org

RES: Regarding Netmap and Last Updates

2014-04-07 Thread Fred Pedrisa
do line rate on 10G NICs (14.88 Mpps), moves over 20 Mpps on VALE ports, and over 100 Mpps on netmap pipes." -Mensagem original- De: owner-freebsd-curr...@freebsd.org [mailto:owner-freebsd-curr...@freebsd.org] Em nome de Adrian Chadd Enviada em: segunda-feira, 7 de abril de 2014 16:22

RES: Regarding Netmap and Last Updates

2014-04-07 Thread Fred Pedrisa
da em: segunda-feira, 7 de abril de 2014 14:47 Para: Fred Pedrisa Cc: freebsd-current Assunto: Re: Regarding Netmap and Last Updates yup. it works fine. Just run it like: ./bridge -i netmap:ix0 -i netmap:ix1 or something. -a On 7 April 2014 06:22, Fred Pedrisa wrote: > Hi, guys. > > >

Prefetch()

2014-04-07 Thread Fred Pedrisa
Hi, guys. Does anyone knows what is the method : prefetch() used for ? Sincerely, Fred ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-un

Regarding Netmap and Last Updates

2014-04-07 Thread Fred Pedrisa
Hi, guys. I've saw that the 'netmap pipes' were introduced, in order to understand the new changes, I wanted to know if the latest bridge.c (zero copy) method, is already an usage example of the netmap pipes ? Sincerely, Fred ___ freebsd-curr

Regarding Netmap and Last Updates

2014-04-07 Thread Fred Pedrisa
Hi, guys. I've saw that the 'netmap pipes' were introduced, in order to understand the new changes, I wanted to know if the latest bridge.c (zero copy) method, is already an usage example of the netmap pipes ? Sincerely, Fred ___ freebsd-curr

Regarding Netmap and Last Updates

2014-04-07 Thread Fred Pedrisa
Hi, guys. I've saw that the 'netmap pipes' were introduced, in order to understand the new changes, I wanted to know if the latest bridge.c (zero copy) method, is already an usage example of the netmap pipes ? Sincerely, Fred ___ freebsd-curr