Re: [netmap] when does a packet in the netmap ring send out exactly

2017-11-20 Thread Vincenzo Maffione
Hi, Netmap version (tag v11.3 vs master) should be unrelated. Are you using ixgbe? In this case it may depend on the ixgbe driver version that netmap is using for patching. On github master you can change the version by modifying the ixgbe line in LINUX/default-config.mak.in_. Valid versions are

Re: swaping ring slots between NIC ring and Host ring does not always success

2017-11-20 Thread Xiaoye Sun
Hi, Recently I found another problem with netmap. I think this new problem could be related to the problems in this threads so I just post the new problem here. In my setup, I have a sender program having a netmap ring (a pair of RX/TX ring) for the NIC and a ring for the host stack. The sender p

Re: local_unbound, resolvconf, vpn

2017-11-20 Thread Alexander Zagrebin
Hi! Also I have to notice that there is another issue with the default local_unbound setup: by default unbound uses syslog for logging, but usually the local_unbound service starts before syslogd and so logging doesn't work until local_unbound will be reloaded. So it's looks reasonable to use log

Re: [netmap] when does a packet in the netmap ring send out exactly

2017-11-20 Thread Xiaoye Sun
Hi Luigi, Thanks! I was using the most recent netmap on Github and I believe the tail pointer only moves forward when there are less than half of the total slots available in the netmap ring. Then I switch to the version of v11.3 , it behaves as wha

[Bug 223767] tun device allows modification of if_type to any value causing a page fault and panic

2017-11-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223767 Mark Linimon changed: What|Removed |Added Keywords||patch Assignee|freebsd-b.

Re: [netmap] when does a packet in the netmap ring send out exactly

2017-11-20 Thread Luigi Rizzo
Hi, I think if you call the TXSYNC ioctl without advancing the head pointer, then the tail is advanced as much as possible. Cheers luigi On Mon, Nov 20, 2017 at 3:35 PM, Xiaoye Sun wrote: > Hi, > > I found that the tail pointer only moves when the ring has less than half > of the slots available

Re: [netmap] when does a packet in the netmap ring send out exactly

2017-11-20 Thread Xiaoye Sun
Hi, I found that the tail pointer only moves when the ring has less than half of the slots available. This prevents me from knowing the accurate time when the packet in a slot is processed. Is there a way to move the tail pointer as long as the packet in the slot is processed? Is this a configurab

Re: BPF packet pagesize limit

2017-11-20 Thread Kristof Provost
On 19 Nov 2017, at 19:49, Catalin Salgau wrote: I'm trying to address the limitation in (upstream) net/vblade that was brought up in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205164 This is related to writes larger than hw.pagesize but smaller than the configured MTU with BPF. I traced th

Re: Intel I210 (igb) sometimes consume all CPU on not-so-big traffic — need help!

2017-11-20 Thread Lev Serebryakov
On 20.11.2017 19:27, Ryan Stone wrote: > Please try the following patch. It should resolve your issue: > https://people.freebsd.org/~rstone/patches/e1000-9k.diff Thank you, I'll try! Really, typically I don't have this problem for ~week after reboot, so results will be later. -- // Lev Serebrya

Re: Intel I210 (igb) sometimes consume all CPU on not-so-big traffic — need help!

2017-11-20 Thread Ryan Stone
Please try the following patch. It should resolve your issue: https://people.freebsd.org/~rstone/patches/e1000-9k.diff ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "free

Re: local_unbound, resolvconf, vpn

2017-11-20 Thread Dag-Erling Smørgrav
Andriy Gapon writes: > Did you do the import of unbound 1.5.10 before or after 11.1? FreeBSD 10 has 1.5.7. FreeBSD 11 and 12 both have 1.5.10. > It seems that the chdir code was not present in the earlier version that we > had. It was added in 1.5.10, only a few hours after 1.5.9 was released

Re: local_unbound, resolvconf, vpn

2017-11-20 Thread Andriy Gapon
On 20/11/2017 16:43, Dag-Erling Smørgrav wrote: > Andriy Gapon writes: >> Dag-Erling Smørgrav writes: >>> Andriy Gapon writes: What and when is going to overwrite my modifications? >>> service local_unbound setup >> So, this is not going to happen automatically (after the initial setup) ? >

Re: local_unbound, resolvconf, vpn

2017-11-20 Thread Dag-Erling Smørgrav
Andriy Gapon writes: > Dag-Erling Smørgrav writes: > > Andriy Gapon writes: > > > What and when is going to overwrite my modifications? > > service local_unbound setup > So, this is not going to happen automatically (after the initial setup) ? > I have to manually run that command? Currently, y

Re: Intel I210 (igb) sometimes consume all CPU on not-so-big traffic — need help!

2017-11-20 Thread Lev Serebryakov
On 09.11.2017 23:17, Lev Serebryakov wrote: Looks like I know where it spent all time. I've used 'pmcstat' and got very suspicious flamegraph. Looks like problem is on codepath which lies through igb_refresh_mbufs m_getjcl uma_zalloc_arg [zone_alloc_item] zone_import zone_fetch_slab keg_fetch_s

Re: local_unbound, resolvconf, vpn

2017-11-20 Thread Andriy Gapon
On 08/11/2017 14:17, Alexander Zagrebin wrote: > This message appears because you are using chroot. > You have to edit /var/unbound/unbound.conf and add a trailing slash to > value of the 'directory' parameter: That did it! > server: > ... > chroot: /var/unbound > directory: /var/unbo

Re: local_unbound, resolvconf, vpn

2017-11-20 Thread Andriy Gapon
On 13/11/2017 15:55, Dag-Erling Smørgrav wrote: > Andriy Gapon writes: >> First, there is now an automatically generated /etc/resolvconf.conf. >> It has the following comment: >> # This file was generated by local-unbound-setup. >> # Modifications will be overwritten. >> Is that comment really tru