Re: 10.0-BETA1 i386 on VirtualBox

2013-11-04 Thread Konstantin Belousov
On Mon, Nov 04, 2013 at 08:53:41PM +0400, Gleb Smirnoff wrote: On Mon, Nov 04, 2013 at 06:38:25PM +0200, Konstantin Belousov wrote: K Also please show me the CPU features banner from the boot in the VB, K like this: I have already collected them all. See attaches. Legend: dmesg.bb

Re: 10.0-BETA1 i386 on VirtualBox

2013-11-03 Thread Konstantin Belousov
On Sun, Nov 03, 2013 at 05:46:01PM +0400, Gleb Smirnoff wrote: Maciej, Boris, On Sun, Nov 03, 2013 at 04:29:11PM +0400, Boris Bobrov wrote: B I traced this down to r248521: B svn log -r248521 B --- B - r248521 | kib

Re: libreadline rl_message() and building the same object file 6 times?

2013-10-30 Thread Konstantin Belousov
On Wed, Oct 30, 2013 at 11:19:49AM -0700, Sean Bruno wrote: On Wed, 2013-10-30 at 00:06 +0200, Konstantin Belousov wrote: Second, why on earth does a buildworld emit this warning 6 times? Its as though bmake things it needs to compile it repeatedly, and its not the only such time

Re: libreadline rl_message() and building the same object file 6 times?

2013-10-29 Thread Konstantin Belousov
On Tue, Oct 29, 2013 at 01:51:09PM -0700, Sean Bruno wrote: I *think* its safe to change this invocation of rl_message to omit the third argument, but I'm not 100%. Second, why on earth does a buildworld emit this warning 6 times? Its as though bmake things it needs to compile it

Re: newcons comming

2013-10-28 Thread Konstantin Belousov
On Mon, Oct 28, 2013 at 11:09:45AM +0200, Aleksandr Rybalko wrote: On Sat, 26 Oct 2013 15:37:25 -0400 Sean Bruno sean_br...@yahoo.com wrote: On Sat, 2013-10-26 at 22:32 +0300, Aleksandr Rybalko wrote: On Sat, 26 Oct 2013 10:45:32 +0200 d...@gmx.com wrote: Suppose that Newcons

Re: SVN r257228 breaks kernel build with gcc

2013-10-28 Thread Konstantin Belousov
On Mon, Oct 28, 2013 at 04:53:10PM -0400, Michael Butler wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 That is .. - --- busdma_bounce.o --- cc1: warnings being treated as errors In file included from /usr/src/sys/x86/x86/busdma_bounce.c:54:

Re: newcons comming

2013-10-25 Thread Konstantin Belousov
On Fri, Oct 25, 2013 at 04:04:10PM +0300, Aleksandr Rybalko wrote: On Fri, 25 Oct 2013 15:18:47 +0300 Aleksandr Rybalko r...@ddteam.net wrote: Hello fellow hackers! I finally reach the point when I can work with newcons instead of syscons on my laptop. Yes, I know it still buggy and

Re: CUREENT issue with ballon.c

2013-10-24 Thread Konstantin Belousov
On Thu, Oct 24, 2013 at 09:45:20PM +0100, Roger Pau Monn? wrote: On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monn? roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0,

Re: panic: wrong page state m 0xe00000027a9adb40 + savecore deadlock

2013-10-16 Thread Konstantin Belousov
On Wed, Oct 16, 2013 at 09:02:19AM +0100, Anton Shterenlikht wrote: panic: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/182999 db show pginfo 0xe0027d352600 page 0xe0027d352600 obj 0xe000128fda00 pidx 0x0 phys 0x275dc6000 q 255 hold 0 wire 1 af 0x0 of 0x0 f 0x0 act 0 busy 1

Re: panic: wrong page state m 0xe00000027a9adb40 + savecore deadlock

2013-10-16 Thread Konstantin Belousov
On Wed, Oct 16, 2013 at 02:55:26PM +0300, Konstantin Belousov wrote: On Wed, Oct 16, 2013 at 09:02:19AM +0100, Anton Shterenlikht wrote: panic: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/182999 db show pginfo 0xe0027d352600 page 0xe0027d352600 obj 0xe000128fda00 pidx 0x0

Re: ia64: panic: wrong page state m 0xe00000027fcc1900

2013-10-15 Thread Konstantin Belousov
On Tue, Oct 15, 2013 at 04:10:04PM +0100, Anton Shterenlikht wrote: This panic is always reproducible by starting nginx, and directing the browser to poudriere logs/bulk/ia64-default/latest/. From ddb, do 'show pginfo address of the page from the panic message'. pgpKqixxtbb2b.pgp

Re: [10.0-amd64 host and 9.2-i386 jail] cpio: Can't update time for...

2013-10-04 Thread Konstantin Belousov
On Fri, Oct 04, 2013 at 09:46:37PM +0400, Boris Samorodov wrote: 02.10.2013 23:12, Konstantin Belousov пишет: On Wed, Oct 02, 2013 at 10:18:44PM +0400, Boris Samorodov wrote: 02.10.2013 21:47, Konstantin Belousov пишет: On Wed, Oct 02, 2013 at 09:27:29PM +0400, Boris Samorodov wrote

Re: [10.0-amd64 host and 9.2-i386 jail] cpio: Can't update time for...

2013-10-02 Thread Konstantin Belousov
On Wed, Oct 02, 2013 at 09:27:29PM +0400, Boris Samorodov wrote: (CCing to the maintainer) Hi All, I've come across a problem and can't diagnose it. Please give me an advice how to proceed. I have a fresh CURRENT amd64 host with 9.2 (9.1 behaves the same) i386 jail. The command

Re: [10.0-amd64 host and 9.2-i386 jail] cpio: Can't update time for...

2013-10-02 Thread Konstantin Belousov
On Wed, Oct 02, 2013 at 10:18:44PM +0400, Boris Samorodov wrote: 02.10.2013 21:47, Konstantin Belousov пишет: On Wed, Oct 02, 2013 at 09:27:29PM +0400, Boris Samorodov wrote: (CCing to the maintainer) Hi All, I've come across a problem and can't diagnose it. Please give me an advice

Re: panic: rm_rlock: recursed on non-recursive rmlock mac_policy_rm @ /usr/src/sys/security/mac/mac_framework.c:198

2013-09-28 Thread Konstantin Belousov
On Sat, Sep 28, 2013 at 03:41:58PM +0400, Andrej Zverev wrote: Hello, I see following panic of 10.0-ALPHA3 r255906 (kgdb) #0 doadump (textdump=0) at pcpu.h:232 #1 0xc0521fb1 in db_dump (dummy=-1062244387, dummy2=0, dummy3=-1, dummy4=0xeb36b764 ) at /usr/src/sys/ddb/db_command.c:543

Re: r255873: ahcich7: Timeout on slot 0 port 0 FLOODING kernel messages

2013-09-26 Thread Konstantin Belousov
On Thu, Sep 26, 2013 at 03:40:26PM +0300, Sergey V. Dyatko wrote: On Thu, 26 Sep 2013 08:53:26 +0200 O. Hartmann ohart...@zedat.fu-berlin.de wrote: Rebooting into CURRENT r255873 floods the kernel messages with ahcich7: Timeout on slot 0 port 0 ahcich7: is cs 0001 ss

Re: restarting SYSCALL system call on amd64 loses arguments

2013-09-24 Thread Konstantin Belousov
On Tue, Sep 24, 2013 at 09:19:49PM +0200, Jilles Tjoelker wrote: On Tue, Sep 24, 2013 at 12:37:30AM +0300, Konstantin Belousov wrote: On Mon, Sep 23, 2013 at 10:26:13PM +0200, Tijl Coosemans wrote: Has anyone taken a look at this PR yet? http://www.freebsd.org/cgi/query-pr.cgi?pr=182161

Re: restarting SYSCALL system call on amd64 loses arguments

2013-09-23 Thread Konstantin Belousov
On Mon, Sep 23, 2013 at 10:26:13PM +0200, Tijl Coosemans wrote: Has anyone taken a look at this PR yet? http://www.freebsd.org/cgi/query-pr.cgi?pr=182161 This looks like a valid bug, but probably not a valid testcase. Let me elaborate. When a signal is delivered, return from the signal

Re: -ffunction-sections, -fdata-sections and -Wl,--gc-sections

2013-09-18 Thread Konstantin Belousov
On Tue, Sep 17, 2013 at 11:45:19PM +0200, Ed Schouten wrote: Hi Matthew, 2013/9/16 Matthew Fleming m...@freebsd.org: Would it be possible to enable this only for devd, init, and clang binaries? Or is it a matter of enabling it for library builds that are linked statically with the

Re: -ffunction-sections, -fdata-sections and -Wl,--gc-sections

2013-09-18 Thread Konstantin Belousov
On Wed, Sep 18, 2013 at 05:36:40PM +1000, Jan Mikkelsen wrote: On 18/09/2013, at 4:22 PM, Konstantin Belousov kostik...@gmail.com wrote: On Tue, Sep 17, 2013 at 11:45:19PM +0200, Ed Schouten wrote: [ ... ] Honestly, I think we can assume we'll never reach the point where all

Re: I386 jail on amd64 CURRENT core dump in libc?

2013-09-03 Thread Konstantin Belousov
On Tue, Sep 03, 2013 at 02:36:13PM +0300, Vitalij Satanivskij wrote: Hello. On fresh installed system - 10.0-CURRENT FreeBSD 10.0-CURRENT #3 r255173: Tue Sep 3 13:31:22 EEST 2013 With fresh i386 builded jail. I'm found some bug with core dumped uniq (/usr/bin/uniq) After

Re: I386 jail on amd64 CURRENT core dump in libc?

2013-09-03 Thread Konstantin Belousov
On Tue, Sep 03, 2013 at 08:25:29PM +0300, Vitalij Satanivskij wrote: KB KB Your installed libraries do not have proper debugging symbols. KB Since the issue seems to be in the compat32 layer, you may try to start KB with taking the ktrace of the failing program and see what syscall failed,

Re: 2 crashes.... (today's -CURRENT)

2013-08-25 Thread Konstantin Belousov
On Sun, Aug 25, 2013 at 01:56:55AM -0500, Larry Rosenman wrote: And a 4th: borg.lerctr.org dumped core - see /var/crash/vmcore.3 All the traces have little in common except a feel of the random memory corruption. Note that you are the only reporter of such mass panics, so the problem

Re: Still seeing random vmem(?) crashes

2013-08-17 Thread Konstantin Belousov
On Fri, Aug 16, 2013 at 02:27:08PM -0500, Larry Rosenman wrote: On 2013-08-16 10:05, Konstantin Belousov wrote: On Fri, Aug 16, 2013 at 09:51:31AM -0500, Larry Rosenman wrote: I'm still seeing random crashes. I have the vmcore as well Ideas? What if you remove any modules

Re: building i386 world on amd64 host: failed @svn

2013-08-16 Thread Konstantin Belousov
On Fri, Aug 16, 2013 at 02:33:29PM +0200, Dimitry Andric wrote: On Aug 15, 2013, at 21:38, Jung-uk Kim j...@freebsd.org wrote: On 2013-08-15 15:30:49 -0400, Konstantin Belousov wrote: On Thu, Aug 15, 2013 at 09:12:52PM +0200, Dimitry Andric wrote: On Aug 15, 2013, at 20:36, Konstantin

Re: Still seeing random vmem(?) crashes

2013-08-16 Thread Konstantin Belousov
On Fri, Aug 16, 2013 at 09:51:31AM -0500, Larry Rosenman wrote: I'm still seeing random crashes. I have the vmcore as well Ideas? What if you remove any modules not coming from the base system, does the problem still stay there ? pgpIBNS1OzP3a.pgp Description: PGP signature

Re: building i386 world on amd64 host: failed @svn

2013-08-15 Thread Konstantin Belousov
On Thu, Aug 15, 2013 at 08:13:34PM +0200, Dimitry Andric wrote: Alternatively, we could attempt to figure out why gcc doesn't want to inline those 64 bit builtins on FreeBSD. It seems to have no problem doing so on the first Linux box I tried... Does the linux box defaults to pentium or

Re: building i386 world on amd64 host: failed @svn

2013-08-15 Thread Konstantin Belousov
On Thu, Aug 15, 2013 at 09:12:52PM +0200, Dimitry Andric wrote: On Aug 15, 2013, at 20:36, Konstantin Belousov kostik...@gmail.com wrote: Does the linux box defaults to pentium or higher for -march ? 64 bit atomics cannot be implemented in usermode on i386 on processors which do not have

Re: Early drop to debugger with DEBUG_MEMGUARD

2013-08-12 Thread Konstantin Belousov
On Mon, Aug 12, 2013 at 02:44:35PM -0700, David Wolfskill wrote: On Mon, Aug 12, 2013 at 09:10:55AM -0700, Davide Italiano wrote: ... OK, I'm not sure I can make an immediate guess on where's the problem now (without access to my main workstation), so I think you need to wait tomorrow

Re: i386 panic

2013-08-12 Thread Konstantin Belousov
On Mon, Aug 12, 2013 at 12:43:02PM -0700, Sean Bruno wrote: http://people.freebsd.org/~sbruno/10_i386_vmfault.txt I can never tell if stuff like this is because I'm not nerfing the system RAM correctly or if this is i386 bit-rot. I set hw.physmem=2g in loader.conf to try and get the

Re: panic on boot with fresh current

2013-08-10 Thread Konstantin Belousov
On Sat, Aug 10, 2013 at 12:15:35PM -0500, Bryan Drewery wrote: On 8/10/2013 11:44 AM, Bryan Drewery wrote: On 8/10/2013 6:24 AM, Joel Dahl wrote: panic: witness_init: pending locks list is too small, increase WITNESS_PENDLIST I also get this. The last stable revision for me was r254150

Re: panic on boot with fresh current

2013-08-10 Thread Konstantin Belousov
On Sat, Aug 10, 2013 at 08:44:07PM +0300, Konstantin Belousov wrote: On Sat, Aug 10, 2013 at 12:15:35PM -0500, Bryan Drewery wrote: On 8/10/2013 11:44 AM, Bryan Drewery wrote: On 8/10/2013 6:24 AM, Joel Dahl wrote: panic: witness_init: pending locks list is too small, increase

Re: panic on boot with fresh current

2013-08-10 Thread Konstantin Belousov
On Sat, Aug 10, 2013 at 08:45:47PM +0300, Konstantin Belousov wrote: On Sat, Aug 10, 2013 at 08:44:07PM +0300, Konstantin Belousov wrote: On Sat, Aug 10, 2013 at 12:15:35PM -0500, Bryan Drewery wrote: On 8/10/2013 11:44 AM, Bryan Drewery wrote: On 8/10/2013 6:24 AM, Joel Dahl wrote

Re: crash with cpucontrol/microcode update : Today's -CURRENT

2013-08-10 Thread Konstantin Belousov
On Sat, Aug 10, 2013 at 02:06:10PM -0500, Larry Rosenman wrote: I'm getting the following @R254183: when I try to run the microcode_update. Just started with yesterday's -CURRENT. (kgdb) #0 doadump (textdump=value optimized out) at pcpu.h:236 #1 0x8051d6f0 in kern_reboot

Re: ldd runs linux programs

2013-08-04 Thread Konstantin Belousov
On Sun, Aug 04, 2013 at 12:17:34AM -0400, Mark Johnston wrote: I spent some time trying to figure out if there was any reason for this and didn't come up with anything. Does the patch below look ok? It just adds a couple of macros to set both the native and 32-bit compat variable. It works

Re: ldd runs linux programs

2013-08-01 Thread Konstantin Belousov
On Wed, Jul 31, 2013 at 10:12:31PM -0400, Mark Johnston wrote: On Mon, Jul 29, 2013 at 10:54:49PM +0200, Mateusz Guzik wrote: On Mon, Jul 29, 2013 at 11:56:25AM -0400, Mark Johnston wrote: 127276 suggests running the binary as is (which I don't like) and achieves this with a hacky way.

Re: Lenovo x220 - hangs on shutdown

2013-07-22 Thread Konstantin Belousov
On Sun, Jul 21, 2013 at 10:52:18PM +0200, Joel Dahl wrote: On Sun, Jul 21, 2013 at 07:12:33PM +0300, Konstantin Belousov wrote: On Sun, Jul 21, 2013 at 09:20:45AM +0200, Joel Dahl wrote: On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote: Hi, Yesterday I upgraded my

Re: Panic when starting X with Intel KMS

2013-07-22 Thread Konstantin Belousov
On Mon, Jul 22, 2013 at 12:43:56PM +0200, Gustau P??rez i Querol wrote: As a blind shot, try to revert r252653. r252652 works OK. r252653 panics. What if, instead of reverting r252653, apply the following: diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index 66f3b0c..78f07f7 100644

Re: Lenovo x220 - hangs on shutdown

2013-07-22 Thread Konstantin Belousov
On Mon, Jul 22, 2013 at 10:52:55AM -0700, Adrian Chadd wrote: Hi kib, Is there a wiki page or some other kind of documentation descibing how AMT works? It is Intel documentation for vPro. Setting up AMT on the motherboard is specific to the motherboard BIOS, you should look at the hardware

Re: Panic when starting X with Intel KMS

2013-07-21 Thread Konstantin Belousov
On Sat, Jul 20, 2013 at 01:20:56PM +0200, Oliver Pinter wrote: On 7/20/13, Gustau P?rez i Querol gpe...@entel.upc.edu wrote: Reading the backtrace I see this: panic: pmap_release: pmap resident count -398580 != 0 which comes from amd64/amd64/pmap.c:1936. I suspect that

Re: Lenovo x220 - hangs on shutdown

2013-07-21 Thread Konstantin Belousov
On Sun, Jul 21, 2013 at 09:20:45AM +0200, Joel Dahl wrote: On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote: Hi, Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it hangs when I do a shutdown from an xterm. The screen just goes black and the fan never

Re: Panic when starting X with Intel KMS

2013-07-21 Thread Konstantin Belousov
On Sun, Jul 21, 2013 at 11:31:34AM +0200, Gustau P?rez i Querol wrote: The issue happened somewhere before the process exit. Try the patch below, the idea is that your overflow count is really big, so the wrong-doer could cause underflow when acting. diff --git

Re: Filesystem wedges caused by r251446

2013-07-13 Thread Konstantin Belousov
On Sat, Jul 13, 2013 at 10:14:06AM +0200, Ian FREISLICH wrote: Konstantin Belousov wrote: On Fri, Jul 12, 2013 at 11:34:18PM +0200, Ian FREISLICH wrote: (kgdb) print runningbufreq $1 = 1 (kgdb) print runningbufspace $2 = 0 (kgdb) print lorunningspace $3 = 4587520 (kgdb

Re: Filesystem wedges caused by r251446

2013-07-13 Thread Konstantin Belousov
On Sat, Jul 13, 2013 at 06:39:28PM +0200, Ian FREISLICH wrote: Konstantin Belousov wrote: Yes. This state of affairs doesn't happen on r251445 and further testing on my side shows it doesn't hapen on all my amd64 servers. It appears that this particular server type (Dell R200) running

Re: Filesystem wedges caused by r251446

2013-07-12 Thread Konstantin Belousov
On Fri, Jul 12, 2013 at 08:11:36PM +0200, Ian FREISLICH wrote: John Baldwin wrote: On Thursday, July 11, 2013 6:54:35 am Ian FREISLICH wrote: John Baldwin wrote: On Thursday, July 04, 2013 5:03:29 am Ian FREISLICH wrote: Konstantin Belousov wrote: Care to provide any

Re: Filesystem wedges caused by r251446

2013-07-12 Thread Konstantin Belousov
On Fri, Jul 12, 2013 at 11:34:18PM +0200, Ian FREISLICH wrote: (kgdb) print runningbufreq $1 = 1 (kgdb) print runningbufspace $2 = 0 (kgdb) print lorunningspace $3 = 4587520 (kgdb) print hirunningspace $4 = 4194304 This is extremely weird. The hirunningspace is less then lorunningspace,

Re: hacking - aio_sendfile()

2013-07-11 Thread Konstantin Belousov
On Wed, Jul 10, 2013 at 04:36:23PM -0700, Adrian Chadd wrote: Hiya, I've started writing an aio_sendfile() syscall. http://people.freebsd.org/~adrian/ath/20130710-aio-sendfile-3.diff Yes, the diff is against -HEAD and not stable/9. It's totally horrible, hackish and likely bad. I've

Re: hacking - aio_sendfile()

2013-07-11 Thread Konstantin Belousov
On Thu, Jul 11, 2013 at 01:37:19AM -0700, Adrian Chadd wrote: Hiya, I'm more interested in the API than the implementation at the moment. Yes, you're right - it should eventually be driven using disk io completion upcalls which triggers the push of data into the socket buffer. I totally

Re: hacking - aio_sendfile()

2013-07-11 Thread Konstantin Belousov
On Thu, Jul 11, 2013 at 02:39:00AM -0700, Adrian Chadd wrote: On 11 July 2013 02:36, Konstantin Belousov kostik...@gmail.com wrote: No, it is not disk I/O which is problematic there. It is socket I/O e.g. wait for the socket buffers lomark in the kern_sendfile() which causes unbounded

Re: hacking - aio_sendfile()

2013-07-11 Thread Konstantin Belousov
On Thu, Jul 11, 2013 at 11:44:32AM -0700, Scott Long wrote: On Jul 10, 2013, at 11:17 PM, Konstantin Belousov kostik...@gmail.com wrote: On Wed, Jul 10, 2013 at 04:36:23PM -0700, Adrian Chadd wrote: Hiya, I've started writing an aio_sendfile() syscall. http://people.freebsd.org

Re: hacking - aio_sendfile()

2013-07-11 Thread Konstantin Belousov
On Thu, Jul 11, 2013 at 12:04:57PM -0700, Scott Long wrote: On Jul 11, 2013, at 11:48 AM, Konstantin Belousov kostik...@gmail.com wrote: On Thu, Jul 11, 2013 at 11:44:32AM -0700, Scott Long wrote: On Jul 10, 2013, at 11:17 PM, Konstantin Belousov kostik...@gmail.com wrote

Re: Filesystem wedges caused by r251446

2013-07-04 Thread Konstantin Belousov
On Thu, Jul 04, 2013 at 09:21:11AM +0200, Ian FREISLICH wrote: Hi I've been experiencing process wedges writing files. It occurs reliably under heavy IO activity, perhaps with large files but I'm not entirely sure what the trigger is. The symptom is that during an installworld, it

Re: r248583 Kernel panic: negative refcount 0xfffffe0031b59168

2013-06-30 Thread Konstantin Belousov
On Sun, Jun 30, 2013 at 05:21:42PM +1000, Kubilay Kocak wrote: I'm seeing what I believe is related panic, reliably being generated by the Python regression test suite on a newly created FreeBSD 10-CURRENT buildbot. Symptoms first seen in an freebsd.org FTP snapshot dated Thu May 30

Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory

2013-06-23 Thread Konstantin Belousov
On Sat, Jun 22, 2013 at 04:37:24PM -1000, Jeff Roberson wrote: On Fri, 21 Jun 2013, Zbyszek Bodek wrote: On 21.06.2013 01:56, Jeff Roberson wrote: On Thu, 20 Jun 2013, Jeff Roberson wrote: On Wed, 19 Jun 2013, Zbyszek Bodek wrote: Hello, I've been trying to compile the kernel on

Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory

2013-06-23 Thread Konstantin Belousov
On Sun, Jun 23, 2013 at 12:32:20PM +0400, Ruslan Bukin wrote: On Sun, Jun 23, 2013 at 09:57:06AM +0300, Konstantin Belousov wrote: I don't really see a lot of wasted memory in the zones. There is certainly some. Can you give me sysctl vm from both a working and non-working kernel

Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory

2013-06-23 Thread Konstantin Belousov
On Sun, Jun 23, 2013 at 06:43:46PM +0400, Ruslan Bukin wrote: On Sun, Jun 23, 2013 at 05:32:48PM +0300, Konstantin Belousov wrote: On Sun, Jun 23, 2013 at 12:32:20PM +0400, Ruslan Bukin wrote: On Sun, Jun 23, 2013 at 09:57:06AM +0300, Konstantin Belousov wrote: I don't really see a lot

Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory

2013-06-23 Thread Konstantin Belousov
On Sun, Jun 23, 2013 at 08:44:25PM +0400, Ruslan Bukin wrote: On Sun, Jun 23, 2013 at 07:16:17PM +0300, Konstantin Belousov wrote: On Sun, Jun 23, 2013 at 06:43:46PM +0400, Ruslan Bukin wrote: Trying to mount root from ufs:/dev/da0 []... WARNING: / was not properly dismounted

Re: dialog4ports crashing in head recently

2013-06-23 Thread Konstantin Belousov
On Sun, Jun 23, 2013 at 01:53:24PM -0700, Peter Wemm wrote: On Sun, Jun 23, 2013 at 1:36 PM, Nathan Whitehorn nwhiteh...@freebsd.org wrote: On 06/23/13 14:52, Dan Mack wrote: dialog4ports has been crashing on all of my systems for about the last week. I rebuilt it with debug symbols and

Re: Are pthread_setcancelstate() and pthread_setcanceltype() cancellation points?

2013-06-18 Thread Konstantin Belousov
On Tue, Jun 18, 2013 at 06:15:56PM +0900, Kohji Okuno wrote: Hi, This is newer document. http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_05_02 Hi, I have a question. Are pthread_setcancelstate() and pthread_setcanceltype() cancellation

Re: [drm2][panic] Running XOrg with SNA enabled causes system panic after few hours on G33

2013-06-18 Thread Konstantin Belousov
On Wed, Jun 19, 2013 at 01:11:19AM +0400, Oleg Sidorkin wrote: On Sun, Jun 16, 2013 at 6:27 PM, Konstantin Belousov kostik...@gmail.com wrote: On Sun, Jun 16, 2013 at 06:04:39PM +0400, Oleg Sidorkin wrote: Thanks for the patch. I've adapted the proposed patch for stable/9 and it is running

Re: A PRIV_* flag for /dev/mem?

2013-06-16 Thread Konstantin Belousov
On Sat, Jun 15, 2013 at 05:23:50PM -0600, Jamie Gritton wrote: Index: sys/dev/mem/memdev.c === --- sys/dev/mem/memdev.c (revision 251793) +++ sys/dev/mem/memdev.c (working copy) @@ -67,8 +67,14 @@ { int error =

Re: [drm2][panic] Running XOrg with SNA enabled causes system panic after few hours on G33

2013-06-16 Thread Konstantin Belousov
Mirgorodskiy artyom.mirgorod...@gmail.com wrote: I can't apply patch On Saturday 15 June 2013 21:48:08 Konstantin Belousov wrote: On Sat, Jun 15, 2013 at 09:46:02PM +0300, Artyom Mirgorodskiy wrote: Can you please also create patch for -current? It is for current. Code in stable/9

Re: USB Keyboard not worked on current (r251681)

2013-06-15 Thread Konstantin Belousov
On Sat, Jun 15, 2013 at 09:34:59AM +0200, Hans Petter Selasky wrote: It is some error code from busdma. This is not helpful, obviously. We need to know exactly what call failed, with what parameters together with the values from the tag. Then the hypothesis about the system state could be made

Re: copyin()/copyout() constraints ?

2013-06-15 Thread Konstantin Belousov
On Sat, Jun 15, 2013 at 01:26:10PM +0200, Luigi Rizzo wrote: With indirect buffers in netmap/vale, i can eliminate the A-B copy, and do A-C with a copyin in the kernel of the host. But the per-packet budget is minuscule, and i am afraid that doing an unconditional vslock() on each buffer is

Re: [drm2][panic] Running XOrg with SNA enabled causes system panic after few hours on G33

2013-06-15 Thread Konstantin Belousov
On Sat, Jun 15, 2013 at 09:46:02PM +0300, Artyom Mirgorodskiy wrote: Can you please also create patch for -current? It is for current. Code in stable/9 should be identical though. pgp78Kyej0eyX.pgp Description: PGP signature

Re: [drm2][panic] Running XOrg with SNA enabled causes system panic after few hours on G33

2013-06-14 Thread Konstantin Belousov
On Fri, Jun 14, 2013 at 10:16:15AM +0300, Artyom Mirgorodskiy wrote: Thank you! This patch also solve my issue (unable shutdown): http://lists.freebsd.org/pipermail/freebsd-current/2013-May/042011.html On Tuesday 11 June 2013 12:34:16 Oleg Sidorkin wrote: Hello. I'm running recent

Re: USB Keyboard not worked on current (r251681)

2013-06-14 Thread Konstantin Belousov
On Fri, Jun 14, 2013 at 12:41:28PM +0300, Sergey V. Dyatko wrote: On Fri, 14 Jun 2013 11:36:56 +0200 Hans Petter Selasky h...@bitfrost.no wrote: See this thread and solution Supermicro 6027R-N3RF+head, usb trouble It was 'fixed' by r251282, but I see r251681 on subject :) added kib@ to

Re: copyin()/copyout() constraints ?

2013-06-12 Thread Konstantin Belousov
On Wed, Jun 12, 2013 at 08:01:15PM +0200, Luigi Rizzo wrote: hi, is it possible to run copyin() or copyout() in one of these cases: 1. while holding a spinlock 2. while holding a regular mutex/lock 3. while holding a read lock (on an RWLOCK or RMLOCK) 4. while holding a write lock (on an

cc -m32 on amd64

2013-06-11 Thread Konstantin Belousov
This is a public service announcement that for some time already, the cc -m32 is functional on HEAD amd64. I believe that all headers important for the usermode application compilation from the base system, were converted to providing ILP32/LP64 correct definitions on x86. This was mostly done by

Re: Recurring panic

2013-06-05 Thread Konstantin Belousov
On Wed, Jun 05, 2013 at 01:50:43PM +0400, Gleb Smirnoff wrote: On Wed, Jun 05, 2013 at 10:18:21AM +0200, Ian FREISLICH wrote: I I have the following recurring panic on all my heavily network I loaded -CURRENT routers. The current process is always different. I I Gleb, can you please chime

Re: Supermicro 6027R-N3RF+head, usb trouble

2013-06-01 Thread Konstantin Belousov
On Thu, May 30, 2013 at 07:15:39AM -0500, Bryan Drewery wrote: On 5/30/2013 12:07 AM, Konstantin Belousov wrote: On Wed, May 29, 2013 at 07:45:39AM -0500, Bryan Drewery wrote: On 5/29/2013 7:16 AM, Bryan Drewery wrote: On 5/29/2013 12:33 AM, Sergey V. Dyatko wrote: On Tue, 28 May 2013 13

Re: issue with libthr?

2013-06-01 Thread Konstantin Belousov
On Sat, Jun 01, 2013 at 12:54:14AM -0700, Waitman Gobble wrote: Hi, I'm getting a ton of core dumps from Python and any software that uses Python, ie has USE_PYTHON_BUILD=yes in Makefile. hundreds of msgs in dmesg: pid 36637 (seamonkey), uid 1001: exited on signal 11 (core dumped) pid

Re: issue with libthr?

2013-06-01 Thread Konstantin Belousov
On Sat, Jun 01, 2013 at 09:03:01PM -0700, Waitman Gobble wrote: On Sat, 1 Jun 2013 11:14:46 -0700 (PDT), Waitman Gobble uzi...@da3m0n8t3r.com wrote: On Sat, 1 Jun 2013 20:44:00 +0300, Konstantin Belousov kostik...@gmail.com wrote: You cannot even guess what is going on without

Re: Supermicro 6027R-N3RF+head, usb trouble

2013-05-29 Thread Konstantin Belousov
On Wed, May 29, 2013 at 07:45:39AM -0500, Bryan Drewery wrote: On 5/29/2013 7:16 AM, Bryan Drewery wrote: On 5/29/2013 12:33 AM, Sergey V. Dyatko wrote: On Tue, 28 May 2013 13:20:53 -0500 Bryan Drewery bdrew...@freebsd.org wrote: On 4/21/2013 2:38 PM, Sergey V. Dyatko wrote: Hi,

Re: FreeBSD-HEAD gets stuck on vnode operations

2013-05-27 Thread Konstantin Belousov
On Mon, May 27, 2013 at 12:22:54AM +0200, Jilles Tjoelker wrote: On Sun, May 26, 2013 at 10:52:07PM +0200, Roger Pau Monn? wrote: On 26/05/13 22:20, Jilles Tjoelker wrote: Instead of a pause() that may be too short or too long, how about waiting for the necessary lock? In other words,

Re: FreeBSD-HEAD gets stuck on vnode operations

2013-05-27 Thread Konstantin Belousov
On Mon, May 27, 2013 at 10:19:51AM +0200, Roger Pau Monn? wrote: On 27/05/13 08:07, Konstantin Belousov wrote: On Mon, May 27, 2013 at 12:22:54AM +0200, Jilles Tjoelker wrote: On Sun, May 26, 2013 at 10:52:07PM +0200, Roger Pau Monn? wrote: On 26/05/13 22:20, Jilles Tjoelker wrote

Re: copyin+copyout in one step ?

2013-05-27 Thread Konstantin Belousov
On Tue, May 28, 2013 at 01:38:01AM +0200, Luigi Rizzo wrote: Hi, say a process P1 wants to use the kernel to copy the content of a buffer SRC (in its user address space) to a buffer DST (in the address space of another process P2), and assume that P1 issues the request to the kernel when P2

Re: Read-triggered corruption of swap backed MD devices

2013-05-24 Thread Konstantin Belousov
On Fri, May 24, 2013 at 12:19:44PM +1000, Lawrence Stewart wrote: Hi all, I tracked the cause of a colleague's nanobsd image creation problem to what appears to be some nasty behaviour with swap-backed MD devices. I've verified the behaviour exists on three separate systems running

Re: tws(4) kernel panic on boot

2013-05-23 Thread Konstantin Belousov
On Wed, May 22, 2013 at 11:08:50AM -0700, Andreas Turriff wrote: On 5/21/2013 9:25 AM, Andreas Turriff wrote: On 5/21/2013 5:33 AM, Konstantin Belousov wrote: On Mon, May 20, 2013 at 07:09:41PM -0700, Andreas Turriff wrote: On migrating one of my servers to -current, I discovered

Re: tws(4) kernel panic on boot

2013-05-23 Thread Konstantin Belousov
On Wed, May 22, 2013 at 11:37:33PM -0700, Andreas Turriff wrote: I've been running that kernel all day, rebuilding userland (ports) on a 4-drive ZFS RAID-Z on that controller, and not seen a single crash, slowdown, hiccup or untoward log message. Thank you for the confirmation, I will commit

Re: Fatal trap 3: breakpoint instruction fault

2013-05-22 Thread Konstantin Belousov
On Thu, May 23, 2013 at 10:25:24AM +0700, Erich Dollansky wrote: Hi, I updated my system over night. It suddenly reboots and I find some 20 entries like this in /var/log/message: May 23 10:05:28 X220 kernel: Fatal trap 3: breakpoint instruction fault while in kernel mode May 23 10:05:28

Re: tws(4) kernel panic on boot

2013-05-21 Thread Konstantin Belousov
On Mon, May 20, 2013 at 07:09:41PM -0700, Andreas Turriff wrote: On migrating one of my servers to -current, I discovered that the tws driver panics on boot; I will follow up with a full backtrace once I have a chance to extract it. In the meantime, there is a PR about a very similar error

Re: [head tinderbox] failure on mips64/mips

2013-05-19 Thread Konstantin Belousov
On Sun, May 19, 2013 at 01:17:54PM +0200, Dimitry Andric wrote: On May 19, 2013, at 04:31, Adrian Chadd adr...@freebsd.org wrote: On 18 May 2013 18:40, FreeBSD Tinderbox tinder...@freebsd.org wrote: TB --- 2013-05-19 00:28:08 - tinderbox 2.10 running on freebsd-current.sentex.ca [...]

Re: A PRIV_* flag for /dev/mem?

2013-05-18 Thread Konstantin Belousov
On Fri, May 17, 2013 at 01:14:23PM -0600, Jamie Gritton wrote: I'm considering Alexander Leidinger's patch to make X11 work inside a jail (http://leidinger.net/FreeBSD/current-patches/0_jail.diff). It allows a jail to optionally have access to /dev/io and DRI (provided the requisite device

Fix amd64 ddb hardware watchpoints for SMP

2013-05-16 Thread Konstantin Belousov
The ddb use of hardware watchpoints on the x86 architectures is known to be lacking. There are at least two known problems. One is the improper interaction with the user-mode debuggers which use debug registers. Another is that ddb only loads the debug registers for the watchpoint into the CPU

Re: sysvshm: replace Giant with a local sx lock

2013-05-15 Thread Konstantin Belousov
On Tue, May 14, 2013 at 10:13:05PM +0200, Mateusz Guzik wrote: On Tue, Apr 23, 2013 at 11:36:21PM +0200, Mateusz Guzik wrote: On Tue, Apr 23, 2013 at 11:55:32PM +0300, Konstantin Belousov wrote: On Tue, Apr 23, 2013 at 10:38:23PM +0200, Mateusz Guzik wrote: I would like to replace Giant

Re: FreeBSD-HEAD gets stuck on vnode operations

2013-05-14 Thread Konstantin Belousov
On Tue, May 14, 2013 at 06:08:45PM +0200, Roger Pau Monn? wrote: On 13/05/13 17:00, Konstantin Belousov wrote: On Mon, May 13, 2013 at 04:33:04PM +0200, Roger Pau Monn? wrote: On 13/05/13 13:18, Roger Pau Monn? wrote: Thanks for taking a look, I would like to explain this a little bit

Re: FreeBSD-HEAD gets stuck on vnode operations

2013-05-13 Thread Konstantin Belousov
On Mon, May 13, 2013 at 04:33:04PM +0200, Roger Pau Monn? wrote: On 13/05/13 13:18, Roger Pau Monn? wrote: The VM can be stuck in this state for quite some time, it generally I would like to explain this a little bit more, the syncer process doesn't get blocked on the _mtx_trylock_flags_

Re: Kernel build error in hwpmc with system GNU cc

2013-05-02 Thread Konstantin Belousov
On Thu, May 02, 2013 at 04:12:36PM +0200, Davide Italiano wrote: On Thu, May 2, 2013 at 3:42 PM, Andrey Chernov a...@freebsd.org wrote: On 02.05.2013 14:06, Davide Italiano wrote: /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_core.c:1935: warning: 'map' may be used uninitialized in this

Re: sysvshm: replace Giant with a local sx lock

2013-04-23 Thread Konstantin Belousov
On Tue, Apr 23, 2013 at 10:38:23PM +0200, Mateusz Guzik wrote: Hello, I would like to replace Giant with a local sx lock in sysvshm code. Looked really straightforward so maybe I missed something. At very least, the shmget_existing() is no longer functional. The sx is owned around tsleep(),

Re: amd64 buildworld lib32 flags fail

2013-04-21 Thread Konstantin Belousov
On Sun, Apr 21, 2013 at 11:27:55AM +0200, Jeremie Le Hen wrote: Hi Ian, On Sun, Apr 21, 2013 at 11:08:41AM +0200, Ian FREISLICH wrote: -- Rebuilding the temporary build tree

Re: panic when booting HEAD on i386

2013-04-21 Thread Konstantin Belousov
On Sun, Apr 21, 2013 at 01:57:03PM +0800, Ganbold Tsagaankhuu wrote: On Sat, Apr 20, 2013 at 11:21 PM, Konstantin Belousov kostik...@gmail.comwrote: On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote: Hi, I'm trying to boot HEAD after updating, but unfortunately

Re: panic when booting HEAD on i386

2013-04-20 Thread Konstantin Belousov
On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote: Hi, I'm trying to boot HEAD after updating, but unfortunately it panics with following message: panic: kmem_suballoc: bad status return of 3. I was only able to get image of the panic.

Re: panic during transition to multi-user mode @r249303 [i386]

2013-04-09 Thread Konstantin Belousov
On Tue, Apr 09, 2013 at 10:26:53AM -0700, Manfred Antar wrote: More info Break to debugger starts here: add net default: gateway 192.168.0.1 add net :::0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 add net fe80::: gateway ::1 add net ff02::: gateway ::1 Waiting for bge0 to

Re: panic at serial boot

2013-04-03 Thread Konstantin Belousov
On Tue, Apr 02, 2013 at 11:06:06PM +0200, m...@kernel32.de wrote: Hi again, Am 2013-04-02 21:52, schrieb Konstantin Belousov: On Tue, Apr 02, 2013 at 08:23:20PM +0200, m...@kernel32.de wrote: Try breaking into the debugger and see where it progresses. To do this, you would need

Re: panic at serial boot

2013-04-02 Thread Konstantin Belousov
On Tue, Apr 02, 2013 at 08:23:20PM +0200, m...@kernel32.de wrote: Hi Konstantin, Am 2013-03-27 15:33, schrieb m...@kernel32.de: Am 2013-03-27 14:32, schrieb Konstantin Belousov: Do you use preload md(4) ? If yes, try the following patch: Not sure whether time permits that today

Re: [RFC] vfs.read_min proposal

2013-03-31 Thread Konstantin Belousov
On Fri, Mar 29, 2013 at 04:57:48PM -0700, Maksim Yevmenkin wrote: On Fri, Mar 29, 2013 at 1:58 PM, Konstantin Belousov kostik...@gmail.com wrote: I think this is definitely a feature that should be set by a flag to either file descriptor used for aio_read, or aio_read call itself. Adding

Re: [RFC] vfs.read_min proposal

2013-03-31 Thread Konstantin Belousov
On Sat, Mar 30, 2013 at 01:51:15AM -0600, Scott Long wrote: On Mar 29, 2013, at 2:58 PM, Konstantin Belousov kostik...@gmail.com wrote: I think this is definitely a feature that should be set by a flag to either file descriptor used for aio_read, or aio_read call itself. Adding

Re: [RFC] vfs.read_min proposal

2013-03-29 Thread Konstantin Belousov
On Thu, Mar 28, 2013 at 10:11:25AM -0700, Maksim Yevmenkin wrote: On Thu, Mar 28, 2013 at 12:52 AM, Konstantin Belousov kostik...@gmail.com wrote: i would like to get some reviews, opinions and/or comments on the patch below. a little bit background, as far as i understand

Re: [RFC] vfs.read_min proposal

2013-03-28 Thread Konstantin Belousov
On Wed, Mar 27, 2013 at 01:43:32PM -0700, Maksim Yevmenkin wrote: Hello, i would like to get some reviews, opinions and/or comments on the patch below. a little bit background, as far as i understand, cluster_read() can initiate two disk i/o's: one for exact amount of data being requested

<    5   6   7   8   9   10   11   12   13   >