false alarm (Re: __builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ?)

2013-01-23 Thread Luigi Rizzo
On Wed, Jan 23, 2013 at 05:32:38PM +0100, Luigi Rizzo wrote: > Probably our compiler folks have some ideas on this... > > When doing netmap i found that on FreeBSD memcpy/bcopy was expensive, > __builtin_memcpy() was even worse, and so i ended up writing > my custom routine, (called pkt_copy() in

Re: ACPI panic on unplugging the power cord.

2013-01-23 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-01-22 12:56:29 -0500, Pawel Jakub Dawidek wrote: > I just upgraded to HEAD today and was wondering what will explode. > Now I know. > > When I unplug power cord from my laptop, ACPI panics. Pictures > here: > > http://people.freebsd.org/~pjd

/usr/bin/ld: final link failed: Bad value

2013-01-23 Thread AN
FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #30 r245800: Tue Jan 22 13:00:27 EST 2013 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 Could someone please comment on this. I am trying to build and install FireFox Nightly. This is not the Firefox version in the ports tree, it is fro

Re: __builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ?

2013-01-23 Thread Luigi Rizzo
On Wed, Jan 23, 2013 at 11:29 AM, Artem Belevich wrote: > On Wed, Jan 23, 2013 at 8:32 AM, Luigi Rizzo wrote: > > Probably our compiler folks have some ideas on this... > > > > When doing netmap i found that on FreeBSD memcpy/bcopy was expensive, > > __builtin_memcpy() was even worse, and so i e

Re: __builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ?

2013-01-23 Thread Luigi Rizzo
On Wed, Jan 23, 2013 at 11:26 AM, Dimitry Andric wrote: > Which compilation flags did you use to test this? When I compiled your > testcase program with clang 3.2, gcc 4.2 and gcc 4.7 at -O2, with all > other settings at their defaults, all three compilers just called libc's > memcpy() for the _

Re: panic after r244584

2013-01-23 Thread Justin T. Gibbs
On Jan 23, 2013, at 1:39 PM, Alexander Motin wrote: > On 23.01.2013 21:51, Jaakko Heinonen wrote: >> On 2013-01-23, Vitalij Satanivskij wrote: >>> VS> Jaakko Heinonen wrote: >>> VS> JH> > I see two possible solutions for the problem. >>> VS> JH> > >>> VS> JH> > 1) Replace non-printable, space an

Re: panic after r244584

2013-01-23 Thread Alexander Motin
On 23.01.2013 21:51, Jaakko Heinonen wrote: > On 2013-01-23, Vitalij Satanivskij wrote: >> VS> Jaakko Heinonen wrote: >> VS> JH> > I see two possible solutions for the problem. >> VS> JH> > >> VS> JH> > 1) Replace non-printable, space and '/' characters for example >> with '_'. >> VS> JH> >'/

Re: Adding more tools to be used by operator group members

2013-01-23 Thread Kevin Oberman
On Tue, Jan 22, 2013 at 10:38 AM, Adrian Chadd wrote: > Ah, the historical difference between shutdown -r and reboot > > > adrian > > On 22 January 2013 09:59, Gleb Smirnoff wrote: >> On Tue, Jan 22, 2013 at 02:03:12PM +0100, Olivier Cochard-Labb? wrote: >> O> There are only 2 useable tools b

Re: panic after r244584

2013-01-23 Thread Jaakko Heinonen
On 2013-01-23, Vitalij Satanivskij wrote: > VS> Jaakko Heinonen wrote: > VS> JH> > I see two possible solutions for the problem. > VS> JH> > > VS> JH> > 1) Replace non-printable, space and '/' characters for example with > '_'. > VS> JH> >'/' should be replaced anyway. > VS> JH> > > VS> JH>

Re: __builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ?

2013-01-23 Thread Artem Belevich
On Wed, Jan 23, 2013 at 8:32 AM, Luigi Rizzo wrote: > Probably our compiler folks have some ideas on this... > > When doing netmap i found that on FreeBSD memcpy/bcopy was expensive, > __builtin_memcpy() was even worse, and so i ended up writing > my custom routine, (called pkt_copy() in the progr

Re: __builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ?

2013-01-23 Thread Dimitry Andric
On 2013-01-23 17:32, Luigi Rizzo wrote: Probably our compiler folks have some ideas on this... When doing netmap i found that on FreeBSD memcpy/bcopy was expensive, __builtin_memcpy() was even worse, Which compilation flags did you use to test this? When I compiled your testcase program with

Re: Compilation error (pkgng)

2013-01-23 Thread Jason Evans
On Jan 23, 2013, at 12:14 AM, Alie Tan wrote: > Seems this check-in causing compilation error: > > http://freshbsd.org/commit/freebsd/r245828 > > -nonliteral -c /usr/src/usr.sbin/pkg_install/lib/pkgng.c -o pkgng.o > /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:45: error: expected ')' >rc

__builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ?

2013-01-23 Thread Luigi Rizzo
Probably our compiler folks have some ideas on this... When doing netmap i found that on FreeBSD memcpy/bcopy was expensive, __builtin_memcpy() was even worse, and so i ended up writing my custom routine, (called pkt_copy() in the program below). This happens with gcc 4.2.1, clang, gcc 4.6.4 I wa

Re: serial console not accepting input?

2013-01-23 Thread Dimitry Andric
On 2013-01-23 16:43, Eggert, Lars wrote: I'm embarrassed to ask this newbie question, but I'm at my wit's end: I've configured a serial console according to the handbook. I see the boot messages and get the login prompt. But at no point during the boot process does the console seem to accept a

serial console not accepting input?

2013-01-23 Thread Eggert, Lars
Hi, I'm embarrassed to ask this newbie question, but I'm at my wit's end: I've configured a serial console according to the handbook. I see the boot messages and get the login prompt. But at no point during the boot process does the console seem to accept any input, incl. when at the boot promp

Re: ZFS + usb in trouble?

2013-01-23 Thread Pawel Jakub Dawidek
On Wed, Jan 23, 2013 at 09:11:23PM +0900, Alexander Nedotsukov wrote: > And now both are failing, although zfs in a different way. Yes, but now we are sure this is not ZFS issue. Sequential read simply doesn't trigger the corruption, but ZFS access patterns do. The read errors you are seeing are d

Re: ZFS + usb in trouble?

2013-01-23 Thread Alexander Nedotsukov
On 23.01.2013, at 3:10, Pawel Jakub Dawidek wrote: > On Tue, Jan 22, 2013 at 11:47:29PM +0900, Alexander Nedotsukov wrote: >> Hi Pawel, >> >> Here what I did. >> >> # geli onetime -a hmac/sha1 -s 4096 /dev/da5 >> # dmesg | tail -15 >> wlan0: link state changed to UP >> ugen5.4: at usbus5 >> u

Re: deadlock between g_event and a thread on removing a device.

2013-01-23 Thread Kohji Okuno
Hi Konstantin, Thank you for your comment. I don't have any solution for this issue. And when a device is removed suddenly, there are other problems, I think. > On Fri, Jan 18, 2013 at 02:45:38PM +0900, Kohji Okuno wrote: >> Hi, >> >> When I removed a device (ex. /dev/da0), I have encounterd a

Re: deadlock between g_event and a thread on removing a device.

2013-01-23 Thread Konstantin Belousov
On Fri, Jan 18, 2013 at 02:45:38PM +0900, Kohji Okuno wrote: > Hi, > > When I removed a device (ex. /dev/da0), I have encounterd a > dead-lock between ``g_event'' thread and a thread that is opening > device file (I call this thread as A). > > Would you refer the following? > > When the device i

Re: r245838: make world fails: /usr/src/usr.bin/dtc/dtc.cc:196:24: error: use of undeclared identifier 'optarg', string arg = string(optarg);

2013-01-23 Thread David Chisnall
This appears to be caused by your addition of -stdlib=libc++ -std=c++11 to your CXXFLAGS. So, first of all, thank you for testing libc++! I tested with libc++ while I was developing dtc, but then was building with libstdc++ while I was removing extraneous includes. Unfortunately, libstdc++

r245838: make world fails: /usr/src/usr.bin/dtc/dtc.cc:196:24: error: use of undeclared identifier 'optarg', string arg = string(optarg);

2013-01-23 Thread O. Hartmann
Make world fails in /usr/src/usr.bin/dtc/dtc.cc with a lot of errors com[laining about an undeclared identifier: [...] ===> usr.bin/dtc (obj,depend,all,install) /usr/obj/usr/src/tmp/usr/src/usr.bin/dtc created for /usr/src/usr.bin/dtc rm -f .depend mkdep -f .depend -a-I/usr/obj/usr/src/tmp/leg

Compilation error (pkgng)

2013-01-23 Thread Alie Tan
Seems this check-in causing compilation error: http://freshbsd.org/commit/freebsd/r245828 -nonliteral -c /usr/src/usr.sbin/pkg_install/lib/pkgng.c -o pkgng.o /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:45: error: expected ')' rc = snprintf(pkgngpath, sizeof(pkgngpath) "%s/local.sqlite",

Re: kmem_map auto-sizing and size dependencies

2013-01-23 Thread Andre Oppermann
On 23.01.2013 00:22, Artem Belevich wrote: On Mon, Jan 21, 2013 at 1:06 PM, Pawel Jakub Dawidek wrote: On Fri, Jan 18, 2013 at 08:26:04AM -0800, m...@freebsd.org wrote: Should it be set to a larger initial value based on min(physical,KVM) space available? It needs to be smaller than the