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: HEADS UP [Re: thread+preemption stability improvement]
(Kris Kennaway)
2. Re: HEADS UP [Re: thread+preemption stability improvement]
(Brad Davis)
3. RE: HEADS UP [Re: thread+preemption stability improvement]
(Daniel Eriksson)
4. RE: HEADS UP [Re: thread+preemption stability improvement]
(Daniel Eriksson)
5. Re: HEADS UP [Re: thread+preemption stability improvement]
(Scott Long)
6. Creative Extegy driver (Anton Nikiforov)
7. Re: panic: Duplicate free of item 0xffffff005c4a8600
fromzone0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
8. RE: HEADS UP [Re: thread+preemption stability improvement]
(Daniel Eriksson)
9. RE: HEADS UP [Re: thread+preemption stability improvement]
(Lukas Ertl)
10. Re: HEADS UP [Re: thread+preemption stability improvement]
(Pawel Jakub Dawidek)
11. Re: [amd64] Sound breakage with snd_ich driver (Don Lewis)
12. Re: NEW TAR (Peter Jeremy)
13. RE: HEADS UP [Re: thread+preemption stability improvement]
(Daniel Eriksson)
14. RE: HEADS UP [Re: thread+preemption stability improvement]
(Daniel Eriksson)
15. sk0 patch (Tomas Randa)
16. sk0 patch (Tomas Randa)
17. Re: sk0 patch (Bjoern A. Zeeb)
18. Re: Obtaining a kernel dump is not possible (Oliver B. Fischer)
19. Re: Possible Threading problem with -CURRENT / MySQL? (jesk)
20. I/O or Threading Suffer (jesk)
21. Re: I/O or Threading Suffer (Scott Long)
22. Re: Excellent job on the firewire support! (Hidetoshi Shimokawa)
23. Re: Excellent job on the firewire support! (Hidetoshi Shimokawa)
24. Re: [amd64] Sound breakage with snd_ich driver
(Conrad J. Sabatier)
25. Re:I/O or Threading Suffer (jesk)
26. Re: sk0 patch (Tomas Randa)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Jul 2004 21:50:58 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement]
To: John Birrell <jb@cimlogic.com.au>
Cc: Maxim Maximov <mcsi@mcsi.pp.ru>
Message-ID: <20040720045058.GA65171@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"
On Tue, Jul 20, 2004 at 02:01:54PM +1000, John Birrell wrote:
> On Tue, Jul 20, 2004 at 07:34:32AM +0400, Maxim Maximov wrote:
> > I think it is needed :( Things actually get _much_ better, now I've
> > been able to use my big IMAP folders, but still after applying the patch
> > and working about an hour mozilla freezes with the same sympthoms (cpu
> > fan gets spinning faster and faster as if cpu temperature is raising).
> > Are there any ways I can help track this down further?
> > Preemption is enabled, of course. My kernel's config is latest
> > GENERIC with these additions:
>
> Even with PREEMPTION disabled, current freezes for me with a threaded applic
ation
> with lots of sendfiles in progress. I haven't figured out the set of conditi
ons
> that actually trigger the freeze other than it never freezes if I have no
> libpthread application running (and loaded to some degree).
>
> I wonder if anyone has had current under load and if so, in what situations.
> It looks like this code base is a long way away from being ready for a stabl
e
> branch. Grumble. The gap between 4 and 5 is too big. Not happy. At some poin
t
> people need to concentrate on stability. I would concede API changes for
> stability any day. Every day.
I run ~40 machines of various architectures under heavy load with 5.x
(package build clusters)..over the past month or so stability has
become significantly worse; see my reply to the 5.3 TODO list from a
few days ago for a list of outstanding bugs that I am tracking. A lot
of this is apparently due to pre-existing bugs exposed by the
preemption changes. Peter mentioned tonight that he thinks he
understands the cause of several of these problems though, so expect
5.2 stability to pick up soon.
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/20040719/
bb256be6/attachment-0001.bin
------------------------------
Message: 2
Date: Mon, 19 Jul 2004 22:57:22 -0600 (MDT)
From: "Brad Davis" <so14k@so14k.com>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement]
To: "Scott Long" <scottl@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <58628.24.8.51.173.1090299442.squirrel@24.8.51.173>
Content-Type: text/plain;charset=iso-8859-1
> All,
>
> Initial testing of this patch looks very promising. For those that
> aren't comfortable with patching their sources by hand, note that it
> was committed to CVS a few hours ago and should be showing up on CVSup
> very shortly (rev 1.8 of sys/i386/i386/intr_machdep.c is what you want
> if you are running i386). Please go out and test this as much as
> possible so that we can determine if futher action is needed.
No luck here. I'm running a GENERIC kernel too. I get a couple of terms
open in XFCE, Gvim, and 4 tabs in firefox and it hard locks.
Regards,
Brad
------------------------------
Message: 3
Date: Tue, 20 Jul 2004 07:47:30 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: HEADS UP [Re: thread+preemption stability improvement]
To: "'Scott Long'" <scottl@freebsd.org>, <freebsd-current@freebsd.org>
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAATsjutLtAZkGA1F/ZT0JiDwEAAAAA@telia.com>
Content-Type: text/plain; charset="us-ascii"
Scott Long wrote:
> All,
>
> Initial testing of this patch looks very promising. For those that
> aren't comfortable with patching their sources by hand, note that it
> was committed to CVS a few hours ago and should be showing up on CVSup
> very shortly (rev 1.8 of sys/i386/i386/intr_machdep.c is what you want
> if you are running i386). Please go out and test this as much as
> possible so that we can determine if futher action is needed.
I must unfortunately report that this does not cure my problem with SATA
instability when preemption is turned on.
I have set aside some time on the server (normally a busy production-type
server) to try a few different configs (SHED_ULE instead of SHED_4BSD,
turning off apic, removing polling) to see if any of them will have any
impact.
/Daniel Eriksson
------------------------------
Message: 4
Date: Tue, 20 Jul 2004 08:49:42 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: HEADS UP [Re: thread+preemption stability improvement]
To: <freebsd-current@freebsd.org>
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAAdmIYthj07UGjiabwmpYACgEAAAAA@telia.com>
Content-Type: text/plain; charset="us-ascii"
> I have set aside some time on the server (normally a busy
> production-type
> server) to try a few different configs (SHED_ULE instead of SHED_4BSD,
> turning off apic, removing polling) to see if any of them
> will have any
> impact.
I have just tried a number of different combinations of sheduler, acpi,
apic, polling, ...
No matter what I do, the only way to prevent errors like the one below seems
to be to run with preemption turned off.
Interrupt storm detected on "irq20: atapci4"; throttling interrupt source
ad20: FAILURE - already active DMA on this device
ad20: setting up DMA failed
See my recent mail on this list entitled "Kernel preemption leads to SATA
instability (how to debug?)" for machine configuration and further
information.
/Daniel Eriksson
------------------------------
Message: 5
Date: Tue, 20 Jul 2004 00:54:34 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement]
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@freebsd.org
Message-ID: <40FCC1AA.9060609@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Daniel Eriksson wrote:
>>I have set aside some time on the server (normally a busy
>>production-type
>>server) to try a few different configs (SHED_ULE instead of SHED_4BSD,
>>turning off apic, removing polling) to see if any of them
>>will have any
>>impact.
>
>
> I have just tried a number of different combinations of sheduler, acpi,
> apic, polling, ...
>
> No matter what I do, the only way to prevent errors like the one below seems
> to be to run with preemption turned off.
>
> Interrupt storm detected on "irq20: atapci4"; throttling interrupt source
> ad20: FAILURE - already active DMA on this device
> ad20: setting up DMA failed
>
> See my recent mail on this list entitled "Kernel preemption leads to SATA
> instability (how to debug?)" for machine configuration and further
> information.
>
> /Daniel Eriksson
>
Thanks for the report. I'm sure that there is a bug of some sort in the
ATA driver that is being exposed by PREEMPTION, but I'm also going to
consider turning off preemption in the next day or two since this isn't
the only lingering problem.
Scott
------------------------------
Message: 6
Date: Tue, 20 Jul 2004 11:03:33 +0400
From: Anton Nikiforov <anton@nikiforov.ru>
Subject: Creative Extegy driver
To: freebsd-current@freebsd.org
Message-ID: <40FCC3C5.8070409@nikiforov.ru>
Content-Type: text/plain; charset="us-ascii"
Dear All!
Does someone have Subj. (Creative Extegy external USB sound) working
under -CURRENT?
Any help appreciated.
When i try to attache the device i got the following:
Jul 20 11:02:11 anton kernel: uaudio0: audio descriptors make no sense,
error=4
Jul 20 11:02:12 anton kernel: device_attach: uaudio0 attach returned 6
--
Best regards,
Anton Nikiforov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3174 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040720/
5fb98179/smime-0001.bin
------------------------------
Message: 7
Date: Tue, 20 Jul 2004 08:58:49 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600
fromzone0xffffff007fed4780(Mbuf)
To: "Robert Watson" <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <15fd01c46e27$02e49050$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Robert Watson" <rwatson@freebsd.org>
> On Mon, 19 Jul 2004, Willem Jan Withagen wrote:
>
> > > I'll starts some more tests before I'm of to bed.
> >
> > This mornings result:
> > ====
> > System call getdirentries returning with the following locks held:
> > exclusive sleep mutex bdone lock r = 0 (0xffffffff805fd080) locked @
/home2/src/
> > sys/kern/vfs_bio.c:3767
> > panic: witness_warn
> > cpuid = 0;
> > KDB: stack backtrace:
> > kdspin lock sched lock held by 0xffffff007b6cc940 for > 5 seconds
> > panic: spin lock held too long
> > cpuid = 0;
> > KDB: enter: panic
> > ====
> >
> > But no way to get into the debugger. Does not look like it is much
> > network related???
>
> Doesn't look very network related, although it could be that increased
> concurrency and lack of waiting on Giant open up a race of some sort. Can
> you confirm "options DDB" and "options KDB" are both in your kernel
> config? You may want to consider commenting out "#define PREEMPTION" in
> the copy of params.h for the architecture you're running on and see if
> that helps. Won't help interrupt processing latency, but probably won't
> hurt server throughput, and your box is a server box so it might be worth
> trying.
The first time that it made it through the night since quite some days...
The real stress test, "make -j32 buildworld" is still too much however.
--WjW
------------------------------
Message: 8
Date: Tue, 20 Jul 2004 09:50:42 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: HEADS UP [Re: thread+preemption stability improvement]
To: "'Scott Long'" <scottl@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAAj3hshzbQY0y7NIUIgdC2yQEAAAAA@telia.com>
Content-Type: text/plain; charset="us-ascii"
Scott Long wrote:
> Thanks for the report. I'm sure that there is a bug of some
> sort in the
> ATA driver that is being exposed by PREEMPTION, but I'm also going to
> consider turning off preemption in the next day or two since
> this isn't
> the only lingering problem.
I don't know if my SATA problems are at all related to the problems I've
seen with GBDE, GEOM stripe, GEOM vinum and "old" vinum, but I probably
should mention them. They show up with or without preemption turned on.
* 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.
* GEOM stripe made all discs that were part of ataraid arrays time out when
I tried to create a simple striped array (from two single discs). Since the
system was live, and processes were accessing the ataraid arrays, the
machine eventually panicked in some vfs function.
* GEOM vinum starts up fine, but as soon as I start accessing arrays (raid-1
and raid-0) it looses its discs, crashing the arrays.
* "old" vinum panics with a dangling vnode (when it starts up) if I run a
normal boot. If I boot single-user and then manually start vinum it works
fine.
/Daniel Eriksson
------------------------------
Message: 9
Date: Tue, 20 Jul 2004 09:58:05 +0200 (CEST)
From: Lukas Ertl <le@FreeBSD.org>
Subject: RE: HEADS UP [Re: thread+preemption stability improvement]
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040720095710.W554@korben.in.tern>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 20 Jul 2004, Daniel Eriksson wrote:
> * GEOM vinum starts up fine, but as soon as I start accessing arrays (raid-1
> and raid-0) it looses its discs, crashing the arrays.
That's probably because you have the 'a' and 'c' partition at the same
offset. I have a fix for that in my queue.
cheers,
le
--
Lukas Ertl http://homepage.univie.ac.at/l.ertl/
le@FreeBSD.org http://people.freebsd.org/~le/
------------------------------
Message: 10
Date: Tue, 20 Jul 2004 10:13:58 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement]
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040720081358.GL57678@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"
On Tue, Jul 20, 2004 at 09:50:42AM +0200, Daniel Eriksson wrote:
+> * GEOM stripe made all discs that were part of ataraid arrays time out when
+> I tried to create a simple striped array (from two single discs). Since the
+> system was live, and processes were accessing the ataraid arrays, the
+> machine eventually panicked in some vfs function.
Could you give me a procedure which I can use to reproduce it?
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd@FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- 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/20040720/
bf142c99/attachment-0001.bin
------------------------------
Message: 11
Date: Tue, 20 Jul 2004 01:23:52 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: [amd64] Sound breakage with snd_ich driver
To: conrads@cox.net
Cc: freebsd-multimedia@FreeBSD.org
Message-ID: <200407200823.i6K8Nrrc041129@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii
On 19 Jul, Conrad J. Sabatier wrote:
> This problem has persisted for the last several weeks now, close to a
> month or so, I would say.
>
> Playing MP3s using madplay, everything works fine for a while, then
> suddenly I get an "output: write: Invalid argument" error each time
> madplay starts up. Any further attempts to use sound via any method or
> app likewise fail. Sound remains broken until a reboot.
>
> Upgraded the system again yesterday, to the new "sound" drivers, same
> results.
>
> I've attached truss output from one of these failed madplay runs.
I suspect that the sound driver is getting interrupt timeouts and is
marking the channel dead. Do you see the following message in
/var/log/messages?
play interrupt timeout, channel dead
If so, I've seen other reports of this.
I think the chn_write() code needs some careful analysis ...
------------------------------
Message: 12
Date: Tue, 20 Jul 2004 18:10:51 +1000
From: Peter Jeremy <PeterJeremy@optushome.com.au>
Subject: Re: NEW TAR
To: Tim Kientzle <tim@kientzle.com>
Cc: Andrey Chernov <ache@nagual.pp.ru>
Message-ID: <20040720081051.GB3001@cirb503493.alcatel.com.au>
Content-Type: text/plain; charset=us-ascii
On Mon, 2004-Jul-19 21:29:54 -0700, Tim Kientzle wrote:
>I have some ideas about sparse file handling,
>but they're not gtar-compatible. (The gtar
>approach has a number of drawbacks. The primary
>one being that on many systems it requires reading
>the entire file twice, once to find holes and again
>to actually archive the file.
Actually, it's not possible to accurately determine the holes in a
file by reading it - you can't differentiate between a hole and a
allocated block of zeroes. What you need is a (new) syscall that
invokes a new VOP_... and returns a bitmap of allocated blocks. This
would be non-trival unfortunately.
--
Peter Jeremy
------------------------------
Message: 13
Date: Tue, 20 Jul 2004 10:58:05 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: HEADS UP [Re: thread+preemption stability improvement]
To: "'Lukas Ertl'" <le@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAAwu/EMrX71E20RKQPtwa/IwEAAAAA@telia.com>
Content-Type: text/plain; charset="us-ascii"
Lukas Ertl wrote:
> That's probably because you have the 'a' and 'c' partition at
> the same
> offset. I have a fix for that in my queue.
That is very likely. :-)
Here's the info for the disc holding my root partition and the mirrored
/var, /tmp and /usr partitions (plus a striped partition):
# disklabel /dev/ad0s1
# /dev/ad0s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 1048576 0 4.2BSD 2048 16384 8
b: 1048576 1048576 swap
c: 234436482 0 unused 0 0 # "raw" part, don't
edit
d: 1048576 2097152 vinum
e: 1048576 3145728 vinum
f: 20971520 4194304 vinum
g: 209270658 25165824 vinum
And I have a bunch of other discs the looks like this (more or less):
# disklabel /dev/da4s1
# /dev/da4s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
c: 71681967 0 unused 0 0 # "raw" part, don't
edit
d: 71681967 0 vinum
/Daniel Eriksson
------------------------------
Message: 14
Date: Tue, 20 Jul 2004 11:12:00 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: HEADS UP [Re: thread+preemption stability improvement]
To: "'Pawel Jakub Dawidek'" <pjd@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQA
AAAhiFayb8JzEG6h5x/+TwSMwEAAAAA@telia.com>
Content-Type: text/plain; charset="us-ascii"
Pawel Jakub Dawidek wrote:
> Could you give me a procedure which I can use to reproduce it?
Not really. The use case is so simple that I really don't think it is a
general problem. Otherwise everyone would be complaining about it. I'll see
if I can schedule some more downtime for the server to run some more tests
of this. (I only did it once, and because the machine was live at the moment
the lockup of the ataraid arrays made it quite a mess, so I'm hesitant to
try it again unless I'm in single user mode.)
This was the command I issued that resulted in the crash. Nothing strange
about it as far as I can tell (taken directly from the gstripe man page).
gstripe label -v -s 4096 data /dev/da15 /dev/da16
/dev/da15 and /dev/da16 had been labeled and newfs'ed, but were not mounted
at the time.
As I said, if I get a chance I'll look at this next time the machine is down
in single user mode. I forgot to do that earlier this morning when I did a
lot of testing to try to get around the SATA vs. preemtion problem I'm
seeing.
/Daniel Eriksson
------------------------------
Message: 15
Date: Tue, 20 Jul 2004 11:45:48 +0200
From: Tomas Randa <lists@hosting50.cz>
Subject: sk0 patch
To: current@freebsd.org
Message-ID: <1090316748.788.8.camel@ares.af.czu.cz>
Content-Type: text/plain
Hi,
is there available a working patch for current "sk" driver?
Thanks a lot.
Tomas Randa
On Sun, 2004-07-11 at 00:34, Bjoern A. Zeeb wrote:
> Hi,
>
> there had been some discussion lately about if_sk and attach locking.
> compiled if_sk as module on amd64 and kldloading started a race with
> follwoing output:
>
> --- very short part of console log ---
> [some hundred more of the following lines]
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> malloc(M_WAITOK) of "64", forcing M_NOWAIT with the following non-sleepable
locks held:
> exclusive sleep mutex skc0 (network driver) r = 0 (0xffffff003000b670) locke
d @ /u1/src/HEAD/src/sys/pci/if_sk.c:1335
> Stack backtrace:
> witness_warn() at witness_warn+0x1a7
> uma_zalloc_arg() at uma_zalloc_arg+0x4c
> malloc() at malloc+0x9f
> scope6_ifattach() at scope6_ifattach+0x20
> in6_domifattach() at in6_domifattach+0x91
> if_attachdomain1() at if_attachdomain1+0xb9
> if_attach() at if_attach+0x465
> ether_ifattach() at ether_ifattach+0x27
> sk_attach() at sk_attach+0x334
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> [some hundred more of these lines]
> --- end ---
>
>
>
> I solved this problem without further investigation of possible
> bad impacts with this patch:
>
>
> Index: if_sk.c
> ===================================================================
> RCS file: /u2/src/CVS/prefixes/src/sys/pci/if_sk.c,v
> retrieving revision 1.83
> diff -u -p -r1.83 if_sk.c
> --- if_sk.c 28 Jun 2004 20:07:03 -0000 1.83
> +++ if_sk.c 10 Jul 2004 21:44:53 -0000
> @@ -1332,7 +1332,9 @@ sk_attach(dev)
> error = 0;
> sc_if = device_get_softc(dev);
> sc = device_get_softc(device_get_parent(dev));
> +#if 0
> SK_LOCK(sc);
> +#endif
> port = *(int *)device_get_ivars(dev);
> free(device_get_ivars(dev), M_DEVBUF);
> device_set_ivars(dev, NULL);
> @@ -1472,7 +1474,9 @@ sk_attach(dev)
> }
>
> fail:
> +#if 0
> SK_UNLOCK(sc);
> +#endif
> if (error) {
> /* Access should be ok even though lock has been dropped */
> sc->sk_if[port] = NULL;
> --- end ---
>
>
> can someone with some more knowledge about this driver and
> general locking of if_* please review this. TIA.
--
Tomas Randa <lists@hosting50.cz>
------------------------------
Message: 16
Date: Tue, 20 Jul 2004 11:46:29 +0200
From: Tomas Randa <lists@hosting50.cz>
Subject: sk0 patch
To: freebsd-current@freebsd.org
Message-ID: <1090316789.788.10.camel@ares.af.czu.cz>
Content-Type: text/plain
Hi,
is there available a working patch for current "sk" driver?
Thanks a lot.
Tomas Randa
On Sun, 2004-07-11 at 00:34, Bjoern A. Zeeb wrote:
> Hi,
>
> there had been some discussion lately about if_sk and attach locking.
> compiled if_sk as module on amd64 and kldloading started a race with
> follwoing output:
>
> --- very short part of console log ---
> [some hundred more of the following lines]
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> malloc(M_WAITOK) of "64", forcing M_NOWAIT with the following
non-sleepable locks held:
> exclusive sleep mutex skc0 (network driver) r = 0 (0xffffff003000b670)
locked @ /u1/src/HEAD/src/sys/pci/if_sk.c:1335
> Stack backtrace:
> witness_warn() at witness_warn+0x1a7
> uma_zalloc_arg() at uma_zalloc_arg+0x4c
> malloc() at malloc+0x9f
> scope6_ifattach() at scope6_ifattach+0x20
> in6_domifattach() at in6_domifattach+0x91
> if_attachdomain1() at if_attachdomain1+0xb9
> if_attach() at if_attach+0x465
> ether_ifattach() at ether_ifattach+0x27
> sk_attach() at sk_attach+0x334
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> (null)() at 0
> [some hundred more of these lines]
> --- end ---
>
>
>
> I solved this problem without further investigation of possible
> bad impacts with this patch:
>
>
> Index: if_sk.c
> ===================================================================
> RCS file: /u2/src/CVS/prefixes/src/sys/pci/if_sk.c,v
> retrieving revision 1.83
> diff -u -p -r1.83 if_sk.c
> --- if_sk.c 28 Jun 2004 20:07:03 -0000 1.83
> +++ if_sk.c 10 Jul 2004 21:44:53 -0000
> @@ -1332,7 +1332,9 @@ sk_attach(dev)
> error = 0;
> sc_if = device_get_softc(dev);
> sc = device_get_softc(device_get_parent(dev));
> +#if 0
> SK_LOCK(sc);
> +#endif
> port = *(int *)device_get_ivars(dev);
> free(device_get_ivars(dev), M_DEVBUF);
> device_set_ivars(dev, NULL);
> @@ -1472,7 +1474,9 @@ sk_attach(dev)
> }
>
> fail:
> +#if 0
> SK_UNLOCK(sc);
> +#endif
> if (error) {
> /* Access should be ok even though lock has been dropped
*/
> sc->sk_if[port] = NULL;
> --- end ---
>
>
> can someone with some more knowledge about this driver and
> general locking of if_* please review this. TIA.
--
Tomas Randa <lists@hosting50.cz>
--
Tomas Randa <lists@hosting50.cz>
------------------------------
Message: 17
Date: Tue, 20 Jul 2004 10:00:43 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: sk0 patch
To: Tomas Randa <lists@hosting50.cz>
Cc: freebsd-current@freebsd.org
Message-ID:
<Pine.BSF.4.53.0407200959230.43309@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 20 Jul 2004, Tomas Randa wrote:
> is there available a working patch for current "sk" driver?
yes; in the archives:
http://lists.freebsd.org/pipermail/freebsd-current/2004-June/028994.html
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
------------------------------
Message: 18
Date: Tue, 20 Jul 2004 12:36:01 +0200
From: "Oliver B. Fischer" <plexus@snafu.de>
Subject: Re: Obtaining a kernel dump is not possible
To: Thomas Quinot <thomas@freebsd.org>
Cc: current@freebsd.org
Message-ID: <40FCF591.601@snafu.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Thomas Quinot wrote:
> If dumping does not work, can you try to obtain a backtrace from DDB?
How can I get it and save it too?
Regards
Oliver Fischer
------------------------------
Message: 19
Date: Tue, 20 Jul 2004 12:40:46 +0200
From: "jesk" <jesk@killall.org>
Subject: Re: Possible Threading problem with -CURRENT / MySQL?
To: <freebsd-current@freebsd.org>
Message-ID: <027e01c46e46$04224f60$45fea8c0@turbofresse>
Content-Type: text/plain; charset="iso-8859-1"
i got problems too with mysql under freebsd 5.2.1 and CURRENT.
i got these problems on two machines with different hardware, but both are
single cpu machines.
used scheduler is ULE.
problem description:
under high i/o load the mysqld isnt responding any more.
i tested this with dd if=/dev/urandom of=testfile bs=128k on the hdd an was
not
able to become any ouput from simple select-statements within a long period
of time
(above minutes).
i dont know if this problem occurs from mysql and its threads or if the i/o
subsystem has
any problems to deal fast enough with two intensives read and write
processes and its
priorities.
best regards,
christian
------------------------------
Message: 20
Date: Tue, 20 Jul 2004 12:42:15 +0200
From: "jesk" <jesk@killall.org>
Subject: I/O or Threading Suffer
To: <freebsd-current@freebsd.org>
Message-ID: <028601c46e46$38fc9560$45fea8c0@turbofresse>
Content-Type: text/plain; charset="iso-8859-1"
hello,
i got problems with mysql under freebsd 5.2.1 and CURRENT.
i got these problems on two machines with different hardware, but both are
single cpu machines.
used scheduler is ULE.
problem description:
under high i/o load the mysqld isnt responding any more.
i tested this with dd if=/dev/urandom of=testfile bs=128k on the hdd an was
not
able to become any ouput from simple select-statements within a long period
of time
(above minutes).
i dont know if this problem occurs from mysql and its threads or if the i/o
subsystem has
any problems to deal fast enough with two intensives read and write
processes and its
priorities.
best regards,
christian
------------------------------
Message: 21
Date: Tue, 20 Jul 2004 05:37:11 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: I/O or Threading Suffer
To: jesk <jesk@killall.org>
Cc: freebsd-current@freebsd.org
Message-ID: <40FD03E7.8000300@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
jesk wrote:
> hello,
>
> i got problems with mysql under freebsd 5.2.1 and CURRENT.
>
> i got these problems on two machines with different hardware, but both are
> single cpu machines.
> used scheduler is ULE.
>
> problem description:
> under high i/o load the mysqld isnt responding any more.
> i tested this with dd if=/dev/urandom of=testfile bs=128k on the hdd an was
> not
> able to become any ouput from simple select-statements within a long period
> of time
> (above minutes).
> i dont know if this problem occurs from mysql and its threads or if the i/o
> subsystem has
> any problems to deal fast enough with two intensives read and write
> processes and its
> priorities.
>
> best regards,
> christian
>
If you are dd'ing from /dev/random, then you are depleting the entropy
pool. Anything else that tries to get random numbers is going to block
in strange ways. Trying just dd'ing from /dev/zero and see if that
makes a difference.
Scott
------------------------------
Message: 22
Date: Tue, 20 Jul 2004 10:52:57 +0900
From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Subject: Re: Excellent job on the firewire support!
To: Doug Rabson <dfr@nlsystems.com>
Cc: simokawa@freebsd.org
Message-ID: <87llhfphqe.wl@tora.nunu.org>
Content-Type: text/plain; charset=US-ASCII
At Sun, 18 Jul 2004 21:04:53 +0100,
Doug Rabson wrote:
> > It would be nice to remove my Comtrol Rocketport serial card, and the
> > 8 serial cables leading across the middle of the room to my shelf of
> > machines and replace it with one firewire cable leading to a firewire
> > hub. But, as a firewire newbie, I have some questions:
> >
> > 1) Is any firewire PCI adapter just as good as any other in terms of
> > performance, and FreeBSD support? (prices seem to range from $10
> > to $100)
>
> Any should do about as well as any other. I probably wouldn't want to
> spend more than ~$50 on one.
I got some bad report about Lucent chip(some Mac's have it)
but I haven't heard any other compatibility issue.
I think the price of the adapter doesn't matter but you may
have trouble with some bad cables. If have some problem,
use lower speed(S100) or change cables.
> >
> > 2) Is dcons usable after a panic (ie, DDB or KDB_TRACE)? Or is it
> > only usable for remote-gdb?
>
> Dcons provides two full duplex streams - one for console and one for
> gdb. You can use DDB on the console just like normal.
It's designed for such panic/debugging situation.
Actually, it's rather inefficient for usual situation
but the speed of FireWire hide the problem ;-)
> >
> > 3) Is dcons endian and pointer-size agonstic? Can I run consoles to
> > an amd64 and a powerpc box from an x86?
>
> I haven't actually tried that and I imagine that there might be issues
> here and there. Any problems are likely to be in the dconschat program
> but that should be pretty easy to fix since its entirely userland.
I should have no problem with 64bit arch and big endian.
I have tested with sparc64, powerpc and amd64.
> >
> > 4) Does the loader know about dcons? Eg, can I do "unload <ret> boot
> > kernel.test" using dcons?
>
> Actually thats the only downside of dcons. It doesn't cut in until the
> firewire controller attaches. It relies on the fact that the fwohci
> driver allows access to physical memory from any node on the bus
> (implemeted in hardware so you can examine the memory of a hung
> machine). The dconschat program uses this feature to access the dcons
> ring buffers in the target machine.
>
> I could imagine a dcons driver in the loader which just enabled physical
> access and used some kind of loader trick to hand off the ring buffers
> to the kernel dcons driver. It doesn't exist though - say nice things
You are right.
> to the author and he might find the time for it :-)
It is not enough :-< I lack the knowledge of BIOS/PCI(and ACPI?).
Once we can access the OHCI register via PCI in the loader,
the remaining part is relatively easy as you described.
I need some help for this part. I suppose that implementing dcons
in the loader is architecture dependent.
/\ Hidetoshi Shimokawa
\/ simokawa@sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html
------------------------------
Message: 23
Date: Tue, 20 Jul 2004 10:55:45 +0900
From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Subject: Re: Excellent job on the firewire support!
To: Shizuka Kudo <shizukakudo_99@yahoo.com>
Cc: simokawa@freebsd.org
Message-ID: <87k6wzphlq.wl@tora.nunu.org>
Content-Type: text/plain; charset=US-ASCII
At Mon, 19 Jul 2004 19:37:04 +0100,
Doug Rabson wrote:
>
> On Monday 19 July 2004 17:19, Shizuka Kudo wrote:
> > Hi,
> >
> > Anyone has experience with the newly added IP over 1394 support, i.e.
> > fwip?
> >
> > I compiled it in with the latest kernel at 17 July, but the box
> > cannot ping with a M$ & linux box.
>
> I have that fixed locally but I want to fix some other problems with the
> firewire driver - mainly that my freebsd boxes often go haywire when I
> plug a windows box into the bus. I also want to finish writing the code
> for freebsd to be a fully functional isochronous bus manager.
Try this patch for temporary fix.
--- //depot/vendor/freebsd/src/sys/dev/firewire/if_fwip.c 2004/06/14 09:36:01
+++ //depot/user/simokawa/firewire/sys/dev/firewire/if_fwip.c 2004/07/11 06:47
:39
@@ -91,7 +91,7 @@
static void fwip_unicast_input(struct fw_xfer *);
static int fwipdebug = 0;
-static int broadcast_channel = 31; /* XXX */
+static int broadcast_channel = 0xc0 | 0x1f; /* tag | channel(XXX) */
static int tx_speed = 2;
static int rx_queue_len = FWMAXQUEUE;
/\ Hidetoshi Shimokawa
\/ simokawa@sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html
------------------------------
Message: 24
Date: Tue, 20 Jul 2004 06:55:02 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Re: [amd64] Sound breakage with snd_ich driver
To: Don Lewis <truckman@freebsd.org>
Cc: freebsd-multimedia@freebsd.org
Message-ID: <XFMail.20040720065502.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
On 20-Jul-2004 Don Lewis wrote:
> On 19 Jul, Conrad J. Sabatier wrote:
>> This problem has persisted for the last several weeks now, close to
>> a month or so, I would say.
>>
>> Playing MP3s using madplay, everything works fine for a while, then
>> suddenly I get an "output: write: Invalid argument" error each time
>> madplay starts up. Any further attempts to use sound via any method
>> or app likewise fail. Sound remains broken until a reboot.
>>
>> Upgraded the system again yesterday, to the new "sound" drivers,
>> same results.
>>
>> I've attached truss output from one of these failed madplay runs.
>
> I suspect that the sound driver is getting interrupt timeouts and is
> marking the channel dead. Do you see the following message in
> /var/log/messages?
> play interrupt timeout, channel dead
> If so, I've seen other reports of this.
Yes, that's exactly right.
> I think the chn_write() code needs some careful analysis ...
That, as well as whatever is still causing these:
ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=123971136
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 25
Date: Tue, 20 Jul 2004 13:55:50 +0200
From: "jesk" <jesk@killall.org>
Subject: Re:I/O or Threading Suffer
To: <freebsd-current@freebsd.org>
Message-ID: <037101c46e50$80c3c850$45fea8c0@turbofresse>
Content-Type: text/plain; charset="iso-8859-1"
i tested it with /dev/zero and the same happened.
i attracted attention to this as iam doing daily mysqldumps over night, and
in this time
the mysql isnt able to handle any requests from the freeradius server which
running
on the machines.
------------------------------
Message: 26
Date: Tue, 20 Jul 2004 13:56:36 +0200
From: Tomas Randa <lists@hosting50.cz>
Subject: Re: sk0 patch
To: current@freebsd.org
Message-ID: <1090324596.833.1.camel@ares.af.czu.cz>
Content-Type: text/plain
Thanks, but patch not working for my
skc0@pci2:9:0: class=0x020000 card=0xe0001458 chip=0x432011ab rev=0x13
hdr=0x00
vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
device = '88E8001 Gigabit 32-bit Ethernet Controller with
Integrated PHY'
:(
Tomas Randa
On Tue, 2004-07-20 at 12:00, Bjoern A. Zeeb wrote:
> On Tue, 20 Jul 2004, Tomas Randa wrote:
>
> > is there available a working patch for current "sk" driver?
>
> yes; in the archives:
>
> http://lists.freebsd.org/pipermail/freebsd-current/2004-June/028994.html
--
Tomas Randa <lists@hosting50.cz>
------------------------------
_______________________________________________
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 69, Issue 5
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[34m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m