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: tuning hints for PAE (Scott Long)
   2. Re: tuning hints for PAE (Daniel Lang)
   3. Re: tuning hints for PAE (Scott Long)
   4. Re: tuning hints for PAE (Daniel Lang)
   5. Re: 5.2-CURRENT still not working on my mitac 8080 (John Baldwin)
   6. Re: 5.2-CURRENT still not working on my mitac 8080
      (David W. Chapman Jr.)
   7. Re: parallel port *slow* (Palle Girgensohn)
   8. consistent hard lockup with recent kernels (Sean McNeil)
   9. unionfs on CURRENT for read only OK? (Chad Leigh -- Shire.Net LLC)
  10. Re: parallel port *slow* (Palle Girgensohn)
  11. Re: consistent hard lockup with recent kernels
      (Brian Fundakowski Feldman)
  12. Re: unionfs on CURRENT for read only OK? (Kris Kennaway)
  13. Re: 5.3-RELEASE TODO (Kris Kennaway)
  14. panic at sched_add_internal (Norikatsu Shigemura)
  15. Re: ACPI degrading.. ?  (Kevin Oberman)
  16. Re: 5.3-RELEASE TODO (Kris Kennaway)
  17. Re: 5.3-RELEASE TODO (Colin Percival)
  18. Re: acpi_video users needed  (Kevin Oberman)
  19. Re: panic at sched_add_internal (Norikatsu Shigemura)
  20. Re: install crashes on ThinkPad T41 (Dan Langille)
  21. vinum dangling vnode & GEOM stripe problems (Daniel Eriksson)
  22. RE: unionfs on CURRENT for read only OK? (Daniel Eriksson)
  23. Re: parallel port *slow* (Antony T Curtis)
  24. Re: panic at sched_add_internal (Norikatsu Shigemura)
  25. RE: vinum dangling vnode & GEOM stripe problems (Daniel Eriksson)
  26. Re: panic at sched_add_internal (Norikatsu Shigemura)
  27. Re: consistent hard lockup with recent kernels (Sean McNeil)
  28. Re: parallel port *slow* (and plip probs.) (Allan Fields)
  29. plip usage/problems (Allan Fields)
  30. Re: 5.3-RELEASE TODO (Tim Robbins)


----------------------------------------------------------------------

Message: 1
Date: Thu, 15 Jul 2004 12:38:29 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: tuning hints for PAE
To: Daniel Lang <dl@leo.org>
Cc: current@freebsd.org
Message-ID: <40F6CF25.2040105@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Daniel Lang wrote:

> Hi,
> 
> I've re-activated PAE for our server which has now 6 GB of RAM.
> 
> Thanks to a hint from Peter and basic knowledge about KVA, I have
> included
> 
> options         KVA_PAGES=768
> 
> in the kernel config. This should yield 2GB of KVA if I have
> understood Peter correctly.
> 
> 
> Now a panic has happened, I have a ddb trace:
> 
> [..]
> page_alloc(a81e46e0,1000,cf6f07ab,102,a04f4cd4) at 0xa045e4a2 = page_alloc+0
x1a
> slab_zalloc(a81e46e0,2,a81e4728,a81e46e0,b1de7624) at 0xa045e14b = slab_zall
oc+0x9f
> uma_zone_slab(a81e46e0,2,80,46e0,a81e4728) at 0xa045f3c0 = uma_zone_slab+0xb
0
> uma_zalloc_bucket(a81e46e0,2) at 0xa045f5ac = uma_zalloc_bucket+0x124
> uma_zalloc_arg(a81e46e0,0,2) at 0xa045f2c3 = uma_zalloc_arg+0x25f
> ffs_vget(a8200c00,1823ed,2,cf6f08ec,200) at 0xa043d1be = ffs_vget+0x2ea
> ffs_valloc(aa07a000,81b6,b113a280,cf6f08ec) at 0xa0426519 = ffs_valloc+0xe5

> ufs_makeinode(81b6,aa07a000,cf6f0bf8,cf6f0c0c) at 0xa0449539 = ufs_makeinode
+0x59
> ufs_create(cf6f0a6c,cf6f0b28,a03a515b,cf6f0a6c,678) at 0xa04461e6 = ufs_crea
te+0x26
> ufs_vnoperate(cf6f0a6c) at 0xa0449b4f = ufs_vnoperate+0x13
> vn_open_cred(cf6f0be4,cf6f0ce4,1b6,b113a280,a) at 0xa03a515b = vn_open_cred+
0x177
> vn_open(cf6f0be4,cf6f0ce4,1b6,a,a0543620) at 0xa03a4fe2 = vn_open+0x1e
> kern_open(b2955000,80a7911,0,20a,1b6) at 0xa039f474 = kern_open+0xd8
> open(b2955000,cf6f0d14,3,105ed,292) at 0xa039f398 = open+0x18
> syscall(80c002f,810002f,9f7f002f,8,283536d8) at 0xa049f6c3 = syscall+0x217
> Xint0x80_syscall() at 0xa048ce0f = Xint0x80_syscall+0x1f
> --- syscall (5, FreeBSD ELF32, open), eip = 0x282ce093, esp = 0x9f7fe30c, eb
p = 0x9f7fe338 ---
> [..]
> 
> trace may be truncated, I could not save everything including
> the panic message itself, alas. 
> 
> I don't have a crashdump (the dump-device was less than 6 GB, I have
> fixed this meanwhile, but it reminds me of Solaris which can dump
> only kernel and curproc pages if requested), but I suspect this panic
> is due to kernel-address space exhaustion. So maybe the KVA_PAGES
> was still wrong.
> 
> I also get the following message:
> 
> kern.ipc.maxpipekva exceeded; see tuning(7)
> 
> The hint is rather useless, since the tuning manpage does
> not cover a lot of aspects, including this parameter.
> 
> Hmmm, I think I used to have set
> 
> kern.maxusers=768 (I have cleared this now, to utilize the autotuning
> of this parameter). Maybe this was a problem as well.
> 
> In the past I used to have also set kern.ipc.nmbcluster, but IIRC
> this is now tuned automatically as well.
> 
> I have bumped kern.ipc.somaxconn to 1024 of course.
> 
> Anything other parameters I should look out for tuning?
> If there is some more comprehensive documentation than tuning(7)
> and the Handbook section (yes, I have read it), please let me know.
> 
> Cheers,
>  Daniel

Look at kern.maxvnodes and trim is down to a smaller amount if it's more
than about 100,000.  This of course depends on your workload.  If you
really need a lot of cached vnodes, then you'll need to tune elsewhere.

Scott


------------------------------

Message: 2
Date: Thu, 15 Jul 2004 20:58:01 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: tuning hints for PAE
To: Scott Long <scottl@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040715185801.GB7804@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii

Hi Scott,

Scott Long wrote on Thu, Jul 15, 2004 at 12:38:29PM -0600:
[..]
> Look at kern.maxvnodes and trim is down to a smaller amount if it's more
> than about 100,000.  This of course depends on your workload.  If you
> really need a lot of cached vnodes, then you'll need to tune elsewhere.
[..]

I was set to some value > 200000. I trimmed it down to 64000.
Caches vnodes help if I access many different files concurrently?

The machine hosts a heavy loaded ftp server, but I guess 200000
is a very very high value. Is there some way to check the 
vnode cache utilization? Maybe with vmstat -m ....

Thanks,
 Daniel
-- 
IRCnet: Mr-Spock                         - Der Zweite Platz ist Dreck -
 Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/

------------------------------

Message: 3
Date: Thu, 15 Jul 2004 13:00:38 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: tuning hints for PAE
To: Daniel Lang <dl@leo.org>
Cc: current@freebsd.org
Message-ID: <40F6D456.2040007@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Daniel Lang wrote:

> Hi Scott,
> 
> Scott Long wrote on Thu, Jul 15, 2004 at 12:38:29PM -0600:
> [..]
> 
>>Look at kern.maxvnodes and trim is down to a smaller amount if it's more
>>than about 100,000.  This of course depends on your workload.  If you
>>really need a lot of cached vnodes, then you'll need to tune elsewhere.
> 
> [..]
> 
> I was set to some value > 200000. I trimmed it down to 64000.
> Caches vnodes help if I access many different files concurrently?
> 
> The machine hosts a heavy loaded ftp server, but I guess 200000
> is a very very high value. Is there some way to check the 
> vnode cache utilization? Maybe with vmstat -m ....
> 
> Thanks,
>  Daniel

bash$ sysctl -a |grep vnode

kern.maxvnodes: 17806
        vnodes    21     5K      5K      145  16,32,64,128,256
kern.minvnodes: 4451
vm.stats.vm.v_vnodein: 3930
vm.stats.vm.v_vnodeout: 0
vm.stats.vm.v_vnodepgsin: 25583
vm.stats.vm.v_vnodepgsout: 0
vfs.numvnodes: 16133
vfs.wantfreevnodes: 25
vfs.freevnodes: 8096
debug.sizeof.vnode: 260

The indented line is from kern.malloc and gives you an
estimate of how much memory is being consumed by the
vnode pool.

Scott

------------------------------

Message: 4
Date: Thu, 15 Jul 2004 21:32:17 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: tuning hints for PAE
To: Scott Long <scottl@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040715193217.GC7804@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii

Hi,

Scott Long wrote on Thu, Jul 15, 2004 at 01:00:38PM -0600:
[..]
> bash$ sysctl -a |grep vnode
> 
> kern.maxvnodes: 17806
>        vnodes    21     5K      5K      145  16,32,64,128,256
> kern.minvnodes: 4451
> vm.stats.vm.v_vnodein: 3930
> vm.stats.vm.v_vnodeout: 0
> vm.stats.vm.v_vnodepgsin: 25583
> vm.stats.vm.v_vnodepgsout: 0
> vfs.numvnodes: 16133
> vfs.wantfreevnodes: 25
> vfs.freevnodes: 8096
> debug.sizeof.vnode: 260
> 
> The indented line is from kern.malloc and gives you an
> estimate of how much memory is being consumed by the
> vnode pool.

I see, ok, sysctl kern.malloc seems to be exactly the 
same as vmstat -m.

This does not appear to consume a lot of memory anyway, hmmm.
My values are the following (with adjusted maxvnodes):
[..]
kern.maxvnodes: 64000
       vnodes    35     7K      7K      166  16,32,64,128,256
kern.minvnodes: 52958
vm.stats.vm.v_vnodein: 568488
vm.stats.vm.v_vnodeout: 1
vm.stats.vm.v_vnodepgsin: 1384470
vm.stats.vm.v_vnodepgsout: 1
vfs.numvnodes: 190867
vfs.wantfreevnodes: 25
vfs.freevnodes: 135112
debug.sizeof.vnode: 264
[..]

So the actual consumed memory (7k ?) appears neglectible.
However, kern.minvnodes has nearly reached the now upper limit,
so maybe trimming maxvnodes to 64000 was maybe too small,
and the saved space appears not worth the effort?

I will bump it up a bit more...

What about the 35 vnodes "In Use" (reported by kern.malloc) but 
vfs.numvnodes: 190867, I am not sure how to interpret these
values....

As far as I understand it, a vnode is a kernel data-structure 
referring to a file-like entity (file, directory, socket, pipe, etc).
So there are obviously much more in use than 35. 190867 appears
too much, for ~ 400 active processes. Even if there are many 
filedescriptors open by each process, it is probably much less than 500
per process. But maybe if these include all cached vnodes, so
all vnodes which have been in use in the past, it could fit.

Sorry for being not too educated about this really basic
UNIX concept. :-}

Cheers,
 Daniel
-- 
IRCnet: Mr-Spock     - Agartim billiard bumba m'abdul in papejim twista 
-  rumba rock n rolla. Leik'ab mai. Spirzon Heroin se'osit gaula.     -
               - Marijuana esit gaula. Haschisch. Opis. - 
 Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/

------------------------------

Message: 5
Date: Thu, 15 Jul 2004 15:43:01 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: 5.2-CURRENT still not working on my mitac 8080
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: current@FreeBSD.org
Message-ID: <200407151543.01748.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 15 July 2004 10:08 am, David W. Chapman Jr. wrote:
> John Baldwin wrote:
> >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.
>
> Unfortunately I have just upgraded to the latest BIOS revision and the
> problem still exists.  I guess I'm dead in the water as far as 5.x goes?

Probably.  Is it broken when using ACPI as well?

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org

------------------------------

Message: 6
Date: Thu, 15 Jul 2004 14:52:33 -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: <40F6E081.7040209@inethouston.net>
Content-Type: text/plain; charset="us-ascii"



John Baldwin wrote:

>On Thursday 15 July 2004 10:08 am, David W. Chapman Jr. wrote:
>  
>
>>John Baldwin wrote:
>>    
>>
>>>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.
>>>      
>>>
>>Unfortunately I have just upgraded to the latest BIOS revision and the
>>problem still exists.  I guess I'm dead in the water as far as 5.x goes?
>>    
>>
>
>Probably.  Is it broken when using ACPI as well?
>
>  
>
with or without ACPI and safe mode yield no luck.  I guess its DragonFly 
or Fedora Core :)

------------------------------

Message: 7
Date: Thu, 15 Jul 2004 22:26:01 +0200
From: Palle Girgensohn <girgen@pingpong.net>
Subject: Re: parallel port *slow*
To: Antony T Curtis <antony.t.curtis@ntlworld.com>
Cc: current@freebsd.org
Message-ID: <86F29657A0347B8E2AF67E33@palle.girgensohn.se>
Content-Type: text/plain; charset=us-ascii; format=flowed

Ah, look cool, thanks for the pointer!

I did something else that also worked. I read about lptconfig in a thread 
here around June 14 about interrupt storming, so I've set the lpt device in 
polling mode, which works a lot better. Setting it to ECP seems even better 
than polling, though. I'll try it!

/Palle

--On torsdag, juli 15, 2004 19.00.18 +0100 Antony T Curtis 
<antony.t.curtis@ntlworld.com> wrote:

> On Thu, 2004-07-15 at 16:42, Palle Girgensohn wrote:
>> Hi!
>>
>>
>> For a while now my parallel port (with printer hooked up) has been
>> *really  SLOW*. Takes several minutes to print a single very simple page.
>>
>> Any idea how to debug or what to try/fix?
>>
>> All I see in the log is:
>
> <snip>
>
>> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
>> ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
>> ppc0: FIFO with 16/16/16 bytes threshold
>
> if you do a "man ppc" there are flags settable on the ppc device.
> If you set the flags so that it is in ECP mode, it will be much faster.
> Even EPP mode works faster.
>
> IIRC Compatible mode uses an interrupt for every character. EPP can
> handle a burst of characters while ECP uses DMA so can transfer a large
> block per interrupt.
>
> --
> Antony T Curtis <antony.t.curtis@ntlworld.com>
>





------------------------------

Message: 8
Date: Thu, 15 Jul 2004 13:41:00 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: consistent hard lockup with recent kernels
To: freebsd-current@freebsd.org
Message-ID: <1089924060.1074.7.camel@server.mcneil.com>
Content-Type: text/plain

I get a very repeatable hard freeze of the system when I use firefox and
attempt to download a large iso image.  I've been trying to get a livecd
image from a gentoo.org mirror (needed for something else, I'm a FreeBSD
fan, honest!!) ;)

I suppose this is related to the preemption issues, but don't have
anything to show for it except my dmegs.  I can't access the system at
all to see why it is happening.

CPU: AMD Athlon(tm) 64 Processor 3000+ (2000.09-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xfc0  Stepping = 0
 
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
real memory  = 1073676288 (1023 MB)
avail memory = 1026048000 (978 MB)
ACPI APIC Table: <AMIINT VIA_K8  >
ioapic0 <Version 0.3> irqs 0-23 on motherboard
acpi0: <AMIINT VIA_K8> on motherboard
acpi0: [GIANT-LOCKED]
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> port 0x530-0x537 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: <VIA 8385 host to PCI bridge> mem 0xd0000000-0xd7ffffff at device
0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
xl0: <3Com 3c900B-TPO Etherlink XL> port 0xd400-0xd47f mem
0xcfffbf80-0xcfffbfff irq 19 at device 8.0 on pci0
xl0: selecting 10baseT transceiver, half duplex
xl0: Ethernet address: 00:10:5a:1f:dd:eb
xl0: [GIANT-LOCKED]
re0: <RealTek 8169S Single-chip Gigabit Ethernet> port 0xd000-0xd0ff mem
0xcfffbe00-0xcfffbeff irq 16 at device 11.0 on pci0
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S media interface> on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto
re0: Ethernet address: 00:0c:76:e9:2c:58
re0: [GIANT-LOCKED]
atapci0: <VIA 6420 SATA150 controller> port
0xd800-0xd8ff,0xdc00-0xdc0f,0xe000-0xe003,0xe400-0xe407,0xe800-0xe803,0xec00-0
xec07 irq 20 at device 15.0 on pci0
ata2: at 0xec00 on atapci0
ata3: at 0xe400 on atapci0
atapci1: <VIA 8237 UDMA133 controller> port
0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci1
ata1: at 0x170 irq 15 on atapci1
uhci0: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 21 at device
16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 21 at device
16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhid0: American Power Conversion Back-UPS RS 1000 FW:7.g3 .D USB FW:g3,
rev 1.10/1.06, addr 2, iclass 3/0
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 3, iclass
3/1
ums0: 3 buttons and Z dir.
uhci2: <VIA 83C572 USB controller> port 0xc800-0xc81f irq 21 at device
16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xcc00-0xcc1f irq 21 at device
16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ugen0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00,
addr 2
pci0: <serial bus, USB> at device 16.4 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pcm0: <VIA VT8237> port 0xbc00-0xbcff irq 22 at device 17.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Avance Logic ALC655 AC97 Codec>
acpi_button1: <Sleep Button> on acpi0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROM> at iomem 0xe0000-0xe0fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounter "TSC" frequency 2000086534 Hz quality 800
Timecounters tick every 0.976 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled,
default to deny, logging disabled
IPsec: Initialized Security Association Processing.
ad0: 117246MB <Maxtor 6Y120L0> [238216/16/63] at ata0-master UDMA133
ad1: 117246MB <Maxtor 6Y120L0> [238216/16/63] at ata0-slave UDMA133
ata1-slave: FAILURE - ATAPI_RESET no interrupt
acd0: DVDR <PIONEER DVD-RW DVR-104> at ata1-master PIO4
acd1: DVDROM <ATAPI DVD-ROM 16X> at ata1-slave PIO4
ad6: 76319MB <ST380013AS> [155061/16/63] at ata3-master SATA150
ar0: 117246MB <ATA RAID1 array> [14946/255/63] status: READY subdisks:
 disk0 READY on ad0 at ata0-master
 disk1 READY on ad1 at ata0-slave
cd0 at ata1 bus 0 target 0 lun 0
cd0: <PIONEER DVD-RW  DVR-104 1.40> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: cd present [1 x 2048 byte records]
cd1 at ata1 bus 0 target 1 lun 0
cd1: <ATAPI DVD-ROM 16X 582F> Removable CD-ROM SCSI-0 device
cd1: 16.000MB/s transfers
cd1: cd present [1562944 x 2048 byte records]



------------------------------

Message: 9
Date: Thu, 15 Jul 2004 14:44:47 -0600
From: "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
Subject: unionfs on CURRENT for read only OK?
To: freebsd-current@freebsd.org
Message-ID: <CF1C2A90-D69F-11D8-9ED8-003065A70D30@shire.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi

The man pages for unionfs basically say to avoid it as it has problems. 
   However, I was wondering about people's experience with it for read 
only mounts.  I would like to do a bunch of read only mounts.  I 
currently use nfs with localhost: but think that performance might be 
better with unionfs.  I kind of get the impression that the unionfs 
problems are with read write and so would like to solicit opinions and 
experience running on FBSD5 (CURRENT going to 5.3-R).

Thanks
Chad


------------------------------

Message: 10
Date: Thu, 15 Jul 2004 23:07:11 +0200
From: Palle Girgensohn <girgen@pingpong.net>
Subject: Re: parallel port *slow*
To: Antony T Curtis <antony.t.curtis@ntlworld.com>
Cc: current@freebsd.org
Message-ID: <EF9A84A7DA4682C9497C1B71@palle.girgensohn.se>
Content-Type: text/plain; charset=us-ascii; format=flowed

Only, the flags don't work, nothing seems to happen?

$ kenv | grep  ppc
hint.ppc.0.at="isa"
hint.ppc.0.flags="0xc"
hint.ppc.0.irq="7"
$ dmesg | grep ppc
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0


--On torsdag, juli 15, 2004 19.00.18 +0100 Antony T Curtis 
<antony.t.curtis@ntlworld.com> wrote:

> On Thu, 2004-07-15 at 16:42, Palle Girgensohn wrote:
>> Hi!
>>
>>
>> For a while now my parallel port (with printer hooked up) has been
>> *really  SLOW*. Takes several minutes to print a single very simple page.
>>
>> Any idea how to debug or what to try/fix?
>>
>> All I see in the log is:
>
> <snip>
>
>> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
>> ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
>> ppc0: FIFO with 16/16/16 bytes threshold
>
> if you do a "man ppc" there are flags settable on the ppc device.
> If you set the flags so that it is in ECP mode, it will be much faster.
> Even EPP mode works faster.
>
> IIRC Compatible mode uses an interrupt for every character. EPP can
> handle a burst of characters while ECP uses DMA so can transfer a large
> block per interrupt.
>
> --
> Antony T Curtis <antony.t.curtis@ntlworld.com>
>





------------------------------

Message: 11
Date: Thu, 15 Jul 2004 17:20:31 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: consistent hard lockup with recent kernels
To: Sean McNeil <sean@mcneil.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715212031.GB1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Jul 15, 2004 at 01:41:00PM -0700, Sean McNeil wrote:
> I get a very repeatable hard freeze of the system when I use firefox and
> attempt to download a large iso image.  I've been trying to get a livecd
> image from a gentoo.org mirror (needed for something else, I'm a FreeBSD
> fan, honest!!) ;)
> 
> I suppose this is related to the preemption issues, but don't have
> anything to show for it except my dmegs.  I can't access the system at
> all to see why it is happening.

Can you run it in an X session on another host, and be at the console
(for DDB+KDB access)?  Can you start it and switch to the console, for
same reason, before it locks up?

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 12
Date: Thu, 15 Jul 2004 14:42:31 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: unionfs on CURRENT for read only OK?
To: "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715214231.GA32789@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"

On Thu, Jul 15, 2004 at 02:44:47PM -0600, Chad Leigh -- Shire.Net LLC wrote:
> Hi
> 
> The man pages for unionfs basically say to avoid it as it has problems. 
>   However, I was wondering about people's experience with it for read 
> only mounts.  I would like to do a bunch of read only mounts.  I 
> currently use nfs with localhost: but think that performance might be 
> better with unionfs.  I kind of get the impression that the unionfs 
> problems are with read write and so would like to solicit opinions and 
> experience running on FBSD5 (CURRENT going to 5.3-R).

Sounds like you actually want nullfs, which works fine at least when
read-only.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040715/
ab2190df/attachment-0001.bin

------------------------------

Message: 13
Date: Thu, 15 Jul 2004 15:04:47 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: 5.3-RELEASE TODO
To: re@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID: <20040715220447.GA32888@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"

On Thu, Jul 15, 2004 at 10:24:39AM -0400, Robert Watson wrote:

>  This is a list of open issues that need to be resolved for FreeBSD 5.3. If

>  you have any updates for this list, please e-mail re@FreeBSD.org.
> 
> Show stopper defects for 5.3-RELEASE

These are the bugs I'm currently tracking (those I can remember right
now, at least)

* SMP is unusable for me because of the following frequent panic
(actually a panic and another kernel printf interleaved).  Here is the
untangled version:

panic: APIC: Previous IPI is stu c k
                                p m a
 _ l a z y f i x :   s p
u c p u i d  =    0 ;
 n   f o r   5 0 0 0 0 0 0 0
c D e b u g g e r ( " p a n i

jhb says:

> Seems the two CPUs are deadlocked waiting on each other.  The first sent a
> pmap_lazyfixup IPI to the second but the second has interrupts disabled as i
t
> is trying to send an IPI as well.

He suggested a patch, but it did not fix the problem.

* linprocfs 

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x8
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc04e1870
stack pointer           = 0x10:0xf11e6b50
frame pointer           = 0x10:0xf11e6b6c
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 23938 (mtree)
kernel: type 12 trap, code=0
Stopped at      pfs_getattr+0x130:      movl    0x8(%eax),%eax
db> trace
pfs_getattr(f11e6b78,c06fda00,cf397b2c,f11e6b98,d23e8a80) at pfs_getattr+0x130

vn_stat(cf397b2c,f11e6c80,d23e8a80,0,c5eb0c60) at vn_stat+0x4f
lstat(c5eb0c60,f11e6d14,2,2,297) at lstat+0x6a
syscall(2f,2f,2f,805a200,805a248) at syscall+0x217
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (190, FreeBSD ELF32, lstat), eip = 0x280ac664, esp = 0xbfbf7594, e
bp = 0xbfbf7620 ---

dosirak# addr2line -e kernel.debug 0xc04e1870
/usr/src/sys/i386/compile/DOSIRAK/../../../fs/pseudofs/pseudofs_vnops.c:200

[...]
        if (pvd->pvd_pid != NO_PID) {
                if ((proc = pfind(pvd->pvd_pid)) == NULL)
                        PFS_RETURN (ENOENT);
-->             vap->va_uid = proc->p_ucred->cr_ruid;

rwatson has a patch that works around this particular null pointer
deref, but the underlying cause is not addressed.

* ULE has lots of problems (poor performance on HTT, unable to disable
HTT, incorrect load average reporting on SMP machines, ...).  Should
be turned off until an active maintainer is found.

* Frequent panic at boot time (when starting syslogd?)

panic: mutex Giant not owned at ../../../kern/vfs_subr.c:1365
at line 729 in file ../../../kern/kern_mutex.c
Debugger("panic")
Stopped at      Debugger+0x54:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c0766179,c07d1e80,2d9,c0765560,100) at Debugger+0x54
__panic(c0765560,2d9,c07656c8,c0765803,c076e07d) at __panic+0xf5
_mtx_assert(c07d09e0,1,c076e07d,555,c68544ec) at _mtx_assert+0x11c
gbincore(c6889514,0,0,985,c07d5980) at gbincore+0x36
getblk(c6889514,0,0,800,0) at getblk+0xf8
breadn(c6889514,0,0,800,0) at breadn+0x52
bread(c6889514,0,0,800,0) at bread+0x4c
ffs_blkatoff(c6889514,0,0,0,e0f87998) at ffs_blkatoff+0x105
ufs_lookup(e0f87a50,e0f87a8c,c05c77e1,e0f87a50,e0f87bc0) at ufs_lookup+0x270
ufs_vnoperate(e0f87a50,e0f87bc0,e0f87bd4,c076e07d,c61d62a0) at ufs_vnoperate+0
x18
vfs_cache_lookup(e0f87ad0,e0f87aec,c05cca32,e0f87ad0,c61d62a0) at vfs_cache_lo
okup+0x301
ufs_vnoperate(e0f87ad0,c61d62a0,0,c61d62a0,c61d62a0) at ufs_vnoperate+0x18
lookup(e0f87bac,0,c076dac5,a2,c61d62a0) at lookup+0x312
namei(e0f87bac,c62088b2,d,c62088c0,0) at namei+0x27e
unp_bind(c6a09000,c62088b0,c61d62a0,e0f87ca0,c05b5e23) at unp_bind+0xb1
uipc_bind(c6427a50,c62088b0,c61d62a0,e0f87cc8,c05ba0e7) at uipc_bind+0x2b
sobind(c6427a50,c62088b0,c61d62a0,0,c6427a50) at sobind+0x23
kern_bind(c61d62a0,3,c62088b0,c62088b0,0) at kern_bind+0x87
bind(c61d62a0,e0f87d14,c,434,3) at bind+0x43
syscall(2f,2f,2f,bfbfee10,0) at syscall+0x2a0

I added a GIANT_REQUIRED to namei() and confirmed that giant is being
held there, so it's being lost higher up in the stack trace.

* ---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x104
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc058a8cf
stack pointer           = 0x10:0xdcb34cc4
frame pointer           = 0x10:0xdcb34cec
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 50 (schedcpu)
trap number             = 12
panic: page fault

syncing disks, buffers remaining... panic: mi_switch: switch in a critical sec
tion

addr2line says the panic was in kern/sched_4bsd.c:327

                                /*
                                 * The kse slptimes are not touched in wakeup

                                 * because the thread may not HAVE a KSE.
                                 */
                                if (ke->ke_state == KES_ONRUNQ) {
                                        awake = 1;
                                        ke->ke_flags &= ~KEF_DIDRUN;
--->                            } else if ((ke->ke_state == KES_THREAD) &&
                                    (TD_IS_RUNNING(ke->ke_thread))) {
                                        awake = 1;

gdb -k got confused and couldn't make anything out of the backtrace.

* Machines with 4GB RAM do not auto-tune kernel memory parameters
optimally and easily panic under load with a panic message that does
not at least give instructions on what may be wrong and how to fix it.

* 8 Feb 2004
[bug report to -current, confirmed locally]

After typing "truss -f fsck -p /", I see nothing. I press ^Z
and type kill -9 % (killing truss).

I now have these fine processes hanging dead in memory, they are immune
to kill -9 and don't respond to kill -CONT either, ps axl:

  UID   PID  PPID CPU PRI NI   VSZ  RSS MWCHAN STAT  TT       TIME COMMAND
    0 56974     1   0   8  0  1256  744 ppwait D     p1    0:00.00 fsck -p /
    0 56975 56974   0   8  0  1256  744 stopev DV    p1    0:00.00 fsck -p /

* ATA tends to panic the system when error conditions occur, e.g. 

ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=45113664
ad0: DMA limited to UDMA33, non-ATA66 cable or device
ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=45113664
ad0: WARNING - removed from configuration
ata0-master: FAILURE - WRITE_DMA timed out

Fatal trap 12: page fault while in kernel mode
[...]

OTOH ATA on 4.x also gives panics with INVARIANTS when this kind of
thing happens.

[sparc64]

* Likes to panic with "panic: ipi_send: couldn't send ipi"

tmm suggested bumping the value of

./include/smp.h:#define IPI_RETRIES     100

This may have "fixed" the problem, or at least reduced the frequency.

* syscons does not work on ultra30 any more; looks like it might be
related to differences in the keyboard controller on the u30.  marius
and kensmith are knowledgeable about this.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040715/
9f2ceb04/attachment-0001.bin

------------------------------

Message: 14
Date: Fri, 16 Jul 2004 07:23:27 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: panic at sched_add_internal
To: current@FreeBSD.org
Message-ID: <200407152223.i6FMNRV2001315@sakura.ninth-nine.com>
Content-Type: text/plain; charset=US-ASCII

Hi.

	I'm using a current at 2004-07-15 10:?? UTC on Pentium3 SMP.
FreeBSD nadesico.ninth-nine.com 5.2-CURRENT FreeBSD 5.2-CURRENT #34: Thu Jul 1
5 21:07:52 JST 2004     nork@nadesico.ninth-nine.com:/usr/obj/usr/src/sys/NADE
SICO  i386

	A panic has happend on it and I have a DDB message.  Can anyone
	fix this problem?  If this problem is already fixed, I'm sorry.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
FreeBSD/i386 (nadesico.ninth-nine.com) (dcons)

login: info: [drm] Loading R200 Microcode
[thread 100334]
Stopped at      sched_add_internal+0x36:        movzbl  0x68(%edx),%esi
db> trace
sched_add_internal(c4c50dc0,1,e3eefb4c,c05b68c5,c4c50dc0) at sched_add_interna
l+0x36
sched_add(c4c50dc0,e3eefb70,c05c3488,c27c79c0,c27c79c0) at sched_add+0x19
kse_reassign(c27c79c0,c27c79c0,1a573,c080e640,ecaed0fb) at kse_reassign+0x45
sched_switch(c2b90580,0,c08850f0,c088bbc0,2534a5e5) at sched_switch+0xd8
mi_switch(1,0,c07bf36b,20b,c08838f8) at mi_switch+0x1c2
turnstile_wait(c406d2c0,c0877f40,c2da7dc0,c0877f40,4e) at turnstile_wait+0x23d

_mtx_lock_sleep(c0877f40,0,c07bfe2e,4e,c33a062c) at _mtx_lock_sleep+0x125
_mtx_lock_flags(c0877f40,0,c07bfe2e,4e,c26e4c04) at _mtx_lock_flags+0x64
soo_read(c2d9bd48,e3eefc80,c47d2900,0,c2b90580) at soo_read+0x3c
dofileread(c2b90580,c2d9bd48,3,bfbfaa60,20) at dofileread+0xac
read(c2b90580,e3eefd14,c,c2b90580,3) at read+0x6b
syscall(bfab002f,2f,6885002f,8149000,ffffffff) at syscall+0x2a0
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (3, FreeBSD ELF32, read), eip = 0x684c361f, esp = 0xbfbfa96c, ebp 
= 0xbfbfa988 ---
db> ps
  pid   proc     uarea   uid  ppid  pgrp  flag   stat  wmesg    wchan  cmd
80970 c4931c24 e3dde000    0 80969  7794 0000002 [LOCK  Giant c406d2c0] sh
80969 c4978a68 e3de6000    0 80962  7794 0004002 [SLPQ wait 0xc4978a68][SLP] s
h
80962 c4064de0 e3c1b000    0 80352  7794 0004002 [SLPQ select 0xc08a8424][SLP]
 make
80352 c4712378 e3c30000    0 80351  7794 0004002 [SLPQ wait 0xc4712378][SLP] s
h
80351 c48e66f0 e3d7e000    0 72301  7794 0004002 [SLPQ select 0xc08a8424][SLP]
 make
72301 c48e6de0 e3d82000    0 72297  7794 0004002 [SLPQ wait 0xc48e6de0][SLP] s
h
72297 c48e68ac e3d7f000    0 72296  7794 0004002 [SLPQ select 0xc08a8424][SLP]
 make
72296 c47e8a68 e3d1c000    0 72295  7794 0004002 [SLPQ wait 0xc47e8a68][SLP] s
h
72295 c47e8c24 e3d1d000    0 57426  7794 0004002 [SLPQ select 0xc08a8424][SLP]
 make
57426 c492fc24 e3db4000    0 57419  7794 0004002 [SLPQ wait 0xc492fc24][SLP] s
h
57419 c48e7000 e3d83000    0 57417  7794 0004002 [RUNQ] make
57417 c49318ac e3ddc000    0 57416  7794 0004002 [SLPQ wait 0xc49318ac][SLP] s
h
57416 c48e7534 e3d86000    0  7794  7794 0004002 [LOCK  Giant c406d2c0] make
65919 c473ba68 e3cd9000 1001   684 65919 000c000 (threaded)  xmms
   thread 0xc2b909a0 ksegrp 0xc2b6fc80 [SLPQ kserel 0xc2b6fcdc][SLP]
   thread 0xc2b90580 ksegrp 0xc2b6fc80 [LOCK  Giant c406d2c0]
   thread 0xc4c71420 ksegrp 0xc2b6fc80 [RUNQ][kse 0xc2db6de0]
   thread 0xc312a840 ksegrp 0xc2b6fc80 [SLPQ select 0xc08a8424][SLP]
   thread 0xc47162c0 ksegrp 0xc47efd80 [SLPQ nanslp 0xc0879a10][SLP]
   thread 0xc4716580 ksegrp 0xc2db7900 [SLPQ ksesigwait 0xc473bb68][SLP]
553064 c47ee378 e3d21000 1001 52541 53064 0004002 [SLPQ kqread 0xc480bb00][SLP
] tail
52541 c4064000 e3bd1000 1001 52534 52541 0004002 [SLPQ pause 0xc4064038][SLP] 
zsh
52534 c473bc24 e3cda000 1001   684 52534 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
50979 c2b711bc e3724000    0  6015 50979 0004002 [SLPQ ttyin 0xc471e610][SLP] 
zsh
 7794 c4714534 e3c3a000    0  7734  7794 0004002 [SLPQ wait 0xc4714534][SLP] s
h
 7734 c4712a68 e3c34000    0  7730  7734 0004002 [SLPQ pause 0xc4712aa0][SLP] 
zsh
 7730 c47128ac e3c33000 1001  7725  7730 0004102 [SLPQ wait 0xc47128ac][SLP] s
u
 7725 c4712534 e3c31000 1001  7718  7725 0000100 [SLPQ select 0xc08a8424][SLP]
 screen
 7718 c473b378 e3c93000 1001  7344  7718 0004102 [SLPQ pause 0xc473b3b0][SLP] 
screen
 7344 c2db46f0 e37b4000 1001  7336  7344 0004002 [SLPQ pause 0xc2db4728][SLP] 
zsh
 7336 c4740000 e3cdc000 1001   684  7336 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
 6015 c473b6f0 e3cd7000 1001  6011  6015 0004102 [SLPQ wait 0xc473b6f0][SLP] s
u
 6011 c4063de0 e3bd0000 1001   684  6011 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
 1316 c4714c24 e3c80000 1001  1312  1316 0004002 [SLPQ select 0xc08a8424][SLP]
 slogin
 1312 c4714de0 e3c81000 1001   684  1312 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
  796 c2da3c24 e3784000 1001   795   796 0004002 [SLPQ select 0xc08a8424][SLP]
 slogin
  795 c2ea3a68 e381b000 1001   684   795 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
  782 c40646f0 e3c17000 1001   781   782 0004002 [SLPQ select 0xc08a8424][SLP]
 slogin
  781 c4063000 e3bc5000 1001   684   781 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
  740 c2ea2a68 e37d0000    0   732   740 0004002 [SLPQ ttyin 0xc2b2f610][SLP] 
zsh
  732 c2da88ac e378b000 1001   731   732 0004102 [SLPQ wait 0xc2da88ac][SLP] s
u
  731 c2b718ac e3728000 1001   684   731 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
  721 c2ea2000 e37ca000 1001   720   721 0004002 [SLPQ select 0xc08a8424][SLP]
 slogin
  720 c2ea21bc e37cb000 1001   684   720 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
  709 c2ea3c24 e381c000 1001   684   709 0004000 [SLPQ nanslp 0xc0879a10][SLP]
 wmsmixer
  699 c2b6e534 e36fc000 1001   698   699 0004002 [SLPQ select 0xc08a8424][SLP]
 slogin
  698 c2da36f0 e373f000 1001   684   684 0004100 [SLPQ select 0xc08a8424][SLP]
 kterm
  696 c2da31bc e373c000 1001   684   684 0004000 [SLPQ select 0xc08a8424][SLP]
 kinput2
  684 c2db4000 e378f000 1001   668   684 0004000 [SLPQ select 0xc08a8424][SLP]
 wmaker
  683 c2b71c24 e372a000 1001     1   683 0000000 [SLPQ select 0xc08a8424][SLP]
 ssh-agent
  679 c2ea26f0 e37ce000    0     1   677 0000000 [SLPQ select 0xc08a8424][SLP]
 xconsole
  668 c2da8de0 e378e000    0   663   668 0000100 [SLPQ wait 0xc2da8de0][SLP] x
dm
  667 c2ea2378 e37cc000    0   663   667 0004000 [CPU 1] XFree86
  664 c2ea2534 e37cd000    0     1   664 0004002 [SLPQ ttyin 0xc27b2010][SLP] 
getty
  663 c2b71a68 e3729000    0     1     1 0004001 [SLPQ pause 0xc2b71aa0][SLP] 
xdm
  662 c2da81bc e3787000    0     1   662 0004002 [SLPQ ttyin 0xc28efa10][SLP] 
getty
  661 c2db4378 e37b2000    0     1   661 0004002 [SLPQ ttyin 0xc28efc10][SLP] 
getty
  660 c2b6ec24 e3700000    0     1   660 0004002 [SLPQ ttyin 0xc28efe10][SLP] 
getty
  625 c2ea2c24 e37d1000    0     1   625 0000000 [SLPQ select 0xc08a8424][SLP]
 moused
  587 c2da3000 e373b000    0     1   586 0000000 [SLPQ nanslp 0xc0879a10][SLP]
 smartd
  577 c2ea3378 e3817000  507     1   576 0000100 [SLPQ select 0xc08a8424][SLP]
 cvsyncd
  562 c2da86f0 e378a000   70   561   544 0000002 [SLPQ select 0xc08a8424][SLP]
 postgres
  561 c2db41bc e37b1000   70   556   544 0000002 [SLPQ select 0xc08a8424][SLP]
 postgres
  556 c2ea3000 e37d3000   70     1   544 0004002 [SLPQ select 0xc08a8424][SLP]
 postgres
  525 c2da8c24 e378d000    0     1   525 0000000 [SLPQ nanslp 0xc0879a10][SLP]
 cron
  510 c2da3534 e373e000   25     1   510 0000100 [SLPQ pause 0xc2da356c][SLP] 
sendmail
  504 c2da3378 e373d000    0     1   504 0000100 [SLPQ pause 0xc2da33b0][SLP] 
sendmail
  499 c2db4a68 e37b6000    0     1   499 0000100 [SLPQ select 0xc08a8424][SLP]
 sendmail
  493 c2db4534 e37b3000    0     1   493 0000100 [SLPQ select 0xc08a8424][SLP]
 sshd
  475 c2da8378 e3788000    0     1   475 0000000 [SLPQ select 0xc08a8424][SLP]
 ntpd
  450 c2da8a68 e378c000    0     1   450 0000000 [SLPQ select 0xc08a8424][SLP]
 usbd
  430 c2db48ac e37b5000    0   426   426 0000000 [SLPQ - 0xc2b1fc00][SLP] nfsd

  429 c2b6e8ac e36fe000    0   426   426 0000000 [SLPQ - 0xc2b2e400][SLP] nfsd

  427 c295ade0 e150c000    0   426   426 0000000 [SLPQ - 0xc2b2e600][SLP] nfsd

  426 c2b6e1bc e36fa000    0     1   426 0000000 [SLPQ accept 0xc2defb56][SLP]
 nfsd
  418 c2db4de0 e37b8000    0     1   418 0000000 [SLPQ select 0xc08a8424][SLP]
 mountd
  363 c2b71de0 e372b000    0     1   363 0000000 [SLPQ select 0xc08a8424][SLP]
 ypbind
  355 c2da38ac e3740000    0     1   355 0000000 [SLPQ select 0xc08a8424][SLP]
 ypserv
  344 c2b71000 e3723000    0     1   344 0000000 [SLPQ select 0xc08a8424][SLP]
 rpcbind
  335 c2b6e000 e36f9000   53     1   335 0000100 [SLPQ select 0xc08a8424][SLP]
 named
  327 c2b6ede0 e3722000    0     1   327 0000000 [SLPQ select 0xc08a8424][SLP]
 syslogd
  311 c295ac24 e150b000    0     1     0 0000204 [SLPQ 90idle 0xc2c21d04][SLP]
 smbiod0
  299 c2b71378 e3725000    0     1   299 0000000 [SLPQ select 0xc08a8424][SLP]
 devd
  230 c2b6ea68 e36ff000    0     1   230 0000000 [SLPQ pause 0xc2b6eaa0][SLP] 
adjkerntz
  133 c2b6e6f0 e36fd000    0     0     0 0000204 [SLPQ mdwait 0xc2b5aa00][SLP]
 md0
   60 c27c81bc dd264000    0     0     0 0000204 [SLPQ - 0xc08b8bac][SLP] nfsi
od 3
   59 c27c8378 dd265000    0     0     0 0000204 [SLPQ - 0xc08b8ba8][SLP] nfsi
od 2
   58 c27c8534 dd266000    0     0     0 0000204 [SLPQ - 0xc08b8ba4][SLP] nfsi
od 1
   57 c27c86f0 dd267000    0     0     0 0000204 [SLPQ - 0xc08b8ba0][SLP] nfsi
od 0
   56 c27c88ac dd268000    0     0     0 0000204 [SLPQ syncer 0xc08797a8][SLP]
 syncer
   55 c27c8a68 dd269000    0     0     0 0000204 [SLPQ vlruwt 0xc27c8a68][SLP]
 vnlru
   54 c27c8c24 dd26a000    0     0     0 0000204 [SLPQ psleep 0xc08a8a0c][SLP]
 bufdaemon
   53 c27c8de0 dd26b000    0     0     0 000020c [SLPQ pgzero 0xc08baf48][SLP]
 pagezero
   52 c295a000 e14c2000    0     0     0 0000204 [SLPQ psleep 0xc08baf9c][SLP]
 vmdaemon
    9 c295a1bc e1505000    0     0     0 0000204 [SLPQ psleep 0xc08baf58][SLP]
 pagedaemon
   51 c295a378 e1506000    0     0     0 0000204 [IWAIT] swi0: sio
   50 c295a534 e1507000    0     0     0 0000204 [SLPQ usbevt 0xc296d210][SLP]
 usb2
   49 c295a6f0 e1508000    0     0     0 0000204 [SLPQ usbevt 0xc2948210][SLP]
 usb1
   48 c295a8ac e1509000    0     0     0 0000204 [SLPQ usbtsk 0xc0871900][SLP]
 usbtask
   47 c2766a68 dd1f6000    0     0     0 0000204 [SLPQ usbevt 0xc2953210][SLP]
 usb0
   46 c2766c24 dd1f7000    0     0     0 0000204 [SLPQ tzpoll 0xc0830824][SLP]
 acpi_thermal
    8 c2766de0 dd1f8000    0     0     0 0000204 [SLPQ actask 0xc083086c][SLP]
 acpi_task2
    7 c27c5000 dd239000    0     0     0 0000204 [SLPQ actask 0xc083086c][SLP]
 acpi_task1
    6 c27c51bc dd23a000    0     0     0 0000204 [SLPQ actask 0xc083086c][SLP]
 acpi_task0
   45 c27c5378 dd23b000    0     0     0 0000204 [IWAIT] swi6: acpitaskq
   44 c27c5534 dd23c000    0     0     0 0000204 [IWAIT] swi6:+
    5 c27c56f0 dd25e000    0     0     0 0000204 [SLPQ - 0xc27c40c0][SLP] task
queue
   43 c27c58ac dd25f000    0     0     0 0000204 [IWAIT] swi6:+
   42 c27c5a68 dd260000    0     0     0 0000204 [IWAIT] swi6: task queue
   41 c27c5c24 dd261000    0     0     0 0000204 [IWAIT] swi3: cambio
   40 c27c5de0 dd262000    0     0     0 0000204 [IWAIT] swi2: camnet
   39 c27c8000 dd263000    0     0     0 0000204 [SLPQ - 0xc0870f00][SLP] yarr
ow
    4 c2758534 dd1c9000    0     0     0 0000204 [SLPQ - 0xc0874168][SLP] g_do
wn
    3 c27586f0 dd1ca000    0     0     0 0000204 [SLPQ - 0xc0874164][SLP] g_up

    2 c27588ac dd1cb000    0     0     0 0000204 [SLPQ - 0xc087415c][SLP] g_ev
ent
   38 c2758a68 dd1cc000    0     0     0 0000204 [IWAIT] swi4: vm
   37 c2758c24 dd1cd000    0     0     0 000020c [IWAIT] swi5: clock sio
   36 c2758de0 dd1ef000    0     0     0 0000204 [IWAIT] swi1: net
   35 c2766000 dd1f0000    0     0     0 0000204 [IWAIT] irq0: clk
   34 c27661bc dd1f1000    0     0     0 0000204 [IWAIT] irq23:
   33 c2766378 dd1f2000    0     0     0 0000204 [IWAIT] irq22:
   32 c2766534 dd1f3000    0     0     0 0000204 [IWAIT] irq21:
   31 c27666f0 dd1f4000    0     0     0 0000204 [IWAIT] irq20:
   30 c27668ac dd1f5000    0     0     0 0000204 [IWAIT] irq19: fwohci0 fxp0
   29 c270c1bc db797000    0     0     0 0000204 [IWAIT] irq18: pcm0
   28 c270c378 db798000    0     0     0 0000204 [IWAIT] irq17: sym0 sym1
   27 c270c534 db799000    0     0     0 0000204 [IWAIT] irq16: drm0
   26 c270c6f0 db7bb000    0     0     0 0000204 [IWAIT] irq15: ata1
   25 c270c8ac db7bc000    0     0     0 0000204 [IWAIT] irq14: ata0
   24 c270ca68 db7bd000    0     0     0 0000204 [IWAIT] irq13:
   23 c270cc24 db7be000    0     0     0 0000204 [IWAIT] irq12: psm0
   22 c270cde0 db7bf000    0     0     0 0000204 [IWAIT] irq11:
   21 c2758000 dd1c6000    0     0     0 0000204 [IWAIT] irq10: uhci0 uhci1+
   20 c27581bc dd1c7000    0     0     0 0000204 [IWAIT] irq9: acpi0
   19 c2758378 dd1c8000    0     0     0 0000204 [IWAIT] irq8: rtc
   18 c2701000 db74b000    0     0     0 0000204 [IWAIT] irq7: ppc0
   17 c27011bc db78e000    0     0     0 0000204 [IWAIT] irq6: fdc0
   16 c2701378 db78f000    0     0     0 0000204 [IWAIT] irq5:
   15 c2701534 db790000    0     0     0 0000204 [IWAIT] irq4: sio0
   14 c27016f0 db791000    0     0     0 0000204 [IWAIT] irq3: sio1
   13 c27018ac db792000    0     0     0 0000204 [IWAIT] irq1: atkbd0
   12 c2701a68 db793000    0     0     0 000020c [Can run] idle: cpu0
   11 c2701c24 db794000    0     0     0 000020c [Can run] idle: cpu1
    1 c2701de0 db795000    0     0     1 0004200 [SLPQ wait 0xc2701de0][SLP] i
nit
   10 c270c000 db796000    0     0     0 0000204 [SLPQ ktrace 0xc0877998][SLP]
 ktrace
    0 c0874200 c0c1f000    0     0     0 0000200 [SLPQ sched 0xc0874200][SLP] 
swapper
db> thread
[thread 100334]
sched_add_internal+0x36:        movzbl  0x68(%edx),%esi
db> reset
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

------------------------------

Message: 15
Date: Thu, 15 Jul 2004 15:28:45 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: ACPI degrading.. ? 
To: Eric Anderson <anderson@centtech.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715222845.333795D08@ptavv.es.net>

> Date: Thu, 15 Jul 2004 11:08:22 -0500
> From: Eric Anderson <anderson@centtech.com>
> Sender: owner-freebsd-current@freebsd.org
> 
> Ok - On May13th, I was the happiest FreeBSD user on the planet.. All the 
> ACPI stuff worked (the acpi_video stuff worked for my laptop, I had 
> several 'cx_supported' modes, etc..), but then I cvsup'ed on July 8th 
> (around there), and the acpi_video was broken, and no more cx modes 
> (besides c1).  I backed up to 06/15 and the acpi_video magically came 
> back, but still no cx modes.. 
> 
> Is there a configuration option I need to adjust now, or is it just 
> broken? Is there anything I can do to help?

The cx issue should be fixed. Nate put in a patch to fix it yesterday
or today. I have also lost acpi_video, but the patch to fix cx may fix
that, as well. I've been hesitant to update my laptop due to the native
preemption triggered problems that forced me to roll several bits of the
kernel back to 7/2. If I get just a little time, I'll cvsup and build a
new system tomorrow and see how t works (or doesn't).
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

------------------------------

Message: 16
Date: Thu, 15 Jul 2004 15:31:31 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: 5.3-RELEASE TODO
To: Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc: re@freebsd.org
Message-ID: <20040715223131.GA35816@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"

On Thu, Jul 15, 2004 at 03:20:19PM -0700, Colin Percival wrote:
> At 15:04 15/07/2004, Kris Kennaway wrote:
> >* linprocfs 
> >[...]
> >       if (pvd->pvd_pid != NO_PID) {
> >                if ((proc = pfind(pvd->pvd_pid)) == NULL)
> >                        PFS_RETURN (ENOENT);
> >-->             vap->va_uid = proc->p_ucred->cr_ruid;
> >
> >rwatson has a patch that works around this particular null pointer
> >deref, but the underlying cause is not addressed.
> 
> This looks like the "embryonic processes are added to allproc and
> p_hash too soon" bug (cf. kern/68364).  Last I heard, tjr was going
> to fix this in the next few days.

Good :)

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040715/
c3531e9d/attachment-0001.bin

------------------------------

Message: 17
Date: Thu, 15 Jul 2004 15:20:19 -0700
From: Colin Percival <colin.percival@wadham.ox.ac.uk>
Subject: Re: 5.3-RELEASE TODO
To: Kris Kennaway <kris@obsecurity.org>
Cc: re@freebsd.org
Message-ID: <6.1.0.6.1.20040715151650.03fae510@popserver.sfu.ca>
Content-Type: text/plain; charset=us-ascii

At 15:04 15/07/2004, Kris Kennaway wrote:
>* linprocfs 
>[...]
>       if (pvd->pvd_pid != NO_PID) {
>                if ((proc = pfind(pvd->pvd_pid)) == NULL)
>                        PFS_RETURN (ENOENT);
>-->             vap->va_uid = proc->p_ucred->cr_ruid;
>
>rwatson has a patch that works around this particular null pointer
>deref, but the underlying cause is not addressed.

This looks like the "embryonic processes are added to allproc and
p_hash too soon" bug (cf. kern/68364).  Last I heard, tjr was going
to fix this in the next few days.

Colin Percival



------------------------------

Message: 18
Date: Thu, 15 Jul 2004 15:32:07 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: acpi_video users needed 
To: Mark Santcroos <marks@ripe.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715223207.CB3165D09@ptavv.es.net>

> Date: Thu, 15 Jul 2004 09:29:15 +0200
> From: Mark Santcroos <marks@ripe.net>
> Sender: owner-freebsd-current@freebsd.org
> 
> Can some people with a properly attaching acpi_video.ko send me his/her:
> 
> * dmesg (boot_verbose preferred)
> * acpidump -dt
> * devinfo -v

Can you define "properly attaching"? Mine stopped working about 3
weeks ago, but the .ko does load. I just don't get any hw.acpi.video
sysctls and suspend no longer turns off the display.

I can make my information available it you think it would be useful.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

------------------------------

Message: 19
Date: Fri, 16 Jul 2004 07:37:48 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: Re: panic at sched_add_internal
To: current@FreeBSD.org
Message-ID: <200407152237.i6FMbmhG001671@sakura.ninth-nine.com>
Content-Type: text/plain; charset=US-ASCII

On Fri, 16 Jul 2004 07:23:27 +0900 (JST)
Norikatsu Shigemura <nork@freebsd.org> wrote:
> [thread 100334]
> Stopped at      sched_add_internal+0x36:        movzbl  0x68(%edx),%esi
> db> trace
> sched_add_internal(c4c50dc0,1,e3eefb4c,c05b68c5,c4c50dc0) at sched_add_inter
nal+0x36
> sched_add(c4c50dc0,e3eefb70,c05c3488,c27c79c0,c27c79c0) at sched_add+0x19
> kse_reassign(c27c79c0,c27c79c0,1a573,c080e640,ecaed0fb) at kse_reassign+0x45

> sched_switch(c2b90580,0,c08850f0,c088bbc0,2534a5e5) at sched_switch+0xd8
> mi_switch(1,0,c07bf36b,20b,c08838f8) at mi_switch+0x1c2
> turnstile_wait(c406d2c0,c0877f40,c2da7dc0,c0877f40,4e) at turnstile_wait+0x2
3d
> _mtx_lock_sleep(c0877f40,0,c07bfe2e,4e,c33a062c) at _mtx_lock_sleep+0x125
> _mtx_lock_flags(c0877f40,0,c07bfe2e,4e,c26e4c04) at _mtx_lock_flags+0x64
> soo_read(c2d9bd48,e3eefc80,c47d2900,0,c2b90580) at soo_read+0x3c
> dofileread(c2b90580,c2d9bd48,3,bfbfaa60,20) at dofileread+0xac
> read(c2b90580,e3eefd14,c,c2b90580,3) at read+0x6b
> syscall(bfab002f,2f,6885002f,8149000,ffffffff) at syscall+0x2a0
> Xint0x80_syscall() at Xint0x80_syscall+0x1f
> --- syscall (3, FreeBSD ELF32, read), eip = 0x684c361f, esp = 0xbfbfa96c, eb
p = 0xbfbfa988 ---

	Wow.  Until I read a kris's mail, I didn't know about
	addr2line(1).  According to addr2line(1),

	$ nm /boot/kernel/kernel.debug | grep sched_add_internal      
	c05c3d70 t sched_add_internal
	$ addr2line -e /boot/kernel/kernel.debug 0xc05c3da6
	/usr/src/sys/kern/sched_ule.c:1574

# 0xc05c3da6 = sched_add_internal(0xc05c3d70) + 0x36

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
static void
sched_add_internal(struct thread *td, int preemptive)
{
[...]
	KASSERT(ke->ke_runq == NULL,
		("sched_add: KSE %p is still assigned to a run queue", ke));

-->	class = PRI_BASE(kg->kg_pri_class);
	switch (class) {
	case PRI_ITHD:
[...]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

------------------------------

Message: 20
Date: Thu, 15 Jul 2004 18:39:43 -0400
From: "Dan Langille" <dan@langille.org>
Subject: Re: install crashes on ThinkPad T41
To: freebsd-current@freebsd.org
Message-ID: <40F6CF6F.26163.D2F20CE@localhost>
Content-Type: text/plain; charset=US-ASCII

On 15 Jul 2004 at 9:20, Dan Langille wrote:

> Gidday,
> 
> I've tried several -current snapshots on this IBM ThinkPad T41 
> (2004.05.24, 2004.06.11, 2004.07.07, and 2004.07.14).  All fail, but 
> at different steps.  I'll report upon 2004.07.14 but will provide 
> information for the others if requested.
> 
> 
> 5.2.1-RELEASE is installed on this laptop.  It runs fine.  I have 
> attached the output of /var/run/dmesg.boot from that.
> 
> I have also included the output of dmidecode.
> 
> 2004.07.14 crashes during probing.  Details of the traceback are at: 
> http://www.langille.org/IBM-ThinkPad-T41-current-2004.07.14-trace.jpg

Just in case that was an installer problem, I cvsup'd to 2004.07.06 
build world, made a kernel, and tried to boot it.  It got a fatal 
trap 12.  Details at

http://www.langille.org/ibm-thinkpad-t41-current-2004-07-06-panic.jpg
-- 
Dan Langille : http://www.langille.org/


------------------------------

Message: 21
Date: Fri, 16 Jul 2004 00:55:44 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: vinum dangling vnode & GEOM stripe problems
To: <freebsd-current@freebsd.org>
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAAOEaMWQD04UqZ/nd6pFHpQwEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="us-ascii"


Background:
I have a machine running a fairly recent CURRENT (2004.07.12.22.00.00) that
has a bunch of discs. 26 discs are hooked up through the onboard ATA and
SATA controllers (VIA KT-600), an Adaptec 29160 and two HighPoint RocketRAID
454 (4 channel HPT374 cards). The discs are used either as single discs or
combined into RAID-0 and RAID-1 arrays using the "old" vinum or ataraid.
There's 11 different physical file systems at this point, plus over 200
mount_nullfs rw mounts. I'm having some hardware problems relating to
interrupt routing, but the last kernel (see above) seems pretty stable. I
still get interrupt storms during device probing every now and then  though,
which worries me, but after tweaking the interrupt storm threshold
(hw.intr_storm_threshold=5000) this seems to be less of a problem.

Problem #1:
I usually boot the machine single-user so that I can verify all discs were
detected during boot (interrupt storms sometime prevent proper probing,
forcing ataraid and/or vinum to mark arrays as crashed). However, after the
latest kernel upgrade and the threshold tweaking the machine has been stable
enough that I dared to try a normal multi-user boot. However, it always ends
up with a vinum panic (dangling vnode, as reported by others). Unfortunately
I don't have enough swap for a coredump right now so I cannot provide any
additional info (hope to change that in the next couple of days).

Problem #2:
Yesterday I was playing around with the GEOM stripe module, and it messed
the machine up pretty bad when trying to create a simple 2 disc stripe. It
made all the discs that were attached to ataraid arrays time out, which
resulted in the stripes getting crashed, and then it eventually panicked in
some vfs function.


As soon as I have added more swap I'll post a more detailed error report.
Just wanted to throw this out as it seems to be very easy for me to
reproduce the panics. Since the machine is rather sensitive to downtime I
usually go into panic mode myself when it crash, so I'll blame the lack of
details on that. Once I get the kernel to save coredumps it should be easier
to provide accurate info (kernel already compiled with debug symbols and
KDB/DDB).

/Daniel Eriksson



------------------------------

Message: 22
Date: Fri, 16 Jul 2004 00:57:04 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: unionfs on CURRENT for read only OK?
To: "'Chad Leigh -- Shire.Net LLC'" <chad@shire.net>,
	<freebsd-current@freebsd.org>
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAA8lpQYWhFtkeCIbqVLTKLbgEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="us-ascii"

Chad Leigh wrote:

> The man pages for unionfs basically say to avoid it as it has 
> problems. 
>    However, I was wondering about people's experience with it 
> for read 
> only mounts.

The nullfs man page says mostly the same thing, and I'm using it extensively
on one of my servers (200+ rw mounts) without any problems (yet). I've been
running like this for 10 days now using an up-to-date 5-CURRENT. Writes are
done both to the underlying filesystem and through the nullfs mount, but
most of the access is read (10-to-1 ratio for read-vs-write probably).

And to make it even more interesting the underlying filesystems reside on a
mixture of "old" vinum arrays, ataraid arrays and single discs.

I do have some problems, but I had them even before I started using
mount_nullfs so they should not be related.

/Daniel Eriksson



------------------------------

Message: 23
Date: Thu, 15 Jul 2004 23:36:30 +0100
From: Antony T Curtis <antony.t.curtis@ntlworld.com>
Subject: Re: parallel port *slow*
To: Palle Girgensohn <girgen@pingpong.net>
Cc: current@freebsd.org
Message-ID: <1089930990.18519.25.camel@pcgem.rdg.cyberkinetica.com>
Content-Type: text/plain

On Thu, 2004-07-15 at 22:07, Palle Girgensohn wrote:
> Only, the flags don't work, nothing seems to happen?
> 
> $ kenv | grep  ppc
> hint.ppc.0.at="isa"
> hint.ppc.0.flags="0xc"
> hint.ppc.0.irq="7"
> $ dmesg | grep ppc
> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
> ppc0: FIFO with 16/16/16 bytes threshold
> ppbus0: <Parallel port bus> on ppc0

I must admit - I have only had it work properly when the flags was
compiled in the kernel config:

device ppc0 at isa? flags 0x08 irq 7 drq 3

The DMA channel should be specified for ECP.. and it should match
whatever your BIOS config says it is...

<snip>

-- 
Antony T Curtis <antony.t.curtis@ntlworld.com>


------------------------------

Message: 24
Date: Fri, 16 Jul 2004 08:03:00 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: Re: panic at sched_add_internal
To: current@FreeBSD.org
Message-ID: <200407152303.i6FN30OP002366@sakura.ninth-nine.com>
Content-Type: text/plain; charset=US-ASCII

	Oops, another panic has happend.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
[thread 100154]
Stopped at      sched_switch+0x27:      testb   $0x1,0x20(%esi)
db> trace
sched_switch(c4b76000,0,2628fe5d,0,3aeb7d59) at sched_switch+0x27
mi_switch(2,0,c07bf310,f3,10000) at mi_switch+0x1c2
ast(e41fcd48) at ast+0x3cb
doreti_ast() at doreti_ast+0x17
db> reset
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

	$ nm /boot/kernel/kernel.debug | grep sched_switch
	c05c33b0 T sched_switch
	$ addr2line -e /boot/kernel/kernel.debug 0xc05c33d7
	/usr/src/sys/kern/sched_ule.c:1147

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
void
sched_switch(struct thread *td, struct thread *newtd)
{
[...]
	 * If the KSE has been assigned it may be in the process of switching
	 * to the new cpu.  This is the case in sched_bind().
	 */
-->	if ((ke->ke_flags & KEF_ASSIGNED) == 0) {
		if (td == PCPU_GET(idlethread))
			TD_SET_CAN_RUN(td);
		else if (TD_IS_RUNNING(td)) {
[...]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

------------------------------

Message: 25
Date: Fri, 16 Jul 2004 01:26:15 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: vinum dangling vnode & GEOM stripe problems
To: <freebsd-current@freebsd.org>
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAAZyKfpP/Ph06stU0PV2uhcgEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="US-ASCII"


I forgot to add this:

Problem 3:
GEOM BDE disc encryption seems to work, until it's time to tear it down and
reboot the machine. It always claims the device is busy when I try to
unmount the file system, and if I use the -f flag to unmount it panics the
machine. Skipping the unmount results in a panic during shutdown.


/Daniel Eriksson



------------------------------

Message: 26
Date: Fri, 16 Jul 2004 08:30:05 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: Re: panic at sched_add_internal
To: current@FreeBSD.org
Message-ID: <200407152330.i6FNU5NQ003006@sakura.ninth-nine.com>
Content-Type: text/plain; charset=US-ASCII

On Fri, 16 Jul 2004 08:03:00 +0900 (JST)
Norikatsu Shigemura <nork@freebsd.org> wrote:
> 	Oops, another panic has happend.

	Now, I'm using old(?) current kernel:-(.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
[thread 100124]
Stopped at      turnstile_wait+0x17a:   movl    %eax,0x10(%edx)
db> trace
turnstile_wait(c301e340,c0877f40,c36e4420,c0877f40,f9) at turnstile_wait+0x17a

_mtx_lock_sleep(c0877f40,0,c07bd610,f9,0) at _mtx_lock_sleep+0x125
_mtx_lock_flags(c0877f40,0,c07bd610,f9,0) at _mtx_lock_flags+0x64
msleep(cf5d3c30,c08a8ae0,4c,c07c26af,0) at msleep+0x4a4
bwait(cf5d3c30,4c,c07c26af,e3e07b04,e3e07a6c) at bwait+0x70
bufwait(cf5d3c30,0,0,800,0) at bufwait+0x38
breadn(c3ac1d68,0,0,800,0) at breadn+0x314
bread(c3ac1d68,0,0,800,0) at bread+0x4c
ffs_read(e3e07b70,c088b880,0,c0883f48,e3e07b48) at ffs_read+0x38f
ufs_readdir(e3e07c98,e3e07c4c,c056a1ff,e3e07c98,c3d42948) at ufs_readdir+0xd8

ufs_vnoperate(e3e07c98,c3d42948,8,c07b86bd,e3e07c9c) at ufs_vnoperate+0x18
null_bypass(e3e07c98,20002,c34eb420,0,c3d42948) at null_bypass+0xdf
getdirentries(c34eb420,e3e07d14,c07dbeae,3df,4) at getdirentries+0x125
syscall(807002f,81b002f,bfad002f,8076500,8076500) at syscall+0x2a0
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (196, FreeBSD ELF32, getdirentries), eip = 0x6822e85f, esp = 0xbfa
dce94, ebp = 0xbfadceb0 ---
db> p %edx
c05d580a
db> reset
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

	$ nm /boot/kernel/kernel.debug | grep turnstile_wait
	c05d5690 T turnstile_wait
	$ addr2line -e /boot/kernel/kernel.debug 0xc05d580a
	/usr/src/sys/kern/subr_turnstile.c:517

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
void
turnstile_wait(struct turnstile *ts, struct lock_object *lock,
    struct thread *owner)
{
[...]
			TAILQ_INSERT_TAIL(&ts->ts_blocked, td, td_lockq);
		mtx_unlock_spin(&td_contested_lock);
		MPASS(td->td_turnstile != NULL);
-->		LIST_INSERT_HEAD(&ts->ts_free, td->td_turnstile, ts_hash);
		MPASS(owner == ts->ts_owner);
	}
	td->td_turnstile = NULL;
[...]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

------------------------------

Message: 27
Date: Thu, 15 Jul 2004 16:43:35 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: Re: consistent hard lockup with recent kernels
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <1089935015.2558.3.camel@server.mcneil.com>
Content-Type: text/plain

On Thu, 2004-07-15 at 14:20, Brian Fundakowski Feldman wrote:
> On Thu, Jul 15, 2004 at 01:41:00PM -0700, Sean McNeil wrote:
> > I get a very repeatable hard freeze of the system when I use firefox and
> > attempt to download a large iso image.  I've been trying to get a livecd
> > image from a gentoo.org mirror (needed for something else, I'm a FreeBSD
> > fan, honest!!) ;)
> > 
> > I suppose this is related to the preemption issues, but don't have
> > anything to show for it except my dmegs.  I can't access the system at
> > all to see why it is happening.
> 
> Can you run it in an X session on another host, and be at the console
> (for DDB+KDB access)?  Can you start it and switch to the console, for
> same reason, before it locks up?

I attempted the former, but apparantly the lockup is because of
interaction with other processes.  Perhaps involving surfing another web
site as a download is in progress.  I cannot try the X session on
another host as yet, but I will.  Switching to the console and not doing
anything else stressful on the machine allowed for the download to
complete without a lockup.  All times it has locked up I was doing other
things while the download was in progress.  However, no lockup has
occurred without the download happening.

Sean



------------------------------

Message: 28
Date: Thu, 15 Jul 2004 20:33:28 -0400
From: Allan Fields <bsd@afields.ca>
Subject: Re: parallel port *slow* (and plip probs.)
To: Antony T Curtis <antony.t.curtis@ntlworld.com>
Cc: current@freebsd.org
Message-ID: <20040716003328.GB12833@afields.ca>
Content-Type: text/plain; charset=us-ascii

On Thu, Jul 15, 2004 at 11:36:30PM +0100, Antony T Curtis wrote:
> On Thu, 2004-07-15 at 22:07, Palle Girgensohn wrote:
> > Only, the flags don't work, nothing seems to happen?

Did you set to ECP mode in your BIOS?

> > 
> > $ kenv | grep  ppc
> > hint.ppc.0.at="isa"
> > hint.ppc.0.flags="0xc"
> > hint.ppc.0.irq="7"
> > $ dmesg | grep ppc
> > ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
> > ppc0: FIFO with 16/16/16 bytes threshold
> > ppbus0: <Parallel port bus> on ppc0
> 
> I must admit - I have only had it work properly when the flags was
> compiled in the kernel config:
> 
> device ppc0 at isa? flags 0x08 irq 7 drq 3

I've had ECP working in 5.1 & 5.2 using device.hints as I've been
misusing a machine as PLIP router to provide old laptop w/ network
since PCMCIA interface isn't working w/ installed kernel.

dmesg:
ppc0: <Parallel port> at port 0x378-0x37f irq 7 flags 0x8 on isa0
ppc0: Generic chipset (ECP-only) in ECP mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0

device.hints:
hint.ppc.0.at="isa"
hint.ppc.0.irq="7"
hint.ppc.0.flags="0x8"
hint.ed.0.at="isa"

> <snip>
> 
> -- 
> Antony T Curtis <antony.t.curtis@ntlworld.com>

-- 
 Allan Fields, AFRSL - http://afields.ca
 2D4F 6806 D307 0889 6125  C31D F745 0D72 39B4 5541

------------------------------

Message: 29
Date: Thu, 15 Jul 2004 21:03:04 -0400
From: Allan Fields <bsd@afields.ca>
Subject: plip usage/problems
To: current@freebsd.org, phk@phk.freebsd.dk
Message-ID: <20040716010304.GC12833@afields.ca>
Content-Type: text/plain; charset=us-ascii

What range of BSD machines should plip work between?
In LPIP mode is it OK to use between FreeBSD and DragonFly for
instance?

Any reason why a PLIP interface would fragment IP headers?
On the receiving end truncated IP headers were being received.

I had used it w/ FreeBSD-5 <--> FreeBSD-4 before setting up 802.11
and it worked ok (still very slow to do plip), but as the old laptop
is now running DragonFly which no longer supports my card I've
temporarily using plip which tends to cause problems.

I'll likely reconfigure system so that the old hardware can continue
with FreeBSD-4.  NEWCARD code seems to break some OLDCARD (16-bit
Type II/III slots - hardware such as Cirus Logic PD6729).

Thanks,
-- 
 Allan Fields, AFRSL - http://afields.ca
 2D4F 6806 D307 0889 6125  C31D F745 0D72 39B4 5541

------------------------------

Message: 30
Date: Fri, 16 Jul 2004 11:07:07 +1000
From: Tim Robbins <tjr@freebsd.org>
Subject: Re: 5.3-RELEASE TODO
To: Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc: re@freebsd.org
Message-ID: <20040716010707.GA22394@cat.robbins.dropbear.id.au>
Content-Type: text/plain; charset=us-ascii

On Thu, Jul 15, 2004 at 03:20:19PM -0700, Colin Percival wrote:
> At 15:04 15/07/2004, Kris Kennaway wrote:
> >* linprocfs 
> >[...]
> >       if (pvd->pvd_pid != NO_PID) {
> >                if ((proc = pfind(pvd->pvd_pid)) == NULL)
> >                        PFS_RETURN (ENOENT);
> >-->             vap->va_uid = proc->p_ucred->cr_ruid;
> >
> >rwatson has a patch that works around this particular null pointer
> >deref, but the underlying cause is not addressed.
> 
> This looks like the "embryonic processes are added to allproc and
> p_hash too soon" bug (cf. kern/68364).  Last I heard, tjr was going
> to fix this in the next few days.

I was going to, but it turns out that my original solution of not
putting "embryonic" processes on allproc would further break checkdirs() --
there are already a few kinds of races that can happen there, and I don't
want to add more.


Tim

------------------------------

_______________________________________________
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 34
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]