Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
(Poul-Henning Kamp)
2. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
(Marcel Moolenaar)
3. Re: Some netgraph node global locking patches (Poul-Henning Kamp)
4. Re: 5.2-CURRENT still not working on my mitac 8080 (John Baldwin)
5. Re: 5.2-CURRENT still not working on my mitac 8080
(David W. Chapman Jr.)
6. RE: Kernel trap 12; panic (Terrence Koeman)
7. Re: calcru: runtime went backwards (Daniel Lang)
8. Re: CVSUP and 5.2.1 RELEASE (Eirik Oeverby)
9. Re: CVSUP and 5.2.1 RELEASE (Kirk Strauser)
10. Re: Some netgraph node global locking patches (Gleb Smirnoff)
11. Re: 5.2-CURRENT still not working on my mitac 8080 (John Baldwin)
12. AW: CVSUP and 5.2.1 RELEASE (Jonathan Weiss)
13. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
14. Re: Problems with i82077, NE72065 or clone floppy drive
controllers (Was: i need my floppy disk drive.) (John Baldwin)
15. Re: Native preemption is the culprit [was Re: today's CURRENT
lockups] (John Baldwin)
16. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
17. Re: CVSUP and 5.2.1 RELEASE (Eirik Oeverby)
18. Re: CVSUP and 5.2.1 RELEASE (Dimitry Andric)
19. Re: CVSUP and 5.2.1 RELEASE (Michael Nottebrock)
20. Re: CVSUP and 5.2.1 RELEASE (Kirk Strauser)
21. Re: ahc driver now borked in -current? (John Baldwin)
22. Re: Problems with i82077, NE72065 or clone floppy drive
controllers (Was: i need my floppy disk drive.) (Nate Lawson)
23. Re: CVSUP and 5.2.1 RELEASE (Julian Elischer)
24. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (Cyrille Lefevre)
25. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
(Poul-Henning Kamp)
26. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
27. Re: CVSUP and 5.2.1 RELEASE (Julian Elischer)
28. Re: CVSUP and 5.2.1 RELEASE (John Baldwin)
29. Re: Network related procs hang in unusual sfpbsy state
(Andrew Gallatin)
30. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (John Baldwin)
31. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (John Baldwin)
32. Re: CVSUP and 5.2.1 RELEASE (Julian Elischer)
----------------------------------------------------------------------
Message: 1
Date: Wed, 14 Jul 2004 20:46:32 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: stable@freebsd.org
Message-ID: <12775.1089830792@critter.freebsd.dk>
In message <20040714180816.GA5503@dhcp50.pn.xcllnt.net>, Marcel Moolenaar writ
e
s:
>> The traditional naming has been the inserted "i" and "l" which I
>> agree is arcane. I'm not against changing it to ".init" and ".lock"
>> if we can get concensus.
>
>We can create a simple compatibility scheme: If the out argument
>to ttymakeslaves is a string of exactly 1 character, use the old
>naming scheme. Otherwise, a new naming scheme is used. In the old
>scheme, the slave (or out) devices are called cua*. In the new
>scheme the out devices have the name given by the out argument.
If we go the "on demand" route, this is not really an issue because
then we can have both :-)
>> I would prefer to stick to the "tty" and "cua" prefixes however.
>
>I can agree on the tty prefix. I've always disliked the cua prefix,
>simply because it's nonsensical.
Actually it is suns mangling of the well established telecom acronum
"ACU" (Automatic Calling Unit, a box next to your modem which would
pulse dial a number for you. Initially the numbers were hardcoded
using jumpers in a PTT sealed compartment, later on you could get
permission to send the number to the ACU via a TTL-BCD interface.
The Hayes modems broke the PTT rules in practically all european
countries when they came out. There's an interesting saga about
the first modem on MCVAX.
>simply because it's nonsensical. It's the kind of prefix you pick
>when all the good (and bad) ones have been used and you randomly
>grab 3 letters from your scrabble box, sigh, and accept that once
>again luck hasn't been on your side :-) :-)
I don't disagree, but it is nontheless what people are used to
by now so I don't think we should change it.
>> The plan is to make them on-demand-devices (clonable) so that they
>> do not clutter up /dev but appear if you access them. That would
>> leave only the ttyu0 and cuau0 devices.
>
>Yes! I like the cloning.
Cool, I'll work on that then.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
------------------------------
Message: 2
Date: Wed, 14 Jul 2004 11:46:35 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: Don Lewis <truckman@FreeBSD.org>
Cc: phk@phk.freebsd.dk
Message-ID: <20040714184635.GB5503@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 14, 2004 at 11:38:57AM -0700, Don Lewis wrote:
> >
> > Seriously: the origin of cua is mostly lost and systems like UUCP
> > have already been removed from the source tree. Anybody new to
> > FreeBSD and who hasn't been around since the epoch will completely
> > fail to see why the device is called the way it is.
>
> I still use cu(1), though I don't know why the man page suggests using
> the /dev/ttyXX device. The /etc/remote file uses the cua device.
I use cu(1) too, but always with the -l option. Probably because I'm
too lazy to setup a system name.
Also: the fact that we have fingerfriendly shortcuts in /etc/remote
as well as calling them that way is sufficient indication that cua*
is just plain non-obvious and ackward to a lot of users.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 3
Date: Wed, 14 Jul 2004 20:47:12 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: Some netgraph node global locking patches
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <12939.1089830832@critter.freebsd.dk>
In message <20040714184240.GB11214@cell.sick.ru>, Gleb Smirnoff writes:
>On Wed, Jul 14, 2004 at 08:36:01PM +0200, Poul-Henning Kamp wrote:
>P> >Yes it does. But qsort() already used in ng_ppp is as much recursive as
>P> >qsort_r() is. It will help us to get rid of global variable.
>P> >I Cc phk@ to this mail, because he copied qsort() to libkern from libc.
>P>
>P> It was put there to get rid of a couple of badly implemented bubble
>P> sorts.
>P>
>P> It is true that qsort() is recursive, but it is limited to log2(N)
>P> levels and kernel programmers hopefully don't routinely sort arrays
>P> of hundreds of things in the kernel.
>
>>From a snap view I see no problems copying qsort_r() to libkern. What
>do you think? It will help us to get rid of global in ng_ppp.
Ok for me.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
------------------------------
Message: 4
Date: Wed, 14 Jul 2004 14:50:11 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: 5.2-CURRENT still not working on my mitac 8080
To: freebsd-mobile@FreeBSD.org, "David W. Chapman Jr."
<dwcjr@inethouston.net>
Cc: current@FreeBSD.org
Message-ID: <200407141450.11977.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 14 July 2004 09:25 am, David W. Chapman Jr. wrote:
> When I boot in safe mode here is the console output
>
> pir0: <PCI Interrupt Routing Table: 9 Entries> on motherboard
> $PIR: BIOS IRQ 10 for 1.4.INTA does not match link 0x61 irq 5
> pci0: <PCI bus> on pcib0
Look for a BIOS upgrade. It sounds like your BIOS has badly busted interrupt
routing.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 5
Date: Wed, 14 Jul 2004 13:57:11 -0500
From: "David W. Chapman Jr." <dwcjr@inethouston.net>
Subject: Re: 5.2-CURRENT still not working on my mitac 8080
To: John Baldwin <jhb@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <40F58207.3010903@inethouston.net>
Content-Type: text/plain; charset="us-ascii"
John Baldwin wrote:
>On Wednesday 14 July 2004 09:25 am, David W. Chapman Jr. wrote:
>
>
>>When I boot in safe mode here is the console output
>>
>>pir0: <PCI Interrupt Routing Table: 9 Entries> on motherboard
>>$PIR: BIOS IRQ 10 for 1.4.INTA does not match link 0x61 irq 5
>>pci0: <PCI bus> on pcib0
>>
>>
>
>Look for a BIOS upgrade. It sounds like your BIOS has badly busted interrupt
>routing.
>
>
>
I think I can get one, I don't have a problem running 4.X though, would
that be consistent with the problem you described?
------------------------------
Message: 6
Date: Wed, 14 Jul 2004 21:25:53 +0200
From: "Terrence Koeman" <root@mediamonks.net>
Subject: RE: Kernel trap 12; panic
To: <freebsd-current@freebsd.org>
Message-ID: <200407142125442.SM01804@manrikigusari>
Content-Type: text/plain; charset="us-ascii"
It just locked up again and displayed this on the console:
panic: _mtx_lock_sleep: recursed on non-recursive mutex UMA pcpu @
/usr/src/sys/vm/uma_core.c:1629
cpuid = 0;
Uptime: 52m34s
--
Regards,
Terrence Koeman
MediaMonks B.V. (www.mediamonks.com)
Please quote all replies in correspondence.
> -----Original Message-----
> From: owner-freebsd-current@freebsd.org
> [mailto:owner-freebsd-current@freebsd.org] On Behalf Of
> Terrence Koeman
> Sent: Wednesday, July 14, 2004 13:02
> To: freebsd-current@freebsd.org
> Subject: Kernel trap 12; panic
>
> Hi,
>
> I have installed 5.2-CURRENT on a computer to see what 5.x is
> like, and I'm
> having a weird problem.
>
> At random intervals the server just 'disappeared' (it is
> remote). I enabled
> every debug feature I could find, but the logs show nothing
> at all. In the
> end I connected a serial console to see if something was
> showing there and
> see if it wasn't just network access that dropped, and this was on it:
>
> ******************
> kernel trap 12 with interrupts disabled
>
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address = 0xde00eab4
> fault code = supervisor read, page not present
> instruction pointer = 0x8:0xc04bccc4
> stack pointer = 0x10:0xde40eaa0
> frame pointer = 0x10:0xde00eabc
> code segment = base 0x0, limit 0xfffff, type 0x1b
> = DPL 0, pres 1, def32 1, gran 1
> processor eflags = resume, IOPL = 0
> current process = 6911 (httpd)
> trap number = 12
> panic: page fault
> cpuid = 0;
> spin lock sched lock held by 0xc3001840 for > 5 seconds
> panic: spin lock held too long
> cpuid = 0;
> ******************
>
> It seems to have something to do with apache, but I have no idea. Can
> someone help me out here? What is this and how do I fix it?
>
> If more information is required I will be happy to provide
> it, thanks in
> advance.
>
> --
> Regards,
> Terrence Koeman
>
> MediaMonks B.V. (www.mediamonks.com)
> Please quote all replies in correspondence.
>
>
>
> My dmesg:
> ******************
> Copyright (c) 1992-2004 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992,
> 1993, 1994
> The Regents of the University of California. All
> rights reserved.
> FreeBSD 5.2-CURRENT #5: Tue Jun 29 15:58:22 CEST 2004
> root@horray.mediamonks.net:/usr/obj/usr/src/sys/HORRAY
> WARNING: WITNESS option enabled, expect reduced performance.
> WARNING: DIAGNOSTIC option enabled, expect reduced performance.
> Preloaded elf kernel "/boot/kernel/kernel" at 0xc0759000.
> Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07591f4.
> ACPI APIC Table: <IntelR AWRDACPI>
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel(R) Celeron(R) CPU 2.60GHz (2600.45-MHz 686-class CPU)
> Origin = "GenuineIntel" Id = 0xf29 Stepping = 9
>
> Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SE
P,MTRR,PGE,MCA
> ,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> real memory = 528416768 (503 MB)
> avail memory = 511705088 (488 MB)
> ioapic0 <Version 2.0> irqs 0-23 on motherboard
> random: <entropy source, Software, Yarrow>
> Pentium Pro MTRR support enabled
> npx0: [FAST]
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> acpi0: <IntelR AWRDACPI> on motherboard
> acpi0: [GIANT-LOCKED]
> pcibios: BIOS version 2.10
> acpi0: Power Button (fixed)
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
> cpu0: <ACPI CPU> on acpi0
> acpi_tz0: <Thermal Zone> on acpi0
> acpi_button0: <Power Button> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> agp0: <Intel 82845G (845G GMCH) SVGA controller> mem
> 0xec100000-0xec17ffff,0xe0000000-0xe7ffffff irq 16 at device
> 2.0 on pci0
> agp0: detected 8060k stolen memory
> agp0: aperture size is 128M
> pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> atapci0: <Promise PDC20271 UDMA133 controller> port
> 0xa000-0xa00f,0x9c00-0x9c03,0x9800-0x9807,0x9400-0x9403,0x9000
> -0x9007 mem
> 0xec040000-0xec04ffff irq 17 at device 0.0 on pci1
> ata2: at 0x9000 on atapci0
> ata3: at 0x9800 on atapci0
> em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port
> 0xa400-0xa43f mem 0xec000000-0xec01ffff irq 22 at device 5.0 on pci1
> em0: [GIANT-LOCKED]
> em0: Ethernet address: 00:30:48:42:96:0e
> em0: Speed:N/A Duplex:N/A
> em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port
> 0xa800-0xa83f mem 0xec020000-0xec03ffff irq 23 at device 6.0 on pci1
> em1: [GIANT-LOCKED]
> em1: Ethernet address: 00:30:48:42:96:0f
> em1: Speed:N/A Duplex:N/A
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci1: <Intel ICH4 UDMA100 controller> port
> 0xcc00-0xcc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device
> 31.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci1
> ata1: at 0x170 irq 15 on atapci1
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
> 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> sio0 port 0x3f8-0x3ff irq 4 on acpi0
> sio0: type 16550A, console
> sio1 port 0x2f8-0x2ff irq 3 on acpi0
> sio1: type 16550A
> atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
> orm0: <Option ROM> at iomem 0xcc000-0xd57ff on isa0
> pmtimer0 on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x100>
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem
> 0xa0000-0xbffff on isa0
> Timecounter "TSC" frequency 2600451508 Hz quality 800
> Timecounters tick every 1.000 msec
> ipfw2 initialized, divert disabled, rule-based forwarding
> enabled, default
> to accept, logging limited to 20 packets/entry by default
> acd0: CDROM <CD-224E> at ata0-master PIO4
> ad4: 156334MB <Maxtor 6Y160P0> [317632/16/63] at ata2-master UDMA133
> ad6: 156334MB <Maxtor 6Y160P0> [317632/16/63] at ata3-master UDMA133
> ar0: 156334MB <ATA RAID1 array> [19929/255/63] status: READY subdisks:
> disk0 READY on ad4 at ata2-master
> disk1 READY on ad6 at ata3-master
> Mounting root from ufs:/dev/ar0s1a
> em0: Link is up 100 Mbps Full Duplex
> Expensive timeout(9) function: 0xc052f7a0(0) 0.007335848 s
> em1: Link is up 100 Mbps Full Duplex
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3791 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
051873e9/smime-0001.bin
------------------------------
Message: 7
Date: Wed, 14 Jul 2004 21:34:16 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: calcru: runtime went backwards
To: Doug White <dwhite@gumbysoft.com>
Cc: current@freebsd.org
Message-ID: <20040714193415.GA4481@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii
Hi Doug,
Doug White wrote on Wed, Jul 14, 2004 at 10:24:54AM -0700:
[..]
> > 1. I get tons of messages like this on the console:
> >
> > calcru: runtime went backwards from 31915600 usec to 31915590 usec for pid
1265 (httpd)
>
> FreeBSD version or source update time would be nice.
sys/param.h:
#define __FreeBSD_version 502120
kern.osreldate: 502120
source updated I guess July 6th, with some manually applied
patches:
./dev/sio/sio.c.patch (fix by Bruce Evans)
./kern/subr_witness.c.patch (fix by John Baldwin)
./netinet/tcp_output.c.patch (only diagnostics)
> Do you have WITNESS and/or INVARIANTS enabled?
Yes both.
> > It always seems to be a httpd process. httpd is apache2 linked with
> > "libthr". It especially happens if I use the 'ps' and the 'top'
> > command. If this happens, the controlling terminal where the
> > command (e.g. ps) was issued, hangs for a while. Everything else
> > seems to be fine, though.
> >
> > I recall that there was a thread in -current about this matter,
> > but I couldn't find any solution right now...
>
> There aren't a lot of libthr uses... thought of trying libpthread?
Yes sure. But I thought Apache is the showcase application for
libthr and the corresponding threading model. Also, I guess a more
widespread use should help ironing out any issues with that.
[..]
> > Jul 14 18:04:23 atleo6 ftpd[82055]: getsockname (/usr/libexec/ftpd): Socke
t operation on non-socket
> > [..]
> >
> > What could be wrong with ftpd here? I thought about ktracing ftpd, but
> > there are 200-300 concurrent ftpd processes active and the messages
> > appear very irregulary. If I could ktrace the parent ftpd and all
> > its childen, I'm afraid the trace-log would fill up all disk-space
> > before the problem even appears... Suggestions are appreciated
> > though.
>
> Is this the stock ftpd?
Yes, indeed (should be obvious from the path /usr/libexec/ftpd).
I start ftpd standalone with the following options:
/usr/libexec/ftpd -A -D -l -W -r -S -a ftp.leo.org -p /var/run/ftpd.pid
Cheers,
Daniel
--
IRCnet: Mr-Spock - Eddie would go! -
Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/
------------------------------
Message: 8
Date: Wed, 14 Jul 2004 21:39:19 +0200
From: Eirik Oeverby <ltning@anduin.net>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Garance A Drosihn <drosih@rpi.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <40F58BE7.9050601@anduin.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Garance A Drosihn wrote:
> At 11:30 AM +0100 7/14/04, Steve O'Hara-Smith wrote:
>
>> On Wed, 14 Jul 2004 11:03:10 +0200
>> Michael Nottebrock <michaelnottebrock@gmx.net> wrote:
>>
>> > mergemaster -p needs to happen before installworld, earlier than
>> > that is not required.
>>
>> From man mergemaster:
>>
>> -p Pre-buildworld mode. Compares only files known to
>> be essential to the success of {build|install}world,
>> including /etc/make.conf.
>>
>> I rest my case.
>
>
> Someday we have to clean these instructions up, and make sure we
> have a short, consistent set of instructions. And that we are
> saying the same thing everywhere we say anything about updating
> the system. So far, we have never *needed* `mergemaster -p'
> before buildworld, and I think it is confusing to tell users it
> should be done then.
This is NOT true. Recently mergemaster -p insisted that I add certain
users and groups to my passwd/group files, to support pf. Without that,
I bet installworld would have gone down in flames .. correct me if I'm
wrong (or don't bother, since this is a pretty unimportant point anyway :)
/Eirik
>
> Why? Because we claim to support:
> Non-root user, on some machine does:
> buildworld
> buildkernel
> Then go to many different machines, and as root do:
> installkernel
> mergemaster -p
> reboot
> installworld
> mergemaster
>
> If `mergemaster -p' is done before *buildworld*, then that implies
> it only has to be done once -- even when installing on multiple
> machines.
>
> And the fact of the matter is that any checks which *do* have to
> happen before buildworld, are done *in* /usr/src/Makefile by
> the target 'upgrade_checks'. mergemaster -p is not needed before
> buildworld.
>
> Also note that in /usr/src/Makefile itself, we explicitly state
> that the correct order is:
>
> # For individuals wanting to upgrade their sources (even if only a
> # delta of a few days):
> #
> # 1. `cd /usr/src' (or to the directory containing your source
> tree).
> # 2. `make buildworld'
> # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is
> GENERIC).
> # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is
> GENERIC).
> # 5. `reboot' (in single user mode: boot -s from the loader
> prompt).
> # 6. `mergemaster -p'
> # 7. `make installworld'
> # 8. `mergemaster'
> # 9. `reboot'
>
> In some sense I don't care what the order is, but we should not
> be claiming one order in /usr/src/Makefile, and have a different
> order implied by the man page for mergemaster.
>
------------------------------
Message: 9
Date: Wed, 14 Jul 2004 14:41:19 -0500
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: freebsd-current@freebsd.org
Message-ID: <200407141441.23158.kirk@strauser.com>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 2004-07-14 01:36 pm, Garance A Drosihn wrote:
> It is not that your instructions are wrong, it is that your instructions
> involve more typing, and for some people that extra typing does not gain
> them anything.
Is there ever a reason why someone would want their jail environments to be
built from a different source checkout than the host environment? It seems
that "make world DESTDIR=/foo" would be upgrade that jail's userland to
newer release than their main system, *unless* they had just upgraded their
host environment, in which case I would think they'd want to use
the /usr/obj tree they've already compiled instead of building a new one
for each jail.
Is that right, or are people using their jails in ways that hadn't occurred
to me?
--
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
20abe014/attachment-0001.bin
------------------------------
Message: 10
Date: Thu, 15 Jul 2004 00:00:34 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: Some netgraph node global locking patches
To: Robert Watson <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040714200034.GC11637@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r
On Wed, Jul 14, 2004 at 12:03:57PM -0400, Robert Watson wrote:
R>
R> > On Wed, Jul 14, 2004 at 10:25:31AM -0400, Robert Watson wrote:
R> > R> > On Wed, Jul 14, 2004 at 12:30:40AM -0400, Robert Watson wrote:
R> > R> > R> //depot/vendor/freebsd/src/sys/netgraph/ng_eiface.c
R> > R> > R> //depot/vendor/freebsd/src/sys/netgraph/ng_fec.c
R> > R> > R> //depot/vendor/freebsd/src/sys/netgraph/ng_iface.c
R> > R> >
R> > R> > Well, these three are quite straightforward and identical. Look fine
.
R> > R>
R> > R> I was somewhat hoping someone would actually give them a try and
R> > R> demonstrate that practice matches the theory. :-)
R> >
R> > I can test ng_iface. Since change is similar we could assume ng_eiface,
R> > ng_fec tested, then. Would it be enough to test on UP hardware?
R>
R> Yes, as long as you're running with witness and invariants, and can
R> exercise each of the code paths that hits mutexes (and return paths) it
R> should be sufficient to merge the changes.
Well, running 15 such scripts simultaneously didn't cause any panics/LORs:
#!/usr/local/bin/bash
while (true); do
num=`expr \( ${RANDOM} \* 255 \) / 32767`
ngctl mkpeer iface dummy inet
ngctl shutdown ng${num}: >/dev/null 2>&1
done
AFAIK, this LOR can't be related to this mutex:
lock order reversal
1st 0xc0766ec0 cdev (cdev) @ /usr/src/sys/kern/kern_conf.c:81
2nd 0xc103a100 system map (system map) @ /usr/src/sys/vm/vm_kern.c:320
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
------------------------------
Message: 11
Date: Wed, 14 Jul 2004 16:04:26 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: 5.2-CURRENT still not working on my mitac 8080
To: freebsd-mobile@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID: <200407141604.26452.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 14 July 2004 02:57 pm, David W. Chapman Jr. wrote:
> John Baldwin wrote:
> >On Wednesday 14 July 2004 09:25 am, David W. Chapman Jr. wrote:
> >>When I boot in safe mode here is the console output
> >>
> >>pir0: <PCI Interrupt Routing Table: 9 Entries> on motherboard
> >>$PIR: BIOS IRQ 10 for 1.4.INTA does not match link 0x61 irq 5
> >>pci0: <PCI bus> on pcib0
> >
> >Look for a BIOS upgrade. It sounds like your BIOS has badly busted
> > interrupt routing.
>
> I think I can get one, I don't have a problem running 4.X though, would
> that be consistent with the problem you described?
4.x isn't smart enough to ask the BIOS how to route interrupts from the BIOS
tables, it just assumes that the way it booted is ok.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 12
Date: Wed, 14 Jul 2004 22:05:10 +0200
From: Jonathan Weiss <tomonage2@gmx.de>
Subject: AW: CVSUP and 5.2.1 RELEASE
To: Eirik Oeverby <ltning@anduin.net>, Garance A Drosihn
<drosih@rpi.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <BD1B5E96.5187%tomonage2@gmx.de>
Content-Type: text/plain; charset="US-ASCII"
> Garance A Drosihn wrote:
>> At 11:30 AM +0100 7/14/04, Steve O'Hara-Smith wrote:
>>
>>> On Wed, 14 Jul 2004 11:03:10 +0200
>>> Michael Nottebrock <michaelnottebrock@gmx.net> wrote:
>>>
>>>> mergemaster -p needs to happen before installworld, earlier than
>>>> that is not required.
>>>
>>> From man mergemaster:
>>>
>>> -p Pre-buildworld mode. Compares only files known to
>>> be essential to the success of {build|install}world,
>>> including /etc/make.conf.
>>>
>>> I rest my case.
>>
>>
>> Someday we have to clean these instructions up, and make sure we
>> have a short, consistent set of instructions. And that we are
>> saying the same thing everywhere we say anything about updating
>> the system. So far, we have never *needed* `mergemaster -p'
>> before buildworld, and I think it is confusing to tell users it
>> should be done then.
>
> This is NOT true. Recently mergemaster -p insisted that I add certain
> users and groups to my passwd/group files, to support pf. Without that,
> I bet installworld would have gone down in flames .. correct me if I'm
> wrong (or don't bother, since this is a pretty unimportant point anyway :)
>
> /Eirik
This is true. He is talking of make buildworld, not installworld.
>
>>
>> Why? Because we claim to support:
>> Non-root user, on some machine does:
>> buildworld
>> buildkernel
>> Then go to many different machines, and as root do:
>> installkernel
>> mergemaster -p
>> reboot
>> installworld
>> mergemaster
>>
>> If `mergemaster -p' is done before *buildworld*, then that implies
>> it only has to be done once -- even when installing on multiple
>> machines.
>>
>> And the fact of the matter is that any checks which *do* have to
>> happen before buildworld, are done *in* /usr/src/Makefile by
>> the target 'upgrade_checks'. mergemaster -p is not needed before
>> buildworld.
>>
>> Also note that in /usr/src/Makefile itself, we explicitly state
>> that the correct order is:
>>
>> # For individuals wanting to upgrade their sources (even if only a
>> # delta of a few days):
>> #
>> # 1. `cd /usr/src' (or to the directory containing your source
>> tree).
>> # 2. `make buildworld'
>> # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is
>> GENERIC).
>> # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is
>> GENERIC).
>> # 5. `reboot' (in single user mode: boot -s from the loader
>> prompt).
>> # 6. `mergemaster -p'
>> # 7. `make installworld'
>> # 8. `mergemaster'
>> # 9. `reboot'
>>
>> In some sense I don't care what the order is, but we should not
>> be claiming one order in /usr/src/Makefile, and have a different
>> order implied by the man page for mergemaster.
>>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>
------------------------------
Message: 13
Date: Wed, 14 Jul 2004 16:13:46 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Eirik Oeverby <ltning@anduin.net>
Cc: freebsd-current@freebsd.org
Message-ID: <p06110420bd1b3d2cd289@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 9:39 PM +0200 7/14/04, Eirik Oeverby wrote:
>Garance A Drosihn wrote:
>>
>>Someday we have to clean these instructions up, and make sure we
>>have a short, consistent set of instructions. And that we are
>>saying the same thing everywhere we say anything about updating
>>the system. So far, we have never *needed* `mergemaster -p'
>>before buildworld, and I think it is confusing to tell users it
^^^^^^^^^^^ - NOTE
>>should be done then.
>
>This is NOT true. Recently mergemaster -p insisted that I add
>certain users and groups to my passwd/group files, to support
>pf. Without that, I bet installworld would have gone down in
^^^^^^^^^^^^ - NOTE
>flames .. correct me if I'm wrong (or don't bother, since this
>is a pretty unimportant point anyway :)
Hmm. I fail to see your point. What I said was:
"We have never needed `mergemaster -p' before *-BUILDWORLD-*".
You then emphatically state that I am wrong, and offer an
example which talks about INSTALLWORLD. Not BUILDWORLD --
which is what *I* was talking about -- but INSTALLWORLD.
I don't want to sound like a screaming lunatic here, but I do
think you have missed a very significant detail in what I was
saying. Note that I also quoted /usr/src/Makefile, which says:
>># 1. `cd /usr/src' (or to the directory containing your source tree).
>># 2. `make buildworld'
>># 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC).
>># 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC).
>># 5. `reboot' (in single user mode: boot -s from the loader prompt).
>># 6. `mergemaster -p'
>># 7. `make installworld'
>># 8. `mergemaster'
>># 9. `reboot'
Note that this *does* do mergemaster -p before installworld. Not
before buildworld, but definitely before installworld.
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
------------------------------
Message: 14
Date: Wed, 14 Jul 2004 17:11:40 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Problems with i82077, NE72065 or clone floppy drive
controllers (Was: i need my floppy disk drive.)
To: freebsd-current@FreeBSD.org
Cc: "Sarunas V." <vsarunas@eircom.net>
Message-ID: <200407141711.40280.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Saturday 10 July 2004 03:42 pm, Sarunas V. wrote:
> On 18:14, Sat 10 Jul 04, Michael Nottebrock wrote:
> [snip]
>
> > > I have the same floppy drive. On current(yesterday's), when
> > > booting with ACPI, I get the following message:
> > >
> > > fdc0: I/O to control range incorrect
> >
> > Have you tried debug.acpi.disabled="sysresource" in loader.conf?
>
> I tried it now, and the floppy works fine.
Tell Nate Lawson <njl@FreeBSD.org> if you haven't already that the sysresource
thing fixed your floppy drive.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 15
Date: Wed, 14 Jul 2004 17:14:29 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
lockups]
To: freebsd-current@FreeBSD.org
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <200407141714.29853.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Saturday 10 July 2004 09:21 am, Martin Blapp wrote:
> > Tried that. PREEMPTION seems to to be the culprit. It must be something
> > else.
>
> ^^^ not to be :-)
It normally isn't, it just exposes bugs in other places more readily.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 16
Date: Wed, 14 Jul 2004 17:14:29 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Kirk Strauser <kirk@strauser.com>, freebsd-current@freebsd.org
Message-ID: <p06110423bd1b5227bd61@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 2:41 PM -0500 7/14/04, Kirk Strauser wrote:
>
>Is there ever a reason why someone would want their jail
>environments to be built from a different source checkout
>than the host environment?
Certainly. Let's say the people in one jail are running a
special package which depends on certain versions of various
utilities or library versions. And people in a different
jail are running a different package which has a different
set of dependencies. Bingo. These jails must be built with
different snapshots of the userland.
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
------------------------------
Message: 17
Date: Wed, 14 Jul 2004 23:39:04 +0200
From: Eirik Oeverby <ltning@anduin.net>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Garance A Drosihn <drosih@rpi.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <40F5A7F8.8080905@anduin.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Garance A Drosihn wrote:
> At 9:39 PM +0200 7/14/04, Eirik Oeverby wrote:
>
>> Garance A Drosihn wrote:
>>
>>>
>>> Someday we have to clean these instructions up, and make sure we
>>> have a short, consistent set of instructions. And that we are
>>> saying the same thing everywhere we say anything about updating
>>> the system. So far, we have never *needed* `mergemaster -p'
>>> before buildworld, and I think it is confusing to tell users it
>
> ^^^^^^^^^^^ - NOTE
>
>>> should be done then.
>>
>>
>> This is NOT true. Recently mergemaster -p insisted that I add
>> certain users and groups to my passwd/group files, to support
>> pf. Without that, I bet installworld would have gone down in
>
> ^^^^^^^^^^^^ - NOTE
>
>> flames .. correct me if I'm wrong (or don't bother, since this
>> is a pretty unimportant point anyway :)
>
>
> Hmm. I fail to see your point. What I said was:
>
> "We have never needed `mergemaster -p' before *-BUILDWORLD-*".
>
Sorry, I apologise - read you wrong there.
Still - as far as I understand, the discussion is about make world,
which does both, with no mergemaster in between. My comment was aimed at
proving that mergemaster *can* be important at times.
Again, sorry for reading a bit fast.
/Eirik
> You then emphatically state that I am wrong, and offer an
> example which talks about INSTALLWORLD. Not BUILDWORLD --
> which is what *I* was talking about -- but INSTALLWORLD.
>
> I don't want to sound like a screaming lunatic here, but I do
> think you have missed a very significant detail in what I was
> saying. Note that I also quoted /usr/src/Makefile, which says:
>
>>> # 1. `cd /usr/src' (or to the directory containing your source
>>> tree).
>>> # 2. `make buildworld'
>>> # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is
>>> GENERIC).
>>> # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is
>>> GENERIC).
>>> # 5. `reboot' (in single user mode: boot -s from the loader
>>> prompt).
>>> # 6. `mergemaster -p'
>>> # 7. `make installworld'
>>> # 8. `mergemaster'
>>> # 9. `reboot'
>
>
> Note that this *does* do mergemaster -p before installworld. Not
> before buildworld, but definitely before installworld.
Yep. My bad, sorry.
------------------------------
Message: 18
Date: Wed, 14 Jul 2004 23:55:26 +0200
From: Dimitry Andric <dimitry@andric.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Garance A Drosihn <drosih@rpi.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <809987876.20040714235526@andric.com>
Content-Type: text/plain; charset="us-ascii"
On 2004-07-14 at 19:03:40 Garance A Drosihn wrote:
> And the fact of the matter is that any checks which *do* have to
> happen before buildworld, are done *in* /usr/src/Makefile by
> the target 'upgrade_checks'. mergemaster -p is not needed before
> buildworld.
The only thing I can think of, which also may be the reason that it's
called 'pre-buildworld' mode, is that it checks /etc/make.conf against
the make.conf from your sources. If any new knobs and/or options have
been introduced, you might want to tweak those first before you start
building...
Personally, I always run mergemaster -p just after cvsupping and
reading UPDATING, just to see if I didn't miss anything. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
3554a00f/attachment-0001.bin
------------------------------
Message: 19
Date: Wed, 14 Jul 2004 23:59:23 +0200
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Eirik Oeverby <ltning@anduin.net>
Cc: freebsd-current@FreeBSD.org
Message-ID: <200407142359.27024.michaelnottebrock@gmx.net>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 14 July 2004 21:39, Eirik Oeverby wrote:
> > So far, we have never *needed* `mergemaster -p'
> > before buildworld, and I think it is confusing to tell users it
> > should be done then.
>
> This is NOT true. Recently mergemaster -p insisted that I add certain
> users and groups to my passwd/group files, to support pf. Without that,
> I bet installworld would have gone down in flames ..
Correct, but (like the entry in UPDATING says also), running mergemaster -p
before _install_world is sufficient.
--
,_, | Michael Nottebrock | lofi@freebsd.org
(/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org
\u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
518607d8/attachment-0001.bin
------------------------------
Message: 20
Date: Wed, 14 Jul 2004 17:04:02 -0500
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: freebsd-current@freebsd.org
Message-ID: <200407141704.07142.kirk@strauser.com>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 2004-07-14 04:14 pm, Garance A Drosihn wrote:
> Certainly. Let's say the people in one jail are running a special package
> which depends on certain versions of various utilities or library
> versions. And people in a different jail are running a different package
> which has a different set of dependencies. Bingo. These jails must be
> built with different snapshots of the userland.
Is running a userspace that doesn't match the loaded kernel a supported
configuration, defined as "one not likely to bite you in the butt"?
Even if someone wants that setup, surely it's inadvisable for someone to
build a jail that's running a newer version of the OS then the host
environment, isn't it? And wouldn't that be the only reason you'd ever do
"make world DESTDIR=/foo" instead of:
# make buildworld
... appropriate intermediate steps
# make installworld
# make installworld DESTDIR=/foo
I don't want to be argumentative, so please don't take it that way. I'm
genuinely interested in the subject and want to know how other people are
maintaining their systems.
--
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
7c1774e5/attachment-0001.bin
------------------------------
Message: 21
Date: Wed, 14 Jul 2004 18:20:48 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: ahc driver now borked in -current?
To: freebsd-current@FreeBSD.org
Cc: "Jordan K. Hubbard" <jkh@queasyweasel.com>
Message-ID: <200407141820.48913.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Saturday 10 July 2004 05:51 pm, Jordan K. Hubbard wrote:
> ahc0: <Adaptec aic7890/91 Ultra2 SCSI adapter> port 0xb000-0xb0ff mem
> 0xdd800000
> -0xdd800fff irq 14 at device 6.0 on pci0
> ahc0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xb000
> ahc0: [GIANT-LOCKED]
> aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
IRQ 14 is almost definitely wrong. Try updating your BIOS or disabling ACPI.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 22
Date: Wed, 14 Jul 2004 15:26:19 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Problems with i82077, NE72065 or clone floppy drive
controllers (Was: i need my floppy disk drive.)
To: "Sarunas V." <vsarunas@eircom.net>
Cc: freebsd-current@FreeBSD.org
Message-ID: <40F5B30B.8020503@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
John Baldwin wrote:
> On Saturday 10 July 2004 03:42 pm, Sarunas V. wrote:
>
>>On 18:14, Sat 10 Jul 04, Michael Nottebrock wrote:
>>[snip]
>>
>>>>I have the same floppy drive. On current(yesterday's), when
>>>>booting with ACPI, I get the following message:
>>>>
>>>>fdc0: I/O to control range incorrect
>>>
>>>Have you tried debug.acpi.disabled="sysresource" in loader.conf?
>>
>>I tried it now, and the floppy works fine.
>
> Tell Nate Lawson <njl@FreeBSD.org> if you haven't already that the sysresour
ce
> thing fixed your floppy drive.
Please send me privately the output of devinfo -r both with and without ACPI
enabled.
-Nate
------------------------------
Message: 23
Date: Wed, 14 Jul 2004 15:45:55 -0700
From: Julian Elischer <julian@elischer.org>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Kirk Strauser <kirk@strauser.com>
Cc: freebsd-current@freebsd.org
Message-ID: <40F5B7A3.4070605@elischer.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Kirk Strauser wrote:
>On Wednesday 2004-07-14 04:14 pm, Garance A Drosihn wrote:
>
>
>
>>Certainly. Let's say the people in one jail are running a special package
>>which depends on certain versions of various utilities or library
>>versions. And people in a different jail are running a different package
>>which has a different set of dependencies. Bingo. These jails must be
>>built with different snapshots of the userland.
>>
>>
>
>Is running a userspace that doesn't match the loaded kernel a supported
>configuration, defined as "one not likely to bite you in the butt"?
>
>
Always follow the golden rule..
"Your kernel must be newer or the same age as everything else running on
the system"
>
>Even if someone wants that setup, surely it's inadvisable for someone to
>build a jail that's running a newer version of the OS then the host
>environment, isn't it? And wouldn't that be the only reason you'd ever do
>"make world DESTDIR=/foo" instead of:
>
# cvs checkout -r RELENG_4_8_RELEASE
..
>
> # make buildworld
> ... appropriate intermediate steps
> # make installworld
> # make installworld DESTDIR=/foo
>
>I don't want to be argumentative, so please don't take it that way. I'm
>genuinely interested in the subject and want to know how other people are
>maintaining their systems.
>
>
------------------------------
Message: 24
Date: Thu, 15 Jul 2004 00:46:07 +0200
From: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: "Marcel Moolenaar" <marcel@xcllnt.net>, "Poul-Henning Kamp"
<phk@phk.freebsd.dk>
Cc: stable@freebsd.org
Message-ID: <02c201c469f4$5a45b130$7890a8c0@dyndns.org>
Content-Type: text/plain; charset="iso-8859-1"
"Marcel Moolenaar" <marcel@xcllnt.net> wrote:
> On Wed, Jul 14, 2004 at 12:04:57PM +0200, Poul-Henning Kamp wrote:
> > The traditional naming has been the inserted "i" and "l" which I
> > agree is arcane. I'm not against changing it to ".init" and ".lock"
> > if we can get concensus.
>
> We can create a simple compatibility scheme: If the out argument
> to ttymakeslaves is a string of exactly 1 character, use the old
> naming scheme. Otherwise, a new naming scheme is used. In the old
> scheme, the slave (or out) devices are called cua*. In the new
> scheme the out devices have the name given by the out argument.
>
> Thus:
> sio(4) would call ttymakeslaves with in="d", out="a". This yields
> ttyd#, ttyid#, ttyld#
> cuaa#, cuaia#, cuala#
> uart(4) would call ttymakeslaves with in="u", out="uart". This could
> yield something like:
> ttyu#, ttyu#.init, ttyu#.lock
> uart#, uart#.init, uart#.lock
>
> Just a thought. See also below.
>
> > I would prefer to stick to the "tty" and "cua" prefixes however.
>
> I can agree on the tty prefix. I've always disliked the cua prefix,
> simply because it's nonsensical. It's the kind of prefix you pick
man cu(1) says :
The cu interface is included for those people attached to the
``call UNIX'' command of Version 7 AT&T UNIX.
looking at Version 7 AT&T cu(1c) manual page:
cu telno [ -t ] [ -s speed ] [ -a acu ] [ -l line ]
..
The -a and -l values may be used to specify pathnames for the ACU and
communications line devices. They can be used to override the follow-
ing built-in choices:
-a /dev/cua0 -l /dev/cul0
which translates to the following line under FreeBSD :
-a /dev/cuaa0 -l /dev/ttyd0
-a seems to be a write only device (the one to write to the modem)
and -l a read only one (the one to read from the modem) -- (not verified).
for memory, ACU stands for "Automatic Call Unit". so, the "cu" device
name is not a so non-sense naming scheme.
> when all the good (and bad) ones have been used and you randomly
> grab 3 letters from your scrabble box, sigh, and accept that once
> again luck hasn't been on your side :-) :-)
>
> Seriously: the origin of cua is mostly lost and systems like UUCP
> have already been removed from the source tree. Anybody new to
> FreeBSD and who hasn't been around since the epoch will completely
> fail to see why the device is called the way it is.
the problem w/ moving cua* to something else is that you will probably
broke many programs w/ an unecessary change, IMHO.
> But anyway, if you think that all serial devices should have tty$#
> and cua$#, then just implement it that way. It's better to get this
> rework behind us. I can adjust. If not, then I can at least commit :-)
cua* are supposed to be the line to talk to a modem w/ modem control
(CD, etc.) while tty* are not supposed to talk to a modem and doesn't
have modem control.
however, I didn't have used my modem for a long time now, so, I may be
wrong w/ the current implementation.
Cyrille Lefevre.
--
home: mailto:cyrille.lefevre@laposte.net
------------------------------
Message: 25
Date: Thu, 15 Jul 2004 01:13:16 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Cc: stable@freebsd.org
Message-ID: <2730.1089846796@critter.freebsd.dk>
In message <02c201c469f4$5a45b130$7890a8c0@dyndns.org>, "Cyrille Lefevre" writ
e
s:
>cua* are supposed to be the line to talk to a modem w/ modem control
>(CD, etc.) while tty* are not supposed to talk to a modem and doesn't
>have modem control.
Uhm, the other way around actually.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
------------------------------
Message: 26
Date: Wed, 14 Jul 2004 19:23:10 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Kirk Strauser <kirk@strauser.com>, freebsd-current@freebsd.org
Message-ID: <p06110426bd1b6a957743@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 5:04 PM -0500 7/14/04, Kirk Strauser wrote:
>On Wednesday 2004-07-14, Garance A Drosihn wrote:
>
> > Certainly. Let's say the people in one jail are running a
> > special package which depends on certain versions of various
> > utilities or library versions. And people in a different jail
> > are running a different package which has a different set of
> > dependencies. Bingo. These jails must be built with different
> > snapshots of the userland.
>
>Is running a userspace that doesn't match the loaded kernel a
>supported configuration, defined as "one not likely to bite you
>in the butt"?
To simplify the discussion, think about it as just two things.
1) the kernel,
2) the userland (/bin, /usr/lib, /usr/includes, etc).
You can often run and older userland on the latest kernel. In
fact, our upgrade instructions depend on this. After all, you
end up running `make installworld' while you are using the newer
kernel -- but that `make installworld' will start off by using
programs which are left over from an earlier system snapshot.
However, the reverse is not true. If you try to run a recent
userland on an older kernel, the newer programs and libraries
will often expect features that the older kernel does not have.
And even when the older userland does not work with the latest
kernel, it is probably true that it would not take much effort
to fix things such that a older-but-slightly-modified userland
will work just fine on a more recent kernel. Usually it is just
a matter of making sure the older userland is recompiled with a
few key changes in the system include files. And you might have
to do something special with a few programs, such as /bin/ps,
which know a little too much about the kernel so they have to
match the kernel.
>Even if someone wants that setup, surely it's inadvisable for
>someone to build a jail that's running a newer version of the
>OS then the host environment, isn't it?
When you say "the OS" in this context, you are really talking
about the userland. It is true that you will probably have
trouble if you try to run a newer userland on an older kernel.
However, it is also very unlikely that you will *want* to do
that. It is much more likely that you will want to run an
*older* userland on the most-recent kernel.
You might want to build a jail, for instance, which *looks*
like it is FreeBSD 3.x to the user, even though your machine
is really running the kernel from FreeBSD 4.10. This is very
useful for some kinds of testing, for instance. (although for
testing, this is usually done as a plain 'chroot' environment,
and not a full-blown jail...).
>I don't want to be argumentative, so please don't take it that
>way. I'm genuinely interested in the subject and want to know
>how other people are maintaining their systems.
Well, I'm sure we're boring many people with this tangent, but
I hope that gives you an idea of some of the things that people
*might* want to do with multiple jailed environments.
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
------------------------------
Message: 27
Date: Wed, 14 Jul 2004 17:20:28 -0700
From: Julian Elischer <julian@elischer.org>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Garance A Drosihn <drosih@rpi.edu>
Cc: Kirk Strauser <kirk@strauser.com>
Message-ID: <40F5CDCC.8050209@elischer.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Garance A Drosihn wrote:
>
> You might want to build a jail, for instance, which *looks*
> like it is FreeBSD 3.x to the user, even though your machine
> is really running the kernel from FreeBSD 4.10. This is very
> useful for some kinds of testing, for instance. (although for
> testing, this is usually done as a plain 'chroot' environment,
> and not a full-blown jail...).
I have a jail of FreeBSD 1.1
you need one change in teh kernel to make it work properly
(1.1 can't cope with PIDs being > 65535 as they now are)
and a new copy of ps and netstat (and the other usual suspects) are
required.
but "make buildworld" REALLY flies :-)
------------------------------
Message: 28
Date: Wed, 14 Jul 2004 20:33:53 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: freebsd-current@FreeBSD.org
Cc: Kirk Strauser <kirk@strauser.com>
Message-ID: <200407142033.53221.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 14 July 2004 08:20 pm, Julian Elischer wrote:
> Garance A Drosihn wrote:
> > You might want to build a jail, for instance, which *looks*
> > like it is FreeBSD 3.x to the user, even though your machine
> > is really running the kernel from FreeBSD 4.10. This is very
> > useful for some kinds of testing, for instance. (although for
> > testing, this is usually done as a plain 'chroot' environment,
> > and not a full-blown jail...).
>
> I have a jail of FreeBSD 1.1
>
> you need one change in teh kernel to make it work properly
> (1.1 can't cope with PIDs being > 65535 as they now are)
> and a new copy of ps and netstat (and the other usual suspects) are
> required.
>
> but "make buildworld" REALLY flies :-)
I thought make buildworld didn't come in to existence until 2.2.5?
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 29
Date: Wed, 14 Jul 2004 20:33:55 -0400 (EDT)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: Re: Network related procs hang in unusual sfpbsy state
To: Doug White <dwhite@gumbysoft.com>
Cc: freebsd-current@freebsd.org
Message-ID: <16629.53491.242495.5678@grasshopper.cs.duke.edu>
Content-Type: text/plain; charset=us-ascii
Doug White writes:
> On Mon, 12 Jul 2004, Gary Stanley wrote:
>
> > New current kernel from about 3 days ago, certain processes hang after
> > about a day in this state;
> >
> > 80 599 1 0 -16 -2 59020 53548 sfpbsy D< ?? 1141:08.65
> > /mnt/zeus/web/bin/zeus.web
>
> sfpbsy is used in do_sendfile(). It blocks on this if a page for the file
> its trying to send is busy. It may be blocked on another process or the
> volume its on is taking a while to page the page in. You might check the
> logs or whatever for zeus and see if all of them are hung trying to
> request the same file, or if its on the same filesystem.
>
> Anyone who understands the reason things get marked PG_BUSY can chime in
> here :)
It basically means "don't touch this page" and is set when the page is
being changed. Eg, when vm_fault() is working with a page, or when
vm_page_alloc() is allocating one.
Sendfile sleeps with also_m_busy=TRUE, which means that it could be
waiting for an io to complete and cause m->busy to drop to
zero. (vm_page_io_finish()).
Drew
------------------------------
Message: 30
Date: Wed, 14 Jul 2004 20:50:24 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: freebsd-current@FreeBSD.org
Cc: Cyrille Lefevre <clefevre-lists@9online.fr>
Message-ID: <200407142050.24677.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 14 July 2004 06:46 pm, Cyrille Lefevre wrote:
> cua* are supposed to be the line to talk to a modem w/ modem control
> (CD, etc.) while tty* are not supposed to talk to a modem and doesn't
> have modem control.
That's backwards. tty* will hang on open() until CD, while cua* will not. I
use cu with /dev/cua* a lot to do manual modem commands to dial into boxes.
However, /dev/tt* is used in /etc/ttys on the boxes I dial into to run a
getty on the receiving modem.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 31
Date: Wed, 14 Jul 2004 20:50:24 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: freebsd-current@FreeBSD.org
Cc: Cyrille Lefevre <clefevre-lists@9online.fr>
Message-ID: <200407142050.24677.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 14 July 2004 06:46 pm, Cyrille Lefevre wrote:
> cua* are supposed to be the line to talk to a modem w/ modem control
> (CD, etc.) while tty* are not supposed to talk to a modem and doesn't
> have modem control.
That's backwards. tty* will hang on open() until CD, while cua* will not. I
use cu with /dev/cua* a lot to do manual modem commands to dial into boxes.
However, /dev/tt* is used in /etc/ttys on the boxes I dial into to run a
getty on the receiving modem.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 32
Date: Wed, 14 Jul 2004 18:21:06 -0700
From: Julian Elischer <julian@elischer.org>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: John Baldwin <jhb@FreeBSD.org>
Cc: Kirk Strauser <kirk@strauser.com>
Message-ID: <40F5DC02.1040906@elischer.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
John Baldwin wrote:
>On Wednesday 14 July 2004 08:20 pm, Julian Elischer wrote:
>
>
>>Garance A Drosihn wrote:
>>
>>
>>>You might want to build a jail, for instance, which *looks*
>>>like it is FreeBSD 3.x to the user, even though your machine
>>>is really running the kernel from FreeBSD 4.10. This is very
>>>useful for some kinds of testing, for instance. (although for
>>>testing, this is usually done as a plain 'chroot' environment,
>>>and not a full-blown jail...).
>>>
>>>
>>I have a jail of FreeBSD 1.1
>>
>>you need one change in teh kernel to make it work properly
>>(1.1 can't cope with PIDs being > 65535 as they now are)
>>and a new copy of ps and netstat (and the other usual suspects) are
>>required.
>>
>>but "make buildworld" REALLY flies :-)
>>
>>
>
>I thought make buildworld didn't come in to existence until 2.2.5?
>
true..
it's "make world" that flies but my fingers finished it off from habit.
>
>
>
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 68, Issue 31
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[36m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m