netmap/pkt-gen error

2012-08-28 Thread Khan
hi all, i am running FreeBSD 9.0R with netmap already in it. i compiled the pkt-gen.c with gcc in tools/tools/netmap. after i do ./pkt-gen -i eth0 -f tx -n 500111222 -l 60 -w 5 i get an error: -Unable to open /dev/netmap -Unable to register bge0 (renamed to eth0). i am using the default bge0

Re: netmap/pkt-gen error

2012-08-28 Thread Kurt Jaeger
Hi! i am running FreeBSD 9.0R with netmap already in it. i compiled the pkt-gen.c with gcc in tools/tools/netmap. after i do ./pkt-gen -i eth0 -f tx -n 500111222 -l 60 -w 5 i get an error: -Unable to open /dev/netmap -Unable to register bge0 (renamed to eth0). [...] any idea on the

Re: What is Fast task queue? (Was: How to understand what `swi5' kernel thread does?)

2012-08-28 Thread John Baldwin
On Monday, August 27, 2012 4:47:13 pm Lev Serebryakov wrote: Hello, John. You wrote 27 августа 2012 г., 20:26:03: What fast tasks are performed via this queue? Under network load it is main consumer of CPU. JB Certain NIC drivers perform much of their interrupt handling in that thread.

Re: netmap/pkt-gen error

2012-08-28 Thread Khan
hi again, i tired with v9.1RC1 but i still get the same error. does Netmap support Broadcom interfaces?? the supported interfaces on man page of netmap are em, ixgbe,re (only intel cards).. Is there some work going on regarding other nic's. How can i still use pkt-gen to send/receive pkts.? any

Re: netmap/pkt-gen error

2012-08-28 Thread Kurt Jaeger
Hi! hi again, i tired with v9.1RC1 but i still get the same error. does Netmap support Broadcom interfaces?? the supported interfaces on man page of netmap are em, ixgbe,re (only intel cards).. Then bge is probably not supported. Is there some work going on regarding other nic's.

Re: netmap/pkt-gen error

2012-08-28 Thread Luigi Rizzo
On Tue, Aug 28, 2012 at 06:56:07AM -0700, Khan wrote: hi again, i tired with v9.1RC1 but i still get the same error. does Netmap support Broadcom interfaces?? the supported interfaces on man page of netmap are em, ixgbe,re (only intel cards).. correct, netmap at the moment only supports

[PATCH] Add a -h flag to mv

2012-08-28 Thread John Baldwin
I have a use case at work where I need to be able to update a symlink that points to a directory atomically (so that it points to a new directory). To give a conrete example, suppose I have two directories 'foo' and 'bar', and a symlink 'a' that I wish to atomically flip from 'foo' to 'bar'.

Re: per file descriptor device callbacks ?

2012-08-28 Thread Luigi Rizzo
On Mon, Aug 27, 2012 at 12:27:54PM -0400, John Baldwin wrote: On Monday, August 27, 2012 3:55:47 am Andriy Gapon wrote: on 27/08/2012 10:34 Luigi Rizzo said the following: This requires to track calls to open/ioctl/poll/mmap/close. The difficulty i have is with mmap() and close(), because

Can't build FreeBSD-head with CLANG

2012-08-28 Thread Eir Nym
I can't build FreeBSD (GENERIC custom kernel) with clang. Build finishes for i386 and fails for amd64 for same kernels I have bsd box with following clang version: FreeBSD clang version 3.0 (branches/release_30 142614) 20111021 Target: x86_64-unknown-freebsd10.0 Thread model: posix I try to

Re: per file descriptor device callbacks ?

2012-08-28 Thread John Baldwin
On Tuesday, August 28, 2012 11:50:25 am Luigi Rizzo wrote: On Mon, Aug 27, 2012 at 12:27:54PM -0400, John Baldwin wrote: On Monday, August 27, 2012 3:55:47 am Andriy Gapon wrote: on 27/08/2012 10:34 Luigi Rizzo said the following: This requires to track calls to

Re: per file descriptor device callbacks ?

2012-08-28 Thread Konstantin Belousov
On Tue, Aug 28, 2012 at 12:40:29PM -0400, John Baldwin wrote: On Tuesday, August 28, 2012 11:50:25 am Luigi Rizzo wrote: On Mon, Aug 27, 2012 at 12:27:54PM -0400, John Baldwin wrote: On Monday, August 27, 2012 3:55:47 am Andriy Gapon wrote: on 27/08/2012 10:34 Luigi Rizzo said the

Re: per file descriptor device callbacks ?

2012-08-28 Thread John Baldwin
On Tuesday, August 28, 2012 1:26:06 pm Konstantin Belousov wrote: On Tue, Aug 28, 2012 at 12:40:29PM -0400, John Baldwin wrote: On Tuesday, August 28, 2012 11:50:25 am Luigi Rizzo wrote: On Mon, Aug 27, 2012 at 12:27:54PM -0400, John Baldwin wrote: On Monday, August 27, 2012 3:55:47 am

Re: per file descriptor device callbacks ?

2012-08-28 Thread Luigi Rizzo
On Tue, Aug 28, 2012 at 08:26:06PM +0300, Konstantin Belousov wrote: ... dev_clone() is rather gross and a lot harder to use than devfs_set_cdevpriv(). If you are fine with the inherent problems of the device pager (you can't ever make mappings go away), you can just assign each client a

Re: Can't build FreeBSD-head with CLANG

2012-08-28 Thread Dimitry Andric
On 2012-08-28 18:31, Eir Nym wrote: I can't build FreeBSD (GENERIC custom kernel) with clang. Build finishes for i386 and fails for amd64 for same kernels What is the error you were getting on amd64? I have bsd box with following clang version: FreeBSD clang version 3.0

Re: less aggressive contigmalloc ?

2012-08-28 Thread Alan Cox
On 08/27/2012 06:39, Luigi Rizzo wrote: On Mon, Aug 27, 2012 at 02:42:28AM -0500, Alan Cox wrote: ... this is dmesg when I add kdb_backtrace() at the start of vm_pageout_oom() The '... netmap_finalize_obj_allocator... are from my calls to contigmalloc, each one doing one-page allocations.

Re: Can't build FreeBSD-head with CLANG

2012-08-28 Thread Eir Nym
-- Eir Nym On 28 August 2012 22:49, Dimitry Andric d...@freebsd.org wrote: On 2012-08-28 18:31, Eir Nym wrote: I can't build FreeBSD (GENERIC custom kernel) with clang. Build finishes for i386 and fails for amd64 for same kernels What is the error you were getting on amd64? i386 never

Re: Panic on use of deleted route.

2012-08-28 Thread Gleb Smirnoff
Ian, On Mon, Aug 27, 2012 at 09:08:31PM +0200, Ian FREISLICH wrote: I I get a panic shortly after ppp(8) exits. I haven't been able to I get a crashdump from a recent -CURRENT system, so in that absence, I I'll include output from an older system. Interestingly, the route I partially persists

Re: Can't build FreeBSD-head with CLANG

2012-08-28 Thread Eir Nym
-- Eir Nym On 28 August 2012 23:51, Eir Nym eir...@gmail.com wrote: -- Eir Nym On 28 August 2012 22:49, Dimitry Andric d...@freebsd.org wrote: On 2012-08-28 18:31, Eir Nym wrote: I can't build FreeBSD (GENERIC custom kernel) with clang. Build finishes for i386 and fails for amd64 for

Re: Can't build FreeBSD-head with CLANG

2012-08-28 Thread Dimitry Andric
On 2012-08-28 21:51, Eir Nym wrote: On 28 August 2012 22:49, Dimitry Andric d...@freebsd.org wrote: On 2012-08-28 18:31, Eir Nym wrote: What is the error you were getting on amd64? i386 never failed, amd64 — always Please post the *exact* error message, otherwise I will not be able to help

Re: Can't build FreeBSD-head with CLANG

2012-08-28 Thread Eir Nym
-- Eir Nym On 29 August 2012 00:28, Dimitry Andric d...@freebsd.org wrote: On 2012-08-28 21:51, Eir Nym wrote: On 28 August 2012 22:49, Dimitry Andric d...@freebsd.org wrote: On 2012-08-28 18:31, Eir Nym wrote: What is the error you were getting on amd64? i386 never failed, amd64 —

Re: Can't build FreeBSD-head with CLANG

2012-08-28 Thread Dimitry Andric
On 2012-08-28 23:05, Eir Nym wrote: ... This one for example: cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions

Re: per file descriptor device callbacks ?

2012-08-28 Thread Konstantin Belousov
On Tue, Aug 28, 2012 at 01:38:13PM -0400, John Baldwin wrote: On Tuesday, August 28, 2012 1:26:06 pm Konstantin Belousov wrote: On Tue, Aug 28, 2012 at 12:40:29PM -0400, John Baldwin wrote: On Tuesday, August 28, 2012 11:50:25 am Luigi Rizzo wrote: On Mon, Aug 27, 2012 at 12:27:54PM

Re: per file descriptor device callbacks ?

2012-08-28 Thread Konstantin Belousov
On Tue, Aug 28, 2012 at 08:42:26PM +0200, Luigi Rizzo wrote: On Tue, Aug 28, 2012 at 08:26:06PM +0300, Konstantin Belousov wrote: ... dev_clone() is rather gross and a lot harder to use than devfs_set_cdevpriv(). If you are fine with the inherent problems of the device pager (you can't

Re: per file descriptor device callbacks ?

2012-08-28 Thread Luigi Rizzo
On Wed, Aug 29, 2012 at 07:12:40AM +0300, Konstantin Belousov wrote: On Tue, Aug 28, 2012 at 08:42:26PM +0200, Luigi Rizzo wrote: On Tue, Aug 28, 2012 at 08:26:06PM +0300, Konstantin Belousov wrote: ... dev_clone() is rather gross and a lot harder to use than devfs_set_cdevpriv(). If