Re: i386 4/4 change

2018-04-01 Thread Bruce Evans
On Sun, 1 Apr 2018, Dimitry Andric wrote: On 31 Mar 2018, at 17:57, Bruce Evans <b...@optusnet.com.au> wrote: On Sat, 31 Mar 2018, Konstantin Belousov wrote: the change to provide full 4G of address space for both kernel and user on i386 is ready to land. The motivation for th

Re: i386 4/4 change

2018-03-31 Thread Bruce Evans
On Sat, 31 Mar 2018, Konstantin Belousov wrote: the change to provide full 4G of address space for both kernel and user on i386 is ready to land. The motivation for the work was to both mitigate Meltdown on i386, and to give more breazing space for still used 32bit architecture. The patch was

Re: Really weird behavior with terminals/sessions in past couple weeks

2017-05-13 Thread Bruce Evans
On Sat, 13 May 2017, Ngie Cooper (yaneurabeya) wrote: On May 13, 2017, at 11:05, Ngie Cooper (yaneurabeya) wrote: On May 13, 2017, at 11:01, Ngie Cooper (yaneurabeya) wrote: Hi, I???ve been noticing some really weird behavior with

Re: kernel coding of nobody/nogroup

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Rick Macklem wrote: I need to set the default uid/gid values for nobody/nogroup into kernel variables. I reverted the commit that hardcoded them, since I agree that wasn't a good thing to do. I didn't realize that "nobody" was already defined in sys/conf.h and I can use

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-31 Thread Bruce Evans
On Fri, 31 Mar 2017, Andrey Chernov wrote: On 30.03.2017 21:53, Bruce Evans wrote: I think it was the sizing. The non-updated mode is 80x25, so the row address can be out of bounds in the teken layer. I have text 80x30 mode set at rc stage, and _after_ that may have many kernel messages

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Andrey Chernov wrote: On 30.03.2017 18:13, Bruce Evans wrote: On Thu, 30 Mar 2017, Andrey Chernov wrote: ... Finally I have good news and bad news with today's -current: 1) It seems your latest commit r316136 fix premature reboot issue. Now I need to know how

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Andrey Chernov wrote: On 30.03.2017 12:34, Andrey Chernov wrote: On 30.03.2017 12:23, Andrey Chernov wrote: Yes, only for reboot/shutdown. The system does not do anythings wrong even under high load. On reboot or hang those lines are never printed: kernel: Waiting (max

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Andrey Chernov wrote: On 30.03.2017 14:23, Andriy Gapon wrote: On 30/03/2017 12:34, Andrey Chernov wrote: On 30.03.2017 12:23, Andrey Chernov wrote: Yes, only for reboot/shutdown. The system does not do anythings wrong even under high load. On reboot or hang those lines

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Andrey Chernov wrote: We don't understand the bug yet. It might not even be in sc. Do you only see problems for shutdown? The shutdown environment is special for locking. Yes, only for reboot/shutdown. The system does not do anythings wrong even under high load. On

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Andrey Chernov wrote: On 30.03.2017 9:51, Andrey Chernov wrote: On 30.03.2017 8:53, Bruce Evans wrote: The escape sequences in dmesg are very interesting. You should debug those. I'll send you them a bit later. Since I don't want vt at all, I don't want to debug

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Andrey Chernov wrote: On 29.03.2017 6:29, Bruce Evans wrote: ... I just found the cause, it is new syscons bug (bde@ cc'ed). I never compile vt driver into kernel, i.e. I don't have this lines in the kernel config: devicevt devicevt_vga devicevt_efifb When I

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Andrey Chernov wrote: On 30.03.2017 8:53, Bruce Evans wrote: Maybe two will be enough too, I don't check. I just don't need _any_ of vt lines. What is matter it is that syscons only mode (without any vt) was recently broken, causing shutdown problems and file system damage

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-29 Thread Bruce Evans
On Tue, 28 Mar 2017, Ngie Cooper wrote: On Mar 28, 2017, at 21:40, Bruce Evans <b...@optusnet.com.au> wrote: On Wed, 29 Mar 2017, Bruce Evans wrote: On Wed, 29 Mar 2017, Andrey Chernov wrote: ... Moreover, I can't enter KDB via Ctrl-Alt-ESC in the syscons only mode anymore - nothing h

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-29 Thread Bruce Evans
On Wed, 29 Mar 2017, Bruce Evans wrote: On Wed, 29 Mar 2017, Andrey Chernov wrote: ... Moreover, I can't enter KDB via Ctrl-Alt-ESC in the syscons only mode anymore - nothing happens. In the vt mode I can, but can't exit via "c" properly, all chars typed after "c" produce

Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others

2017-03-29 Thread Bruce Evans
On Wed, 29 Mar 2017, Andrey Chernov wrote: On 29.03.2017 0:46, Ngie Cooper (yaneurabeya) wrote: On Mar 28, 2017, at 14:27, Andrey Chernov wrote: ??? Using rc_debug=yes I see that it is the kernel problem, not rc problem. Sometimes rc backward sequence executed even

Re: HEADS-UP: IFLIB implementations of sys/dev/e1000 em, lem, igb pending

2017-01-24 Thread Bruce Evans
On Tue, 24 Jan 2017, Sean Bruno wrote: On 01/24/17 08:27, Olivier Cochard-Labb?? wrote: On Tue, Jan 24, 2017 at 3:17 PM, Sean Bruno > wrote: Did you increase the number of rx/tx rings to 8 and the number of descriptors to 4k in your tests

Re: SVN r305382 breaks world32 on amd64 (and native 32-bit)

2016-09-04 Thread Bruce Evans
On Sun, 4 Sep 2016, Michael Butler wrote: Build fails with: ===> lib/msun (obj,all,install) Building /usr/obj/usr/src/lib/msun/e_fmodf.o /usr/src/lib/msun/i387/e_fmodf.S:10:17: error: register %rsp is only available in 64-bit mode movss %xmm0,-4(%rsp) ^~~~

Re: problems with mouse

2016-08-30 Thread Bruce Evans
Is there a way to troubleshoot this? Is there something that can fix this? Bruce Evans has fixed some issues with SC/VT mouse/keyboard stuff in 12-current. Maybe he has some ideas. I only know about sc/atkbd and am trying not to break ukbd. The cause of Bug 211884 (ukbd?) is still unknown

Re: Timing issue with Dummynet on high kernel timer interrupt

2015-11-06 Thread Bruce Evans
On Fri, 6 Nov 2015, Ian Lepore wrote: On Fri, 2015-11-06 at 17:51 +0100, Hans Petter Selasky wrote: On 11/06/15 17:43, Ian Lepore wrote: On Fri, 2015-11-06 at 17:28 +0100, Hans Petter Selasky wrote: Hi, Do the test II results change with this setting? sysctl

Re: Hello fdclose

2014-03-18 Thread Bruce Evans
On Tue, 18 Mar 2014, John Baldwin wrote: On Monday, March 17, 2014 7:23:19 pm Mariusz Zaborski wrote: ... I think the code is fine. I have a few suggestions on the manpage wording: .Sh RETURN VALUES -Upon successful completion 0 is returned. +The +.Fn fcloseall +function return no value. +.Pp

Re: signal 8 (floating point exception) upon resume

2014-03-11 Thread Bruce Evans
On Mon, 10 Mar 2014, John Baldwin wrote: On Tuesday, March 04, 2014 4:50:01 pm Bruce Evans wrote: On Tue, 4 Mar 2014, John Baldwin wrote: % Index: i386/i386/swtch.s % === % --- i386/i386/swtch.s (revision 262711) % +++ i386/i386

Re: signal 8 (floating point exception) upon resume

2014-03-04 Thread Bruce Evans
On Tue, 4 Mar 2014, John Baldwin wrote: On Monday, March 03, 2014 6:49:08 pm Adrian Chadd wrote: I'll try this soon. I had it fail back to newcons, rather than Xorg normally dying without restoring state. It wouldn't let me spawn a shell. Logging in worked fine, but normal shell exec would

Re: WEAK_REFERENCE?

2013-11-10 Thread Bruce Evans
On Sat, 9 Nov 2013, Andreas Tobler wrote: anyone interested in this patch to remove the WEAK_ALIAS and introduce the WEAK_REFERENCE? http://people.freebsd.org/~andreast/weak_ref.amd64.diff I have this running since months on amd64 and I have no issues with. I remember having had a

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-11 Thread Bruce Evans
On Thu, 11 Jul 2013, David Chisnall wrote: You're joining in this discussion starting in the middle, so you probably missed the earlier explanation. I was mainly addressing a C99 point. I know little about C++ or C11. On 11 Jul 2013, at 05:21, Bruce Evans b...@optusnet.com.au wrote: I

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-11 Thread Bruce Evans
On Thu, 11 Jul 2013, Tijl Coosemans wrote: On 2013-07-11 06:21, Bruce Evans wrote: On Wed, 10 Jul 2013, Garrett Wollman wrote: On Wed, 10 Jul 2013 22:12:59 +0200, Tijl Coosemans t...@freebsd.org said: I think isnan(double) and isinf(double) in math.h should only be visible if (_BSD_VISIBLE

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-11 Thread Bruce Evans
On Thu, 11 Jul 2013, David Chisnall wrote: On 11 Jul 2013, at 13:11, Bruce Evans b...@optusnet.com.au wrote: math.h is also not required to be conforming C code, let alone C++ code, so there is only a practical requirement that it works when included in the C++ implementation. Working

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-11 Thread Bruce Evans
On Thu, 11 Jul 2013, David Chisnall wrote: On 11 Jul 2013, at 13:11, Bruce Evans b...@optusnet.com.au wrote: The error message for the __builtin_isnan() version is slightly better up to where it says more. The less-unportable macro can do more classification and detect problems at compile

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread Bruce Evans
On Wed, 10 Jul 2013, Garrett Wollman wrote: On Wed, 10 Jul 2013 22:12:59 +0200, Tijl Coosemans t...@freebsd.org said: I think isnan(double) and isinf(double) in math.h should only be visible if (_BSD_VISIBLE || _XSI_VISIBLE) __ISO_C_VISIBLE 1999. For C99 and higher there should only be the

Re: [RFC/RFT] calloutng

2013-01-18 Thread Bruce Evans
On Thu, 17 Jan 2013, Ian Lepore wrote: On Mon, 2013-01-14 at 11:38 +1100, Bruce Evans wrote: Er, timecounters are called with a spin mutex held in existing code: though it is dangerous to do so, timecounters are called from fast interrupt handlers for very timekeeping-critical purposes

Re: [RFC/RFT] calloutng

2013-01-13 Thread Bruce Evans
On Sun, 13 Jan 2013, Alexander Motin wrote: On 13.01.2013 20:09, Marius Strobl wrote: On Tue, Jan 08, 2013 at 12:46:57PM +0200, Alexander Motin wrote: On 06.01.2013 17:23, Marius Strobl wrote: I'm not really sure what to do about that. Earlier you already said that sched_bind(9) also isn't

Re: [RFC/RFT] calloutng

2013-01-03 Thread Bruce Evans
On Wed, 2 Jan 2013, Alexander Motin wrote: On 02.01.2013 19:09, Konstantin Belousov wrote: On Wed, Jan 02, 2013 at 05:22:06PM +0100, Luigi Rizzo wrote: Probably one way to close this discussion would be to provide a sysctl so the sysadmin can decide which point in the interval to pick when

Re: [RFC/RFT] calloutng

2013-01-03 Thread Bruce Evans
On Thu, 3 Jan 2013, Alexander Motin wrote: On 03.01.2013 16:45, Bruce Evans wrote: On Wed, 2 Jan 2013, Alexander Motin wrote: More important for scheduling fairness thread's CPU percentage is also based on hardclock() and hiding from it was trivial before, since all sleep primitives were

Re: API explosion (Re: [RFC/RFT] calloutng)

2012-12-19 Thread Bruce Evans
On Wed, 19 Dec 2012, Poul-Henning Kamp wrote: In message CACYV=-eg542ihm9kfujpvczzra4tqepebva8rzt1yohncgf...@mail.gmail.com , Davide Italiano writes: Right now -- the precision is specified in 'bintime', which is a binary number. It's not 32.32, it's 32.64 or 64.64 depending on the

Re: API explosion (Re: [RFC/RFT] calloutng)

2012-12-19 Thread Bruce Evans
On Wed, 19 Dec 2012, Poul-Henning Kamp wrote: In message 20121219221518.e1...@besplex.bde.org, Bruce Evans writes: With this format you can specify callouts 68 years into the future with quarter nanosecond resolution, and you can trivially and efficiently compare dur_t's

Re: API explosion (Re: [RFC/RFT] calloutng)

2012-12-19 Thread Bruce Evans
On Wed, 19 Dec 2012, Davide Italiano wrote: On Wed, Dec 19, 2012 at 4:18 AM, Bruce Evans b...@optusnet.com.au wrote: I would have tried a 32 bit format with a variable named 'ticks'. Something like: - ticks = 0. Same meaning as now. No changes in ABIs or APIs to use this. The tick

Re: API explosion (Re: [RFC/RFT] calloutng)

2012-12-19 Thread Bruce Evans
On Wed, 19 Dec 2012, Poul-Henning Kamp wrote: In message 20121220005706.i1...@besplex.bde.org, Bruce Evans writes: On Wed, 19 Dec 2012, Poul-Henning Kamp wrote: Except that for absolute timescales, we're running out of the 32 bits integer part. Except 32 bit time_t works until

Re: API explosion (Re: [RFC/RFT] calloutng)

2012-12-19 Thread Bruce Evans
I finally remembered to remove the .it phk :-). On Wed, 19 Dec 2012, Luigi Rizzo wrote: On Wed, Dec 19, 2012 at 10:51:48AM +, Poul-Henning Kamp wrote: ... As I said in my previous email: typedef dur_t int64_t;/* signed for bug catching */ #define DURSEC

Re: [RFC/RFT] calloutng

2012-12-16 Thread Bruce Evans
On Sat, 15 Dec 2012, Garrett Cooper wrote: On Dec 15, 2012, at 12:34 PM, Mark Johnston wrote: On Sat, Dec 15, 2012 at 06:55:53PM +0200, Alexander Motin wrote: Hi. I'm sorry to interrupt review, but as usual good ideas came during the final testing, causing another round. :) Here is updated

Re: [RFC/RFT] calloutng

2012-12-15 Thread Bruce Evans
On Fri, 14 Dec 2012, Oliver Pinter wrote: 635 - return tticks; 636 + getbinuptime(pbt); 637 + bt.sec = data / 1000; 638 + bt.frac = (data % 1000) * (uint64_t)1844674407309000LL; 639 + bintime_add(bt, pbt); 640 + return bt; Style bugs: missing spaces around

Re: [RFC/RFT] calloutng

2012-12-15 Thread Bruce Evans
On Sat, 15 Dec 2012, Bruce Evans wrote: On Fri, 14 Dec 2012, Oliver Pinter wrote: What is this 1844674407309000LL constant? This is 2**64 / 10**6 * 10**3 obfuscated by printing it in hex and doing the scaling by powers of 10 manually, and then giving it a bogus type using

Re: [RFC/RFT] calloutng

2012-12-15 Thread Bruce Evans
On Sat, 15 Dec 2012, Oliver Pinter wrote: On 12/15/12, Bruce Evans b...@optusnet.com.au wrote: ... Because of the different grouping of the multiplications, the second is unfortunately slower (1 more multiplication that cannot be done at compile time). The second also gives unnecessary

Re: clang compiled kernel panic when mounting zfs root on i386

2012-11-26 Thread Bruce Evans
On Mon, 26 Nov 2012, Konstantin Belousov wrote: On Mon, Nov 26, 2012 at 06:31:34AM -0800, sig6247 wrote: Just checked out r243529, this only happens when the kernel is compiled by clang, and only on i386, either recompiling the kernel with gcc or booting from a UFS root works fine. Is it a

Re: Use of C99 extra long double math functions after r236148

2012-07-25 Thread Bruce Evans
On Wed, 25 Jul 2012, Rainer Hurling wrote: On 25.07.2012 19:00 (UTC+2), Steve Kargl wrote: On Wed, Jul 25, 2012 at 06:29:18PM +0200, Rainer Hurling wrote: Many thanks to you three for implementing expl() with r238722 and r238724. I am not a C programmer, but would like to ask if the

Re: Use of C99 extra long double math functions after r236148

2012-07-25 Thread Bruce Evans
On Wed, 25 Jul 2012, Stephen Montgomery-Smith wrote: On 07/25/12 12:31, Steve Kargl wrote: On Wed, Jul 25, 2012 at 12:27:43PM -0500, Stephen Montgomery-Smith wrote: Just as a point of comparison, here is the answer computed using Mathematica: N[Exp[2], 50]

Re: [head tinderbox] failure on i386/i386

2012-05-22 Thread Bruce Evans
On Tue, 22 May 2012, FreeBSD Tinderbox wrote: [...] from /obj/i386.i386/src/tmp/usr/include/sys/_types.h:33, from /obj/i386.i386/src/tmp/usr/include/stdio.h:41, from /src/sbin/devd/parse.y:33: /obj/i386.i386/src/tmp/usr/include/x86/_types.h:51:

Re: Some performance measurements on the FreeBSD network stack

2012-04-21 Thread Bruce Evans
On Fri, 20 Apr 2012, K. Macy wrote: On Fri, Apr 20, 2012 at 4:44 PM, Luigi Rizzo ri...@iet.unipi.it wrote: The small penalty when flowtable is disabled but compiled in is probably because the net.flowtable.enable flag is checked a bit deep in the code. The advantage with non-connect()ed

Re: strange ping response times...

2012-04-12 Thread Bruce Evans
On Thu, 12 Apr 2012, Luigi Rizzo wrote: On Thu, Apr 12, 2012 at 01:18:59PM +1000, Bruce Evans wrote: On Wed, 11 Apr 2012, Luigi Rizzo wrote: On Wed, Apr 11, 2012 at 02:16:49PM +0200, Andre Oppermann wrote: ... ping takes a timestamp in userspace before trying to transmit the packet

Re: strange ping response times...

2012-04-11 Thread Bruce Evans
On Wed, 11 Apr 2012, Luigi Rizzo wrote: On Wed, Apr 11, 2012 at 02:16:49PM +0200, Andre Oppermann wrote: On 11.04.2012 13:00, Luigi Rizzo wrote: On Wed, Apr 11, 2012 at 12:35:10PM +0200, Andre Oppermann wrote: On 11.04.2012 01:32, Luigi Rizzo wrote: Things going through loopback go through

Re: Potential deadlock on mbuf

2012-04-03 Thread Bruce Evans
On Tue, 3 Apr 2012, Andre Oppermann wrote: On 02.04.2012 18:21, Alexandre Martins wrote: Dear, I have currently having troubles with a basic socket stress. The socket are setup to use non-blocking I/O. During this stress-test, the kernel is running mbuf exhaustion, the goal is to see

Re: [rfc] removing -mpreferred-stack-boundary=2 flag for i386?

2011-12-25 Thread Bruce Evans
On Sat, 24 Dec 2011, Alexander Best wrote: On Sat Dec 24 11, Bruce Evans wrote: On Sat, 24 Dec 2011, Alexander Best wrote: On Sat Dec 24 11, Bruce Evans wrote: On Fri, 23 Dec 2011, Alexander Best wrote: ... the gcc(1) man page states the following: This extra alignment does consume

Re: [rfc] removing -mpreferred-stack-boundary=2 flag for i386?

2011-12-24 Thread Bruce Evans
On Fri, 23 Dec 2011, Alexander Best wrote: is -mpreferred-stack-boundary=2 really necessary for i386 builds any longer? i built GENERIC (including modules) with and without that flag. the results are: The same as it has always been. It avoids some bloat. 1654496 bytes with the flag set vs.

Re: [rfc] removing -mpreferred-stack-boundary=2 flag for i386?

2011-12-24 Thread Bruce Evans
On Fri, 23 Dec 2011, Adrian Chadd wrote: Well, the whole kernel is bloated at the moment, sorry. I've been trying to build the _bare minimum_ required to bootstrap -HEAD on these embedded boards and I can't get the kernel down below 5 megabytes - ie, one with FFS (with options disabled), MIPS,

Re: [rfc] removing -mpreferred-stack-boundary=2 flag for i386?

2011-12-24 Thread Bruce Evans
On Sat, 24 Dec 2011, Alexander Best wrote: On Sat Dec 24 11, Bruce Evans wrote: On Fri, 23 Dec 2011, Alexander Best wrote: is -mpreferred-stack-boundary=2 really necessary for i386 builds any longer? i built GENERIC (including modules) with and without that flag. the results are: The same

Re: [rfc] removing -mpreferred-stack-boundary=2 flag for i386?

2011-12-24 Thread Bruce Evans
On Sat, 24 Dec 2011, Alexander Best wrote: On Sat Dec 24 11, Bruce Evans wrote: This almost builds in -current too. I had to add the following: - NO_MODULES to de-bloat the compile time - MK_CTF=no to build -current on FreeBSD.9. The kernel .mk files are still broken (depend on nonstandard

Re: SCHED_ULE should not be the default

2011-12-18 Thread Bruce Evans
On Wed, 14 Dec 2011, Ivan Klymenko wrote: ?? Wed, 14 Dec 2011 00:04:42 +0100 Jilles Tjoelker jil...@stack.nl ??: On Tue, Dec 13, 2011 at 10:40:48AM +0200, Ivan Klymenko wrote: If the algorithm ULE does not contain problems - it means the problem has Core2Duo, or in a piece of code

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers (v2)

2011-11-26 Thread Bruce Evans
On Sat, 26 Nov 2011, Robert Millan wrote: On Fri, Nov 25, 2011 at 11:16:15AM -0700, Warner Losh wrote: Hey Bruce, These sound like good suggestions, but I'd hoped to actually go through all these files with a fine-toothed comb to see which ones were still relevant. You've found a bunch of

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers (v2)

2011-11-25 Thread Bruce Evans
On Thu, 24 Nov 2011, Robert Millan wrote: 2011/11/24 Bruce Evans b...@optusnet.com.au: Now it adds lots of namespace pollution (all of sys/param.h, including all of its namespace pollution), just to get 1 new symbol defined. Well, my initial patch (see mail with same subject modulo v2

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers (v2)

2011-11-23 Thread Bruce Evans
On Wed, 23 Nov 2011, Robert Millan wrote: Here we go again :-) Out of the kernel headers that are installed in /usr/include/ hierracy, there are some which include support multiple operating systems (usually FreeBSD and other *BSD flavours). This patch adds support to detect GNU/kFreeBSD as

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers

2011-11-20 Thread Bruce Evans
On Sun, 20 Nov 2011, Kostik Belousov wrote: On Sun, Nov 20, 2011 at 12:40:42PM +0100, Robert Millan wrote: On Sat, Nov 19, 2011 at 07:56:20PM +0200, Kostik Belousov wrote: I fully agree with an idea that compiler is not an authorative source of the knowledge of the FreeBSD version. Even more,

Re: [PATCH] Netdump for review and testing -- preliminary version

2010-10-17 Thread Bruce Evans
On Fri, 15 Oct 2010, Robert N. M. Watson wrote: On 15 Oct 2010, at 20:39, Garrett Cooper wrote: But there are already some cases that aren't properly handled today in the ddb area dealing with dumping that aren't handled properly. Take for instance the following two scenarios: 1. Call

Re: newfs_msdos and DVD-RAM

2010-04-04 Thread Bruce Evans
On Sat, 3 Apr 2010, Tijl Coosemans wrote: Wikipedia's article on FAT has this to say about the maximum size of clusters: The limit on partition size was dictated by the 8-bit signed count of sectors per cluster, which had a maximum power-of-two value of 64. With That seems unlikely. The

Re: newfs_msdos and DVD-RAM

2010-03-29 Thread Bruce Evans
On Mon, 29 Mar 2010, Andriy Gapon wrote: ... I am not a FAT expert and I know to take Wikipedia with a grain of salt. But please take a look at this: http://en.wikipedia.org/wiki/File_Allocation_Table#Boot_Sector In our formula: SecPerClust *= pmp-pm_BlkPerSec; we have the following

Re: System hangs solid with ATAPICAM

2003-12-02 Thread Bruce Evans
On Tue, 2 Dec 2003, Sean McNeil wrote: I've tried over several weeks to get ATAPICAM to work for me. I've tried with and without acpi (compiled in or disabled via. boot). I've tried turning on all debug. I've tried a few misc. thigs. All leave my Did you try backing out rev.1.23 of

Re: 40% slowdown with dynamic /bin/sh

2003-11-27 Thread Bruce Evans
On Wed, 26 Nov 2003, Garance A Drosihn wrote: At 12:23 AM -0500 11/26/03, Michael Edenfield wrote: Just to provide some real-world numbers, here's what I got out of a buildworld: I have reformatted the numbers that Michael reported, into the following table: Static /bin/sh:

Re: 5.2-BETA: giving up on 4 buffers (ata)

2003-11-27 Thread Bruce Evans
On Thu, 27 Nov 2003, Stefan Ehmann wrote: On Wed, 2003-11-26 at 19:37, Matthias Andree wrote: Hi, when I rebooted my 5.2-BETA (kernel about 24 hours old), it gave up on flushing 4 dirty blocks. I had three UFS1 softdep file systems mounted on one ATA drive, one ext2 file system on

Re: Hanging at boot

2003-11-26 Thread Bruce Evans
On Wed, 26 Nov 2003, Manfred Lotz wrote: On Mon, 24 Nov 2003 08:00:49 +0100, Manfred Lotz wrote: Hi there, Last time (around middle of October) when I tried out a new current kernel it was hanging at boot time at acd1 ata1 is: acd1: DVD-ROM TOSHIBA DVD-ROM SD-M1612 at ata1-slave

Re: dumb question 'Bad system call' after make world

2003-11-22 Thread Bruce Evans
On Fri, 21 Nov 2003, Barney Wolff wrote: Will somebody please tell me when make world is ever correct in the environment of the last several years? I've been unable to understand its continued existence as a target. From my normal world-building script: DESTDIR=/c/z/root \

Re: HEADS UP: /bin and /sbin are now dynamically linked

2003-11-22 Thread Bruce Evans
On Sat, 22 Nov 2003, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bruce Evans [EMAIL PROTECTED] writes: : On Sat, 22 Nov 2003, M. Warner Losh wrote: : Timing Solutions uses the following minimal termcap for its embedded : applications. It has a number of terminals

Re: HEADS UP: /bin and /sbin are now dynamically linked

2003-11-22 Thread Bruce Evans
On Sat, 22 Nov 2003, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Richard Coleman [EMAIL PROTECTED] writes: : M. Warner Losh wrote: : : : I agree. termcap.small is amazingly uncurrent. However, perhaps some : : merging and reducing is in order. Why is a full cons25

Re: Unfortunate dynamic linking for everything

2003-11-21 Thread Bruce Evans
On Fri, 21 Nov 2003, Tim Kientzle wrote: Bruce Evans wrote: It obviously uses NSS. How else could it be so bloated? : $ ls -l /sbin/init -r-x-- 1 root wheel 453348 Nov 18 10:30 /sbin/init I believe it's actually DNS, not NSS. Pre-5.0, the resolver ballooned significantly

Re: Unfortunate dynamic linking for everything

2003-11-19 Thread Bruce Evans
On Wed, 19 Nov 2003, Marcel Moolenaar wrote: set init_path=/rescue/init If dynamic root were ready to be turned on, then /rescue/init would be in the default init_path. A dynamicly linked /sbin/init just makes it harder to get to the rescue bits, so it makes sense to link init(8) staticly.

Re: hard lock-up writing to tape

2003-11-19 Thread Bruce Evans
On Wed, 19 Nov 2003, Mike Durian wrote: On Tuesday 18 November 2003 08:29 pm, Bruce Evans wrote: - -current has the kern.console sysctl for enabling multiple consoles (buut only 1 sio one). You can boot with a syscons console and then enable the serial, and the latter should work

Re: Unfortunate dynamic linking for everything

2003-11-19 Thread Bruce Evans
On Wed, 19 Nov 2003, Ken Smith wrote: On Thu, Nov 20, 2003 at 06:27:31AM +1100, Bruce Evans wrote: set init_path=/rescue/init If dynamic root were ready to be turned on, then /rescue/init would be in the default init_path. I had that explained to me too. :-) There is a loop in sys

Re: Unfortunate dynamic linking for everything

2003-11-18 Thread Bruce Evans
On Tue, 18 Nov 2003, M. Warner Losh wrote: In message: [EMAIL PROTECTED] [EMAIL PROTECTED] writes: : It really doesn't make sense to arbitrarily cut-off a : discussion especially when a decision might be incorrect. I'd say that good technical discussion about why this is

Re: HEADS-UP new statfs structure

2003-11-18 Thread Bruce Evans
On Tue, 18 Nov 2003, Rudolf Cejka wrote: Hello, and is it possible to review some my (one's from masses :o) questions/suggestions? * cvtstatfs() for freebsd4_* compat syscalls does not copy text fields correctly, so old binaries with new kernel know just about first 16 characters from

Re: hard lock-up writing to tape

2003-11-18 Thread Bruce Evans
On Tue, 18 Nov 2003, Mike Durian wrote: On Monday 17 November 2003 04:41 pm, Mike Durian wrote: I was finally able to get some partial success by setting flag 0x30 for sio1. When I'd boot, I'd get console messages on my remote tip session. However, I'd only receive those messages

Re: Who needs these silly statfs changes...

2003-11-15 Thread Bruce Evans
On Sat, 15 Nov 2003, Terry Lambert wrote: Bruce Evans wrote: I just got around to testing the patch in that reply: [ ... ] This seems to work. On a 2TB-epsilon ffs1 file system (*) on an md malloc disk (**): Try it again. This time, take the remote FS below its free reserve

Re: Who needs these silly statfs changes...

2003-11-15 Thread Bruce Evans
On Fri, 14 Nov 2003 [EMAIL PROTECTED] wrote: Bruce Evans wrote: ... I just got around to testing the patch in that reply: ... Your patch to nfs_vfsops won't apply to my Solaris kernel :-) The protocol says abytes is unsigned, so the server shouldn't be lying by sending a huge

Re: DIAGNOSTIC LOR in softclock

2003-11-15 Thread Bruce Evans
On Sat, 15 Nov 2003, Poul-Henning Kamp wrote: This looks slightly different if I use SCHED_ULE, but the effect is the same. Off the top of my head, I have not been able to find any places where softclock would call schedcpu directly. schedcpu() is a timeout routine, so it is always called

Re: Who needs these silly statfs changes...

2003-11-14 Thread Bruce Evans
On Fri, 14 Nov 2003, Peter Edwards wrote: Bernd Walter wrote: On Thu, Nov 13, 2003 at 12:54:18AM -0800, Kris Kennaway wrote: On Thu, Nov 13, 2003 at 06:44:25PM +1100, Peter Jeremy wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports

Re: Who needs these silly statfs changes...

2003-11-14 Thread Bruce Evans
On Fri, 14 Nov 2003, Peter Edwards wrote: Bruce Evans wrote: On Fri, 14 Nov 2003, Peter Edwards wrote: The NFS protocols have unsigned fields where statfs has signed equivalents: NFS can't represent negative available disk space ( Without the knowledge of the underlying filesystem

Re: new kernel and old programs - bad system call

2003-11-13 Thread Bruce Evans
On Thu, 13 Nov 2003, John Hay wrote: Is it ok to run a new kernel (after the statfs changes) and older programs? I thought so from what i gathered out of the commit messages, but my test box doesn't like it at all... Well except if something else broke stuff: I have no problems with a

Re: boot0 and fdisk / disklabel misbehaviour

2003-11-11 Thread Bruce Evans
On Tue, 11 Nov 2003, Dag-Erling [iso-8859-1] Smørgrav wrote: I've been busy installing various OSes on a spare disk in order to try to reproduce some of fefe's benchmarks. In the process, I've noticed a couple of bogons in boot0 and disklabel: - disklabel -B trashes the partition table:

Re: Found a problem with new source code

2003-11-11 Thread Bruce Evans
On Mon, 10 Nov 2003, Jason wrote: I just wanted to let someone know that my buildworld fails at /usr/src/sys/boot/i386/boot2/boot2.c at line 362. I get an undefined error for RB_BOOTINFO, by adding #define RB_BOOTINFO 0x1f it worked. Sorry, I broke it last night. it is now fixed. Also it

Re: the PS/2 mouse problem

2003-11-10 Thread Bruce Evans
On Sat, 8 Nov 2003, Morten Johansen wrote: Scott Long wrote: Bruce Evans wrote: [... possibly too much trimmed] The problem here is that the keyboard controller driver tries to be too smart. If it detects that the hardware FIFO is full, it'll drain it into a per-softc, per-function ring

Re: erroneous message from locked-up machine

2003-11-10 Thread Bruce Evans
On Mon, 10 Nov 2003, Michael W. Lucas wrote: I came in to work today to find one of my -current machines unable to open a pipe. (This probably had a lot to do with the spamd that went stark raving nutters overnight, but that's a separate problem.) A power cycle fixed the problem, but

Re: serial console oddity

2003-11-09 Thread Bruce Evans
On Sat, 8 Nov 2003, Don Lewis wrote: I've been seeing some wierd things for many months when using a serial console on my -CURRENT box. I finally had a chance to take a closer look today. It looks like the problem is some sort of interference between kernel output to the console and

Re: hard lockup with new interrupt code, possible cause irq14: ata0

2003-11-08 Thread Bruce Evans
On Sat, 8 Nov 2003, Barney Wolff wrote: Try adding options NO_MIXED_MODE to your conf. That fixed boot-time hangs on my Asus A7M266-D. BTW, NO_MIXED_MODE is missing in NOTES. Bruce ___ [EMAIL PROTECTED] mailing list

RE: New interrupt stuff breaks ASUS 2 CPU system

2003-11-07 Thread Bruce Evans
On Thu, 6 Nov 2003, John Baldwin wrote: On 06-Nov-2003 Harti Brandt wrote: JBI figured out what is happenning I think. You are getting a spurious JBinterrupt from the 8259A PIC (which comes in on IRQ 7). The IRR register JBlists pending interrupts still waiting to be serviced. Try using

Re: the PS/2 mouse problem

2003-11-07 Thread Bruce Evans
On Fri, 7 Nov 2003, Morten Johansen wrote: Morten Johansen wrote: Scott Long wrote: One thought that I had was to make psmintr() be INTR_FAST. I need to stare at the code some more to fully understand it, but it looks like it wouldn't be all that hard to do. Basically just use the

Re: New interrupt stuff breaks ASUS 2 CPU system

2003-11-07 Thread Bruce Evans
On Fri, 7 Nov 2003, Stefan [iso-8859-1] Eßer wrote: On 2003-11-07 20:04 +1100, Bruce Evans [EMAIL PROTECTED] wrote: However, using the apic almost doubles the overheads for the a45 cases. This seems to be due to extra interrupts. The UART and/or driver already Just another data point

Re: new interrupt code: panic when going multiuser

2003-11-05 Thread Bruce Evans
On Tue, 4 Nov 2003, John Baldwin wrote: On 04-Nov-2003 Bruce Evans wrote: - on a BP6, UP kernels without apic work except for cyintr(), but SMP kernels have problems with missing interrupts for ata devices and hang at boot time. Is this related to the ata-lowlevel commit you

Re: NULL td passed to propagate_priority() when using xmms...

2003-11-04 Thread Bruce Evans
On Mon, 3 Nov 2003, John Baldwin wrote: On 01-Nov-2003 Soren Schmidt wrote: It seems Sean Chittenden wrote: Howdy. I'm not sure if this is a ULE bug or a KSE bug, or both, but, for those interested (this is using ule 1.67, rebuilding world now), here's my stack. I couldn't figure out

Re: new interrupt code: panic when going multiuser

2003-11-04 Thread Bruce Evans
On Tue, 4 Nov 2003, John Baldwin wrote: On 04-Nov-2003 Lukas Ertl wrote: On Tue, 4 Nov 2003, Lukas Ertl wrote: I somehow can't get at a good vmcore :-(. But I found out that the machine boots fine in Safe Mode, where DMA and hw.ata.wc is turned off. Ok, if I set hw.ata.ata_dma=0 in

Re: new interrupt code: panic when going multiuser

2003-11-04 Thread Bruce Evans
The following is without the local changes: - cyintr(int unit) panics becauase it is passed a pointer to somewhere. I think all compat_isa devices are broken for unit 0 because unit 0 is represented by a null pointer. Ah, ok. Yes, this is a semantic change. To try and support clock

Re: More ULE bugs fixed.

2003-11-03 Thread Bruce Evans
On Sun, 2 Nov 2003, Jeff Roberson wrote: On Sat, 1 Nov 2003, Bruce Evans wrote: My simple make benchmark now takes infinitely longer with ULE under SMP, since make -j 16 with ULE under SMP now hangs nfs after about a minute. 4BSD works better. However, some networking bugs have developed

Re: More ULE bugs fixed.

2003-11-02 Thread Bruce Evans
On Fri, 31 Oct 2003, Sam Leffler wrote: On Friday 31 October 2003 09:04 am, Bruce Evans wrote: My simple make benchmark now takes infinitely longer with ULE under SMP, since make -j 16 with ULE under SMP now hangs nfs after about a minute. 4BSD works better. However, some networking bugs

RE: lockmgr panic on shutdown

2003-11-01 Thread Bruce Evans
On Sun, 2 Nov 2003 [EMAIL PROTECTED] wrote: The obvious solution might be to change line 1161 of ffs_vfsops to pass vget() curthread rather than td. I assume there's a good reason why thread0 is passed from boot(), but I can't see why that's of any use to the vnode locking. Passing thread0

Re: Anyone object to the following change in libc?

2003-10-31 Thread Bruce Evans
On Thu, 30 Oct 2003, Garrett Wollman wrote: On Thu, 30 Oct 2003 12:32:46 +0100 (CET), Harti Brandt [EMAIL PROTECTED] said: The c89 utility (which specified a compiler for the C Language specified by the 108 ISO/IEC 9899: 1990 standard) has been replaced by a c99 utility (which specifies a

Re: ATAng regression: cdcontrol close not working

2003-10-31 Thread Bruce Evans
On Thu, 30 Oct 2003, Soren Schmidt wrote: It seems Lars Eggert wrote: I've already committed a solution that works on all the drives I could test on (some of which failed before), if this still fails for you I'd like a more detailed description of what exactly goes wrong... I

  1   2   3   4   5   6   7   8   9   10   >