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: Unicode locale (Tim Robbins)
   2. Re: panic: Assertion td->td_turnstile != NULL failed at
      ../../../kern/subr_turnstile.c:478 (Andrew Gallatin)
   3. i need my floppy disk drive. (h)
   4. Re: ethercons updated for -CURRENT (Andrew Gallatin)
   5. Re: sysctl lock, system lockup (Vladimir Grebenschikov)
   6. Re: ethercons updated for -CURRENT (Robert Watson)
   7. Re: ethercons updated for -CURRENT (Andrew Gallatin)
   8. Re: ethercons updated for -CURRENT  (Poul-Henning Kamp)
   9. Re: ethercons updated for -CURRENT (Robert Watson)
  10. via 8237 and above-udma33 problems (Divacky Roman)
  11. ACPI changes and acpi_video, lockups (Eric Anderson)
  12. default HZ value in 5.2.1 (Chris Stenton)
  13. Re: default HZ value in 5.2.1 (Chuck Swiger)
  14. Re: default HZ value in 5.2.1  (Poul-Henning Kamp)
  15. Re: [PATCH] Witness breakage (Daniel Lang)
  16. Re: FreeBSD keeps hanging...... (Jon Noack)
  17. Re: default HZ value in 5.2.1 (Matthew Dillon)
  18. Re: STI, HLT in acpi_cpu_idle_c1 (John Baldwin)
  19. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (John Baldwin)
  20. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Jon Noack)
  21. Re: default HZ value in 5.2.1 (Chuck Swiger)
  22. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Steve Kargl)
  23. Re: default HZ value in 5.2.1 (Kirk Strauser)
  24. Re: i need my floppy disk drive. (Brooks Davis)
  25. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Marc G. Fournier)
  26. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (John Baldwin)
  27. Re: panic: Assertion td->td_turnstile != NULL failed at
      ../../../kern/subr_turnstile.c:478 (John Baldwin)
  28. Re: panic: Assertion td->td_turnstile != NULL failed at
      ../../../kern/subr_turnstile.c:478 (John Baldwin)
  29. Re: i need my floppy disk drive. (h)
  30. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Jon Noack)
  31. Re: panic: Assertion td->td_turnstile != NULL failed at
      ../../../kern/subr_turnstile.c:478 (Robert Watson)
  32. Re: panic: Assertion td->td_turnstile != NULL failed at
      ../../../kern/subr_turnstile.c:478 (Robert Watson)
  33. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Steve Kargl)
  34. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Marc G. Fournier)
  35. Re: default HZ value in 5.2.1 (Bernd Walter)
  36. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Eric Anderson)


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

Message: 1
Date: Fri, 9 Jul 2004 22:10:33 +1000
From: Tim Robbins <tjr@freebsd.org>
Subject: Re: Unicode locale
To: Eugene <el2000@km.ru>
Cc: current@freebsd.org
Message-ID: <20040709121033.GA24663@cat.robbins.dropbear.id.au>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 09, 2004 at 03:07:45PM +0400, Eugene wrote:
> 
> Hello Tim,
> 
> TR> The base system has a UTF-8 version of every supported locale in 5.2-CUR
RENT,
> TR> but for previous releases (inc. 5.1), you'll have to install misc/utf8lo
cale
> TR> from the ports collection.
> 
> TR> Support for UTF-8 (and other multi-byte encodings) has been greatly impr
oved
> TR> since 5.1 and 5.2, so you'd do well to upgrade to 5.3 when it's released
..
> 
> Thank you for the info!
> I installed this port.
> Have you any info about release dates of 5.3 version?

A date hasn't been decided yet, but it's likely to be 2-3 months yet.

> Do you know is there some upgrade guide from older encodings to utf-8?
> There's no problems for people worked in ASCII due to backward
> compatibility, but on my system there's files in 8-bit encodings like
> KOI8-R and windows-1251.
> What can you recommend me?

I don't know of any upgrade guides, but the converters/libiconv port
should be able to convert those files -- take a look at the iconv(1)
manual page after installing it, but basically:
iconv -f KOI8-R -t UTF-8 <oldfile >newfile


Tim

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

Message: 2
Date: Fri, 9 Jul 2004 08:56:55 -0400 (EDT)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: Re: panic: Assertion td->td_turnstile != NULL failed at
	../../../kern/subr_turnstile.c:478
To: Robert Watson <rwatson@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <16622.38423.535731.804551@grasshopper.cs.duke.edu>
Content-Type: text/plain; charset=us-ascii


Robert Watson writes:
 > panic(c07ccf34,c07d2fd8,c07d2dc0,1de,c089a9c0) at panic+0x11e
 > turnstile_wait(c24ade80,c088f4a0,c22d6b00,c088f4a0,2,c07cf595,20d) at
 > turnstile_wait+0x23a
 > _mtx_lock_sleep(c088f4a0,0,c07d873a,208) at _mtx_lock_sleep+0x103
 > _mtx_lock_flags(c088f4a0,0,c07d873a,208) at _mtx_lock_flags+0x80
 > vn_read(c291c330,e6ff8c88,c2a54400,1,c2ba4840) at vn_read+0x22
 > dofileread(c2ba4840,c291c330,20,ac3e528,3b) at dofileread+0xb0
 > pread(c2ba4840,e6ff8d14,6,a3,202) at pread+0x6d
 > syscall(ac0002f,ac1002f,bf82002f,3b,0) at syscall+0x217
 > Xint0x80_syscall() at Xint0x80_syscall+0x1f
 > --- syscall (198), eip = 0x28472477, esp = 0xbf82a360, ebp = 0xbf82a38c ---


Any chance at all this could be related to the _mtx_assert() in
vrele()  described in "Alpha problems (though maybe not just Alpha...)"

Drew


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

Message: 3
Date: Fri, 9 Jul 2004 15:13:48 +0200
From: h <h@llorien.org>
Subject: i need my floppy disk drive.
To: freebsd-current@freebsd.org
Message-ID: <200407091513.48539.h@llorien.org>
Content-Type: text/plain;  charset="us-ascii"

i'm using 5.2.1-RELEASE-p9 but have been told to post to the current mailing 

list about this issue.

several of us from freenode #freebsd have been pulling our hair off trying to 

get our floppy disk drive to work. at some point jer told he's had the flaw 
with his machines for over a year since the early 5.1.

basically i can't mount my floppy drive. with ACPI on my kernel couldn't even 

detect the floppy controller. ever since i removed acpi now my kernel sees 
the controller:

# dmesg|grep fd
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold

but the fd0 or fdc0 isn't in /dev, there's only a fd/ dir:

ls /dev/f*
0       1       2

so the floppy disk drive is still invisible. i recently replaced my drive with
 
a drive and its cable known to work on another machine.

i have offline machines with no burner for which i need the floppy disk to 
communicate with. if 4- can do it why wouldn't 5- ?

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

Message: 4
Date: Fri, 9 Jul 2004 09:50:11 -0400 (EDT)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: Re: ethercons updated for -CURRENT
To: Robert Watson <rwatson@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <16622.41619.355522.170000@grasshopper.cs.duke.edu>
Content-Type: text/plain; charset=us-ascii


Robert Watson writes:
 > having console I/O on the wire isn't such a big deal).  The other major
 > limitation is that it relies on the network stack functioning, so can't be

 > used for very early boot stuff, debugging, etc.  Despite these

How far into a crash does it work?  Eg, will it print the panic
string?  How about a DDB_TRACE? 

Thanks,

Drew

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

Message: 5
Date: Fri, 09 Jul 2004 14:15:21 +0000
From: Vladimir Grebenschikov <vova@fbsd.ru>
Subject: Re: sysctl lock, system lockup
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: "'current@freebsd.org'" <current@freebsd.org>
Message-ID: <1089382521.910.16.camel@localhost>
Content-Type: text/plain

On Fri, 2004-06-25 at 09:16 -0400, Brian Fundakowski Feldman wrote:
> On Fri, Jun 25, 2004 at 11:57:16AM +0000, Vladimir Grebenschikov wrote:
> > On Mon, 2004-05-31 at 14:22 +1000, Tim Robbins wrote:
> > 
> > > I'm not sure where to go from here. A deadlock doesn't seem likely, but

> > > it's possible that background fsck could lock up the system for quite
> > > some time by using this sysctl. How long did you wait before dropping to

> > > ddb (approximately)?
> > 
> > Not sure, probably my problem is related or same (I have posted the
> > message to current@ before):
> > 
> > --
> > About 3-5 time per day recent current lockup on my notebook.
> > 
> > Symptoms: 
> > system responsive, not locked processes works, I can  switch X to sc0
> > and back.
> > 
> > processes locked on 'sysctl lock' (see below)
> > allways there is one process sleeping on allproc
> > 
> > usually it is related with high activity (this case evolution gets bunch
> > of night mail and pass it through spam-assassin)
> 
> Could you possibly do "show locks" from the DDB prompt?  This is
> essential as it will tell us where something is holding the sysctl
> lock hostage.

Do not see this problem for about month. It it will appear again I will
provide show locks.

-- 
Vladimir B. Grebenchikov
vova@fbsd.ru

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

Message: 6
Date: Fri, 9 Jul 2004 10:23:33 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: Re: ethercons updated for -CURRENT
To: Andrew Gallatin <gallatin@cs.duke.edu>
Cc: current@FreeBSD.org
Message-ID:
	<Pine.NEB.3.96L.1040709101417.60816J-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Fri, 9 Jul 2004, Andrew Gallatin wrote:

> Robert Watson writes:
>  > having console I/O on the wire isn't such a big deal).  The other major
>  > limitation is that it relies on the network stack functioning, so can't b
e
>  > used for very early boot stuff, debugging, etc.  Despite these
> 
> How far into a crash does it work?  Eg, will it print the panic string? 
> How about a DDB_TRACE?

Probably not very far -- the reason for this is that I can't do a direct
network dispatch of the console output from printf() (cnputc()) anymore --
the reason being that printf() is actually called quite early and while
holding low level spin locks.  Since the network stack also uses locks, I
do an asnynchronous dispatch.  I explored two methods of doing the
dispatch: first, I used a software interrupt thread (swi), but this didn't
work well because swi_sched() also doesn't operate well while holding
scheduler locks.  Then I moved to using a ring buffer that's pulled by a
callout(), which is the model ethercons is currently using.  Since
softclock stops running pretty quickly in the event you enter DDB, you
will likely only get a small part of the debugger output before it cuts
out.  When I was dispatching the stack directly from printf(), I would get
output up until the point where it formally entered the debugger, which
was after the panic string (and maybe the trace?).  It is possible to
imagine adding a cnflush() of some sort on entering the debugger but as
you can imagine, it would have some limitations.

In order to support really low level I/O, you basically need a polled
network API that doesn't really care where it's called from -- the
physical console and sio both fall into this category, but the current
ethernet stack pieces don't as well.  It's not impossible to imagine
writing one, but the tricks that are pulled in the 4.x gdb-over-ethernet
kernel debugging won't work -- they call into the mbuf allocator and
assume it's "safe" -- in 4.x, it was risky, in 5.x you would get a panic
for trying to acquire locks in the debugger.

If you assume panic() is really The End, you could also imagine adding an
ifp->if_the_end(char *) which would be responsible for spewing some last
fragments of data out the door using reserved memory and a low level
packet send routine.  This would work almost all of the time, assuming
that the panic didn't occur at a moment where the hardware isn't left in a
state inconsistent with the expectation of if_the_end().  I.e., we could
probably find a way to increase the reliability of ethercons in crash
scenarios.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research




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

Message: 7
Date: Fri, 9 Jul 2004 10:48:18 -0400 (EDT)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: Re: ethercons updated for -CURRENT
To: Robert Watson <rwatson@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <16622.45106.992924.734398@grasshopper.cs.duke.edu>
Content-Type: text/plain; charset=us-ascii


Robert Watson writes:
 > In order to support really low level I/O, you basically need a polled
 > network API that doesn't really care where it's called from -- the
 > physical console and sio both fall into this category, but the current
 > ethernet stack pieces don't as well.  It's not impossible to imagine
 > writing one, but the tricks that are pulled in the 4.x gdb-over-ethernet
 > kernel debugging won't work -- they call into the mbuf allocator and
 > assume it's "safe" -- in 4.x, it was risky, in 5.x you would get a panic
 > for trying to acquire locks in the debugger.

For what its worth, Darwin has this for their KDP ethernet debugging.
To receive something, the debugger provides a buffer and specifies a
timeout.  The driver keeps the same memory mapped for DMA, and just
copies into the provided void *buffer.  There is also a polled
transmit routine, where the driver does not return until the outgoing
packet has been DMA'ed.  In both cases, the driver is not allowed to
allocate memory, or do anything which can block.

One thing that's always concerned me is how do they ensure the driver
is not in the middle of a "normal" transmit or recv when the debugger
is entered..

Drew


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

Message: 8
Date: Fri, 09 Jul 2004 16:51:58 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: ethercons updated for -CURRENT 
To: Andrew Gallatin <gallatin@cs.duke.edu>
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <24107.1089384718@critter.freebsd.dk>


One thing to consider in this context would be to have a list where drivers
could register a poll function, so that whenever we wait for input in the
debugger we continuously poll all functions on the list.  This gives us
the second best thing to interrupt handling.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

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

Message: 9
Date: Fri, 9 Jul 2004 10:54:54 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: Re: ethercons updated for -CURRENT
To: Andrew Gallatin <gallatin@cs.duke.edu>
Cc: current@FreeBSD.org
Message-ID:
	<Pine.NEB.3.96L.1040709105253.60816L-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Fri, 9 Jul 2004, Andrew Gallatin wrote:

> For what its worth, Darwin has this for their KDP ethernet debugging. 
> To receive something, the debugger provides a buffer and specifies a
> timeout.  The driver keeps the same memory mapped for DMA, and just
> copies into the provided void *buffer.  There is also a polled transmit
> routine, where the driver does not return until the outgoing packet has
> been DMA'ed.  In both cases, the driver is not allowed to allocate
> memory, or do anything which can block. 
> 
> One thing that's always concerned me is how do they ensure the driver is
> not in the middle of a "normal" transmit or recv when the debugger is
> entered.. 

I have a lot of concerns about ensuring likely correctness of the model,
including reentrancy, consistent hardware state, packets destined for the
debugger wandering around the stack, etc.  It strikes me that it's likely
the network kernel debugging pieces work most of the time, and likely work
especially well if you're not debugging the network stack :-).  My guess
would be that over time, Apple will start preferring (if they don't
already) firewire debugging simply because it will become available
earlier, work in more sticky situations, etc.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research



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

Message: 10
Date: Fri, 9 Jul 2004 17:26:08 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: via 8237 and above-udma33 problems
To: current@freebsd.org
Cc: sos@freebsd.org
Message-ID: <20040709152608.GA13255@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii

Hi

I've got via 8237 ata driver with a new big seagate (ST3160023A) disk..

If transfer mode is set above udma33 (ie. to udma100 which is default)
I'm getting on writing these errors:
ad2: 152627MB <ST3160023A> [310101/16/63] at ata1-master UDMA100
ad2: WARNING - WRITE_DMA UDMA ICRC error (retrying request) LBA=2208287
ad2: WARNING - WRITE_DMA UDMA ICRC error (retrying request) LBA=2208287
ad2: FAILURE - WRITE_DMA status=51<READY,DSC,ERROR>
error=84<ICRC,ABORTED> LBA=2208287

it seems this is printed out after each ata transfer (ie. its
repeating). after several (hundred?) iterations it hangs in kernel panic


I have two questions

1) is there any solution for this driver not hanging on udma>33 ?

2) if not - how may I tell fbsd to initialize this drive (resp. the
channel the drive is attached to) to udma33 instead of the default mode.
I want to boot from that drive so I cannot use atacontrol or whatever
since it would have hanged before I'd enter user-space system
initialization

thnx for reponse!

roman

P.S. I can provide more info, just ask for it. and I also might
experiment with that drive.


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

Message: 11
Date: Fri, 09 Jul 2004 10:34:25 -0500
From: Eric Anderson <anderson@centtech.com>
Subject: ACPI changes and acpi_video, lockups
To: current@freebsd.org
Message-ID: <40EEBB01.6030500@centtech.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I just (yesterday) cvsup'ed and rebuilt world/kernel, and I've noticed 
some changes.  I noticed that the 'cx supported' has changed:
Now:
hw.acpi.cpu.cx_supported: C1/1

I'm not positive what it was before, but I remember a C3 and a C4 I 
believe - or am I hallucinating again?

Also, I no longer get any sysctl's for acpi video - which was working 
flawlessly (allowing me to close the lid on my laptop and have it turn 
off the screen) before yesterday. 

It has been a little over a month since rebuilding the world/kernel, so 
a lot has changed I'm sure..

Not sure if this is related or not, however my machine has locked up 
pretty hard 3 times since then, definitely not normal.  Two of those 
times, I believe the cpu fan went into overdrive after a short time of 
being locked..

Here's some info for those who might be able to help:

I'm building acpi and acpi_video into the kernel now - I've also tried 
it via modules, same result.

This is on a Dell Latitude D600 (BIOS A08).

$ sysctl hw.acpi
hw.acpi.supported_sleep_state: S1 S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 1
hw.acpi.verbose: 1
hw.acpi.reset_video: 1
hw.acpi.cpu.throttle_max: 8
hw.acpi.cpu.throttle_state: 8
hw.acpi.cpu.cx_supported: C1/1
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00%
[snip]

dmesg and other info available on request..


Thanks!
Eric


-- 
------------------------------------------------------------------
Eric Anderson     Sr. Systems Administrator    Centaur Technology
Talk sense to a fool and he calls you foolish.
------------------------------------------------------------------


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

Message: 12
Date: Fri, 9 Jul 2004 17:03:42 +0100
From: "Chris Stenton" <jacs@gnome.co.uk>
Subject: default HZ value in 5.2.1
To: <current@freebsd.org>
Message-ID: <014701c465ce$4e6a8a90$037ba8c0@gnome.co.uk>
Content-Type: text/plain;	charset="iso-8859-1"

 Any reason why the default value for HZ is still set at 100?  Would not
1000 be better for finer granularity?



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

Message: 13
Date: Fri, 09 Jul 2004 12:23:01 -0400
From: Chuck Swiger <cswiger@mac.com>
Subject: Re: default HZ value in 5.2.1
To: Chris Stenton <jacs@gnome.co.uk>
Cc: current@freebsd.org
Message-ID: <40EEC665.5010608@mac.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Chris Stenton wrote:
> Any reason why the default value for HZ is still set at 100?

Sure.  Timer interrupts and context switching aren't free, you know: the 
faster the HZ, the more time the system spends on overhead rather than doing 

useful work.

> Would not 1000 be better for finer granularity?

Certainly it would, but tradeoffs exist....

-- 
-Chuck


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

Message: 14
Date: Fri, 09 Jul 2004 18:26:50 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: default HZ value in 5.2.1 
To: Chuck Swiger <cswiger@mac.com>
Cc: Chris Stenton <jacs@gnome.co.uk>
Message-ID: <25554.1089390410@critter.freebsd.dk>

In message <40EEC665.5010608@mac.com>, Chuck Swiger writes:
>Chris Stenton wrote:
>> Any reason why the default value for HZ is still set at 100?
>
>Sure.  Timer interrupts and context switching aren't free, you know: the 
>faster the HZ, the more time the system spends on overhead rather than doing 

>useful work.
>
>> Would not 1000 be better for finer granularity?
>
>Certainly it would, but tradeoffs exist....

Most of my systems run with HZ=1000 already, but that is hardly
ground for changes to the default.  What we need is some pro et
contra arguments, including benchmarks.



-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

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

Message: 15
Date: Fri, 9 Jul 2004 18:36:11 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: [PATCH] Witness breakage
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040709163611.GA53906@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii

Hi again,

Daniel Lang wrote on Fri, Jul 09, 2004 at 11:52:29AM +0200:
[..]
> > that part.  Now, can someone _please_ test it who has been having problems
?
> [..]
> 
> Yes, thank you. I will test it today. I have the machine doing
> thorough hardware diagnosis since yesterday and all night, so I could
> not test your patch right away.

The hardware tests did all succeed with no errors.

I applied your patch and the machine behaves much better now.
For example, before the patch it did panic during simple things as
kernel-compile, or copying large directory trees (both in single-user mode).

With the patch I could successfully perform such tasks. I am
confident, that this patch solved a great deal of problems.

I will boot the machine now into multiuser and see if it is still stable
under regular load. Since you said the problems could have been triggered
with the recent PREEMPTION changes, I am not sure if all my problems
are solved, since IIRC the problems started with a kernel before this
change. It became definitly worse after that, though.

So again, many thanks so far. I keep you posted.

Cheers,
 Daniel
-- 
IRCnet: Mr-Spock
Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/

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

Message: 16
Date: Fri, 09 Jul 2004 11:48:09 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: FreeBSD keeps hanging......
To: Johan Pettersson <manlix@demonized.net>
Cc: current@FreeBSD.org
Message-ID: <40EECC49.3070501@alumni.rice.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed

On 07/09/04 06:48, Johan Pettersson wrote:
> On Fri, 9 Jul 2004 13:00:38 +0200 Johan Pettersson
> <manlix@demonized.net> wrote:
>> My system still hangs after 30-1h usage even with the recent
>> changes in sched_ule. This is with HTT enabled. With HTT disabled
>> it seems to run just fine.
> 
> Hmm, it seems to hang with HTT disabled too.

I also experienced regular hangs with my P4 (pre-HTT and no SMP in 
kernel) after the most recent sched_ule/preemption changes.  These were 
hard locks and I was unable to ssh in or break to debugger via 
Ctrl-Alt-Esc.  I backed out revision 1.114 of sched_ule.c and the 
machine has been stable since.  I don't have a serial console setup on 
this machine as my other machines are headless, but I can set that up if 
need be.  Off hand, the workload on the machine at the time was KDE, 
Firefox, Thunderbird, Gaim, several Konsoles, and gkrellm using an 
NFS-mounted home directory.

Note that this is with ACPI and without WITNESS or INVARIANTS in the 
kernel.  Also, my NFS server is an SMP machine and has no problems with 
the latest sched_ule.c.

Jon

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

Message: 17
Date: Fri, 9 Jul 2004 09:55:13 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: default HZ value in 5.2.1
To: Chuck Swiger <cswiger@mac.com>
Cc: Chris Stenton <jacs@gnome.co.uk>
Message-ID: <200407091655.i69GtDFG047898@apollo.backplane.com>

:Chris Stenton wrote:
:> Any reason why the default value for HZ is still set at 100?
:
:Sure.  Timer interrupts and context switching aren't free, you know: the 
:faster the HZ, the more time the system spends on overhead rather than doing 

:useful work.
:
:> Would not 1000 be better for finer granularity?
:
:Certainly it would, but tradeoffs exist....
:
:-- 
:-Chuck

    98% of the things hz is used for do not need a tick faster then 100hz.
    If there are some things that do, such as, oh, IF interface polling, 
    You guys might want to consider implementing a fine-grained general
    purpose one-shot/periodic timer abstraction for the kernel.   DragonFly
    uses just such an abstraction (kern/kern_systimer.c) for all sorts of
    things, including separating the scheduler related clock interrupt from
    the tick clock and distributing tick, stat, and scheduler interrupts
    (and other clock related interrupts) independantly to multiple cpus.
    The only thing we do to make things more efficient is to synchronize
    the major periodic functions (stat and sched) so they tend to dispatch
    at the same time when their harmonics match.  Other then that one
    optimization, the hard clock interrupts in the system (tick, stat, sched,

    and others) are now independant of each other.

    DragonFly's SYSTIMER abstraction has an incredibly simple API which
    provides both one-shot and periodic 'hard' interrupts targeted to a
    particular cpu.  In DFly the callbacks work the same as IPI callbacks
    in that they are real interrupts and Giant-free, and there is even a
    trapframe available (so our hardclock distribution can use it).

    The FreeBSD's clock code is a huge mess... everything is interrelated
    and integrated together which makes it difficult to make changes without
    blowing something up.  For example, using a high frequency w/ the 8254
    often results in lost ticks and drifting clocks on FreeBSD due to
    the way microtime is calculated.. the interval is just too small for
    the code to handle the recycle case properly.  (and regardless
    of your support for other timebases, for which you have a massive
    infrastructure in place, the 8254 is still used by many UP machines).

    There are three caveats to the DragonFly SYSTIMER code. 

    First, you need to have a timebase capable of fine-grained variable
    interval interrupts.  I wound up using the 8254 speaker timer for that
    purpose (so there is no longer any 8254 based beep support in DFly).  
    Since the SYSTIMER code is per-cpu capable and MP friendly, our 
    intention is to eventually use the LAPIC timer on each cpu.

    Second, you need a separate timebase for microtime calculations (e.g.
    we use the same 8254 timer FBsd uses, but with the reload set to 65536
    instead of the tick interval).  At the moment our code assumes the
    same frequency but, in fact, the abstraction and methodology is designed
    such that the variable interval interrupt can use a timer (e.g. per-cpu
    LAPIC timer in the future) that is not necessarily synchronized to
    the system timebase.  That's important, because it's hard enough to
    find one reliable (or at least ntp correctable) timebase and nearly
    impossible to find multiple reliable timebases on a PC.

    Third, you need to implement the IPI messaging subsystem from DragonFly.
    As I've said in the past, nearly every major subsystem in DragonFly now
    depends on the IPI messaging module to communicate between cpus, and
    this one is no exception.  I highly recommend that the IPI messaging
    subsystem be ported.

						-Matt


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

Message: 18
Date: Fri, 9 Jul 2004 13:14:07 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: freebsd-current@FreeBSD.org
Cc: kris@FreeBSD.org
Message-ID: <200407091314.07506.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 08 July 2004 08:41 pm, Gerrit Nagelhout wrote:
> John Baldwin wrote:
> > I think it does handle the interrupt, but that the EOI is
> > somehow lost or
> > ignored,or that somehow we don't send an EOI in some edge case.
>
> I switched the 2 CPUs on the system, and the problem did not
> track the CPU, so it is unlikely to be a hardware problem.
> I've been looking through the interrupt code, and one thing
> seems very suspicious, and I am hoping that someone can shed
> some light on it ... ie whether it's legal or not.
> In apic_vector.s, some of the interrupt handlers (hardclock,
> cpuast, and a few others) call doreti.  Under certain conditions,
> this can call ast().  The ast function can call PROC_LOCK,
> which is a sleep mutex.
> What would happen in this case?  How could the interrupt
> possibly block?  At this point, the interrupt handler has
> already called eoi, but not iret.  Would the processor except
> other interrupts, or get stuck?
> Thanks,

Once the EOI is sent to the APIC, the processor will except other interrupts. 
 
However, most of the interrupt code also runs with interrupts disabled.  The 

exception is in ast(), meaning that another interrupt can come in and nest 
during an ast(), but ast() is not called during nested returns, so it won't 
nest infinitely.  iret doesn't do any sort of EOI magic, all it does is popf 

followed by ret.  The popf usually enables interrupts when it restores the 
interrupt flag's state.  It might still be a hardware problem in the chipset, 

esp. since it always happens on a logical CPU.  The fact that no other boxes 

in the field besides the two identical boxes you have have demonstrated this 

problem makes me very suspicious with respect to the hardware.

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

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

Message: 19
Date: Fri, 9 Jul 2004 13:15:16 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: freebsd-current@FreeBSD.org
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <200407091315.16899.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 08 July 2004 10:19 pm, Taku YAMAMOTO wrote:
> On Thu, 8 Jul 2004 13:17:53 -0400
>
> John Baldwin <jhb@FreeBSD.org> wrote:
> > On Thursday 08 July 2004 09:21 am, Taku YAMAMOTO wrote:
> > > greetings,
> > >
> > >
> > > A quick glance showed me that there are some interesting code paths in
> > > sched_ule.c that can be problematic in SMP case.
> > >
> > >   1. sched_choose() => kseq_idled() => sched_add()
> > >   2. sched_choose() => kseq_assign() => sched_add()
> > >   3. sched_runnable() => kseq_assign() => sched_add()
> > >
> > > Here is the patch that re-enables preemption except for the above three

> > > cases.
> >
> > This looks correct.  I'll test it locally first.  Has it worked for you
> > all day?
>
> My machine (HTT) has been up for 20 hours without a hang since last update.

> I tried to stress it in various ways (fsck -n, buildworld & buildkernel in
> parallel, burning a CD, etc.) but failed to crash it.
>
> I'm bit afraid since the code is not tested on real SMP machines.
> How is it going on yours?

My test machine is not a true SMP machine either, just HTT.  It has been 
running a -j 256 worldloop overnight with no problems, so I committed a 
slightly modified version of the patch yesterday.

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

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

Message: 20
Date: Fri, 09 Jul 2004 12:19:09 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: John Baldwin <jhb@FreeBSD.org>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <40EED38D.9010903@alumni.rice.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed

On 07/09/04 12:15, John Baldwin wrote:
> My test machine is not a true SMP machine either, just HTT.  It has been 
> running a -j 256 worldloop overnight with no problems, so I committed a 
> slightly modified version of the patch yesterday.

Did you test with a UP kernel?  After your latest commit I have been 
experiencing regular hard locks on my pre-HTT P4 machine.  Backing out 
rev. 1.114 of sched_ule.c fixes it.  See my previous message (Re: 
FreeBSD keeps hanging......):
http://docs.freebsd.org/cgi/mid.cgi?40EECC49.3070501

Jon

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

Message: 21
Date: Fri, 09 Jul 2004 13:24:02 -0400
From: Chuck Swiger <cswiger@mac.com>
Subject: Re: default HZ value in 5.2.1
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Chris Stenton <jacs@gnome.co.uk>
Message-ID: <40EED4B2.2080604@mac.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Poul-Henning Kamp wrote:
[ ... ]
> Most of my systems run with HZ=1000 already, but that is hardly
> ground for changes to the default.  What we need is some pro et
> contra arguments, including benchmarks.

You're right.  Back around 1990, Avie Tenavian spent some brainpower figuring 

out the preemptive scheduling overhead for Mach, and determined that a 25MHz 

68040 machine took up to about 0.5 ms to handle a timer interrupt and run 
through the scheduler, which meant that the system lost about 5% overhead when
 
using a 10ms scheduler quantum (or HZ=100, whatever).

While I think have some idea as to the time it takes a Pentium to do a context
 
switch (300 clocks?), I don't know enough about the way the clock timer is 
managed under FreeBSD, nor do I know how much other stuff is glommed onto the 

periodic timer interrupt.  Mach used kernel threads and a messaging paradigm 

from day one, so it's scheduler was fairly simple-- less worrying about a 
queue of pending callbacks along the lines of libevent and kqueue.

Anyway, I suspect that the default scheduler quantum might be better chosen 
based on the scheduling overhead of each machine: set HZ as fast as the local 

system will deal with without exceeding a single-digit percent overhead...

-- 
-Chuck


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

Message: 22
Date: Fri, 9 Jul 2004 10:25:11 -0700
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <20040709172511.GA10540@troutmask.apl.washington.edu>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 09, 2004 at 12:19:09PM -0500, Jon Noack wrote:
> On 07/09/04 12:15, John Baldwin wrote:
> >My test machine is not a true SMP machine either, just HTT.  It has been 
> >running a -j 256 worldloop overnight with no problems, so I committed a 
> >slightly modified version of the patch yesterday.
> 
> Did you test with a UP kernel?  After your latest commit I have been 
> experiencing regular hard locks on my pre-HTT P4 machine.  Backing out 
> rev. 1.114 of sched_ule.c fixes it.  See my previous message (Re: 
> FreeBSD keeps hanging......):
> http://docs.freebsd.org/cgi/mid.cgi?40EECC49.3070501

I've tested it on a UP kernel (HTT enabled, ACPI disabled,
APIC enabled, ULE).   Appears to work fine.

-- 
Steve

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

Message: 23
Date: Fri, 9 Jul 2004 12:31:29 -0500
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: default HZ value in 5.2.1
To: freebsd-current@freebsd.org
Message-ID: <200407091231.29346.kirk@strauser.com>
Content-Type: text/plain;  charset="iso-8859-1"

On Friday 2004-07-09 11:03 am, Chris Stenton wrote:

> Any reason why the default value for HZ is still set at 100?  Would not
> 1000 be better for finer granularity?

Setting HZ=1000 absolutely destroyed my Alpha's throughput:

    http://lists.freebsd.org/pipermail/freebsd-alpha/2003-April/000142.html

Yes, that's a non-x86 machine and an older, slower one to boot, but I 
thought I'd present it as an example of a system that would really suffer 
from that proposed change.
-- 
Kirk Strauser

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

Message: 24
Date: Fri, 9 Jul 2004 10:43:32 -0700
From: Brooks Davis <brooks@one-eyed-alien.net>
Subject: Re: i need my floppy disk drive.
To: h <h@llorien.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040709174332.GA15078@Odin.AC.HMC.Edu>
Content-Type: text/plain; charset="us-ascii"

On Fri, Jul 09, 2004 at 03:13:48PM +0200, h wrote:
> i'm using 5.2.1-RELEASE-p9 but have been told to post to the current mailing
 
> list about this issue.
> 
> several of us from freenode #freebsd have been pulling our hair off trying t
o 
> get our floppy disk drive to work. at some point jer told he's had the flaw 

> with his machines for over a year since the early 5.1.
> 
> basically i can't mount my floppy drive. with ACPI on my kernel couldn't eve
n 
> detect the floppy controller. ever since i removed acpi now my kernel sees 

> the controller:
> 
> # dmesg|grep fd
> fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 
> 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
> fdc0: FIFO enabled, 8 bytes threshold
> 
> but the fd0 or fdc0 isn't in /dev, there's only a fd/ dir:
> 
> ls /dev/f*
> 0       1       2
> 
> so the floppy disk drive is still invisible. i recently replaced my drive wi
th 
> a drive and its cable known to work on another machine.

Could you provide the whole dmesg?  There should be some sort of error
if the device made it that far and then didn't show up in /dev since
/dev is devfs now.

> i have offline machines with no burner for which i need the floppy disk to 

> communicate with. if 4- can do it why wouldn't 5- ?

Overall, it sounds like you have resource allocation or discovery
problems.  Many of these have been fixed in -current.  You should
probably try updating.

Do those machines have USB?  If so, a keychain drive is a much better
option then a floppy.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040709/
121c65de/attachment-0001.bin

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

Message: 25
Date: Fri, 9 Jul 2004 14:44:16 -0300 (ADT)
From: "Marc G. Fournier" <scrappy@hub.org>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <20040709144251.X728@ganymede.hub.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Fri, 9 Jul 2004, Steve Kargl wrote:

> I've tested it on a UP kernel (HTT enabled, ACPI disabled,
> APIC enabled, ULE).   Appears to work fine.

'k, I just upgraded my machine to latest, running ULE, P4, SMP kernel (but 
doesn't find or start up a second CPU) ... just locked solid here too ... 
unfortunately, was running X at the time, so don't know if it locked or 
panic'd to DDB :(  Running non-X right now to see if it happens again ...

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664

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

Message: 26
Date: Fri, 9 Jul 2004 13:46:39 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: freebsd-current@FreeBSD.org, noackjr@alumni.rice.edu
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <200407091346.39021.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Friday 09 July 2004 01:19 pm, Jon Noack wrote:
> On 07/09/04 12:15, John Baldwin wrote:
> > My test machine is not a true SMP machine either, just HTT.  It has been
> > running a -j 256 worldloop overnight with no problems, so I committed a
> > slightly modified version of the patch yesterday.
>
> Did you test with a UP kernel?  After your latest commit I have been
> experiencing regular hard locks on my pre-HTT P4 machine.  Backing out
> rev. 1.114 of sched_ule.c fixes it.  See my previous message (Re:
> FreeBSD keeps hanging......):
> http://docs.freebsd.org/cgi/mid.cgi?40EECC49.3070501

No, it's running an SMP kernel.  I have seen one hard lockup on a UP kernel on
 
my laptop when trying to use xmms in KDE while using ULE.

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

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

Message: 27
Date: Fri, 9 Jul 2004 13:52:46 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: panic: Assertion td->td_turnstile != NULL failed at
	../../../kern/subr_turnstile.c:478
To: freebsd-current@FreeBSD.org
Cc: Robert Watson <rwatson@FreeBSD.org>
Message-ID: <200407091352.46646.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 08 July 2004 10:31 pm, Robert Watson wrote:
> Was doing some stress testing on a box with some if_xl locking tweaks from
> Bruce Simpson, and ran into this.  Configuration is a GENERIC kernel
> running on a dual-Xeon 2.4GHz (each one with two logical processors, so
> 4 HTT processors).  The workload was as follows:
>
> - Apache 1.3 running on the box, 20 recursive wget clients from an
>   adjacent machine.
>
> - Simultaneous "supersmack" select key mysql test running with 11 threads
>   and 10,000 transactions, running with libkse.
>
> I attempted to log in on the serial console and got this panic:
>
> login: root
> Password:panic: Assertion td->td_turnstile != NULL failed at
> ../../../kern/subr_turnstile.c:478

This means your thread has no turnstile to give to the lock it is blocking on.
  
Are you using TURNSTILE_PROFILING on this box?

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

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

Message: 28
Date: Fri, 9 Jul 2004 13:52:46 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: panic: Assertion td->td_turnstile != NULL failed at
	../../../kern/subr_turnstile.c:478
To: freebsd-current@FreeBSD.org
Cc: Robert Watson <rwatson@FreeBSD.org>
Message-ID: <200407091352.46646.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 08 July 2004 10:31 pm, Robert Watson wrote:
> Was doing some stress testing on a box with some if_xl locking tweaks from
> Bruce Simpson, and ran into this.  Configuration is a GENERIC kernel
> running on a dual-Xeon 2.4GHz (each one with two logical processors, so
> 4 HTT processors).  The workload was as follows:
>
> - Apache 1.3 running on the box, 20 recursive wget clients from an
>   adjacent machine.
>
> - Simultaneous "supersmack" select key mysql test running with 11 threads
>   and 10,000 transactions, running with libkse.
>
> I attempted to log in on the serial console and got this panic:
>
> login: root
> Password:panic: Assertion td->td_turnstile != NULL failed at
> ../../../kern/subr_turnstile.c:478

This means your thread has no turnstile to give to the lock it is blocking on.
  
Are you using TURNSTILE_PROFILING on this box?

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

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

Message: 29
Date: Fri, 9 Jul 2004 19:53:17 +0200
From: h <h@llorien.org>
Subject: Re: i need my floppy disk drive.
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: freebsd-current@freebsd.org
Message-ID: <200407091953.18284.h@llorien.org>
Content-Type: text/plain;  charset="iso-8859-1"

is it safe to upgrade to current when i'm used to -release ?


dmesg:

FreeBSD 5.2.1-RELEASE-p9 #3: Thu Jul  8 16:09:39 CEST 2004
    h@insomnia.erathia:/usr/obj/usr/src/sys/INSOMNIA
Preloaded elf kernel "/boot/kernel/kernel" at 0xc09cd000.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc09cd244.
Preloaded elf module "/boot/modules/nvidia.ko" at 0xc09cd2f0.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP 1900+ (1595.28-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Stepping = 0
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory  = 536805376 (511 MB)
avail memory = 511762432 (488 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00f7fe0
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci_cfgintr: 0:13 INTA BIOS irq 10
pci_cfgintr: 0:16 INTA BIOS irq 11
pci_cfgintr: 0:16 INTB BIOS irq 10
pci_cfgintr: 0:16 INTC BIOS irq 10
pci_cfgintr: 0:16 INTD BIOS irq 3
pci_cfgintr: 0:18 INTA BIOS irq 11
agp0: <VIA Generic host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0
 
on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci_cfgintr: 0:1 INTA routed to irq 11
pcib1: slot 0 INTA is routed to irq 11
nvidia0: <Unknown> mem 0xd0000000-0xd7ffffff,0xde000000-0xdeffffff irq 11 at 

device 0.0 on pci1
pcm0: <Creative EMU10K1> port 0xe800-0xe81f irq 10 at device 13.0 on pci0
pcm0: <SigmaTel STAC9708/11 AC97 Codec>
uhci0: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 11 at device 16.0 on
 
pci0
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 0xe000-0xe01f irq 10 at device 16.1 on
 
pci0
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
uhci2: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 10 at device 16.2 on
 
pci0
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
pci0: <serial bus, USB> at device 16.3 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port 0xfc00-0xfc0f at device 17.1 on 
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd800-0xd8ff mem 
0xdffffe00-0xdffffeff irq 11 at device 18.0 on pci0
vr0: Ethernet address: 00:e0:18:d3:44:6f
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROM> at iomem 0xc0000-0xcf7ff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
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/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: IEEE1284 device found /NIBBLE
Probing for PnP devices on ppbus0:
ppbus0: <Hewlett-Packard LaserJet 4L> HP ENHANCED PCL5,PJL
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
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
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
Timecounters tick every 10.000 msec
GEOM: create disk ad0 dp=0xc48e1960
ad0: 76324MB <Maxtor 6Y080L0> [155072/16/63] at ata0-master UDMA133
acd0: DVDROM <HL-DT-STDVD-ROM GDR8162B> at ata1-master PIO4
acd1: CDRW <YAMAHA CRW2200E> at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a


On Friday 09 July 2004 19:43, you wrote:
> On Fri, Jul 09, 2004 at 03:13:48PM +0200, h wrote:
> > i'm using 5.2.1-RELEASE-p9 but have been told to post to the current
> > mailing list about this issue.
> >
> > several of us from freenode #freebsd have been pulling our hair off
> > trying to get our floppy disk drive to work. at some point jer told he's
> > had the flaw with his machines for over a year since the early 5.1.
> >
> > basically i can't mount my floppy drive. with ACPI on my kernel couldn't
> > even detect the floppy controller. ever since i removed acpi now my
> > kernel sees the controller:
> >
> > # dmesg|grep fd
> > fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port
> > 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
> > fdc0: FIFO enabled, 8 bytes threshold
> >
> > but the fd0 or fdc0 isn't in /dev, there's only a fd/ dir:
> >
> > ls /dev/f*
> > 0       1       2
> >
> > so the floppy disk drive is still invisible. i recently replaced my drive

> > with a drive and its cable known to work on another machine.
>
> Could you provide the whole dmesg?  There should be some sort of error
> if the device made it that far and then didn't show up in /dev since
> /dev is devfs now.
>
> > i have offline machines with no burner for which i need the floppy disk
> > to communicate with. if 4- can do it why wouldn't 5- ?
>
> Overall, it sounds like you have resource allocation or discovery
> problems.  Many of these have been fixed in -current.  You should
> probably try updating.
>
> Do those machines have USB?  If so, a keychain drive is a much better
> option then a floppy.
>
> -- Brooks

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

Message: 30
Date: Fri, 09 Jul 2004 12:53:53 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <40EEDBB1.6090903@alumni.rice.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed

On 07/09/04 12:25, Steve Kargl wrote:
> On Fri, Jul 09, 2004 at 12:19:09PM -0500, Jon Noack wrote:
>> On 07/09/04 12:15, John Baldwin wrote:
>>> My test machine is not a true SMP machine either, just HTT.  It
>>> has been running a -j 256 worldloop overnight with no problems,
>>> so I committed a slightly modified version of the patch
>>> yesterday.
>> 
>> Did you test with a UP kernel?  After your latest commit I have
>> been experiencing regular hard locks on my pre-HTT P4 machine.
>> Backing out rev. 1.114 of sched_ule.c fixes it.  See my previous
>> message (Re: FreeBSD keeps hanging......): 
>> http://docs.freebsd.org/cgi/mid.cgi?40EECC49.3070501
> 
> I've tested it on a UP kernel (HTT enabled, ACPI disabled, APIC
> enabled, ULE).   Appears to work fine.

Perhaps it's just extraneous information, but if it's really a UP kernel 
(as in, no 'options SMP') then whether you have HTT enabled doesn't 
matter at all -- the kernel won't use it.

Jon

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

Message: 31
Date: Fri, 9 Jul 2004 13:54:19 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: Re: panic: Assertion td->td_turnstile != NULL failed at
	../../../kern/subr_turnstile.c:478
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID:
	<Pine.NEB.3.96L.1040709135400.53137B-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 9 Jul 2004, John Baldwin wrote:

> > login: root
> > Password:panic: Assertion td->td_turnstile != NULL failed at
> > ../../../kern/subr_turnstile.c:478
> 
> This means your thread has no turnstile to give to the lock it is
> blocking on.  Are you using TURNSTILE_PROFILING on this box? 

Not currently.  Would you like me to?

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research



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

Message: 32
Date: Fri, 9 Jul 2004 13:54:19 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: Re: panic: Assertion td->td_turnstile != NULL failed at
	../../../kern/subr_turnstile.c:478
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID:
	<Pine.NEB.3.96L.1040709135400.53137B-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 9 Jul 2004, John Baldwin wrote:

> > login: root
> > Password:panic: Assertion td->td_turnstile != NULL failed at
> > ../../../kern/subr_turnstile.c:478
> 
> This means your thread has no turnstile to give to the lock it is
> blocking on.  Are you using TURNSTILE_PROFILING on this box? 

Not currently.  Would you like me to?

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research



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

Message: 33
Date: Fri, 9 Jul 2004 11:06:35 -0700
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <20040709180635.GA11419@troutmask.apl.washington.edu>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 09, 2004 at 12:53:53PM -0500, Jon Noack wrote:
> On 07/09/04 12:25, Steve Kargl wrote:
> >On Fri, Jul 09, 2004 at 12:19:09PM -0500, Jon Noack wrote:
> >>On 07/09/04 12:15, John Baldwin wrote:
> >>>My test machine is not a true SMP machine either, just HTT.  It
> >>>has been running a -j 256 worldloop overnight with no problems,
> >>>so I committed a slightly modified version of the patch
> >>>yesterday.
> >>
> >>Did you test with a UP kernel?  After your latest commit I have
> >>been experiencing regular hard locks on my pre-HTT P4 machine.
> >>Backing out rev. 1.114 of sched_ule.c fixes it.  See my previous
> >>message (Re: FreeBSD keeps hanging......): 
> >>http://docs.freebsd.org/cgi/mid.cgi?40EECC49.3070501
> >
> >I've tested it on a UP kernel (HTT enabled, ACPI disabled, APIC
> >enabled, ULE).   Appears to work fine.
> 
> Perhaps it's just extraneous information, but if it's really a UP kernel 
> (as in, no 'options SMP') then whether you have HTT enabled doesn't 
> matter at all -- the kernel won't use it.
> 

Yes, I know. :-)  I'm just reporting what dmesg tells me about the CPU.

CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1994.12-MHz 686-class CPU)

  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV
,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>

-- 
Steve



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

Message: 34
Date: Fri, 9 Jul 2004 15:07:34 -0300 (ADT)
From: "Marc G. Fournier" <scrappy@hub.org>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: John Baldwin <jhb@FreeBSD.org>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <20040709150650.P728@ganymede.hub.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Fri, 9 Jul 2004, John Baldwin wrote:

> No, it's running an SMP kernel.  I have seen one hard lockup on a UP 
> kernel on my laptop when trying to use xmms in KDE while using ULE.

Mine was running KDE and trying to do a portupgrade at the same time ... 
right now, not in X at all, running portupgrade, and *so far* haven't seen 
anything, but only up 28min so far ...

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664

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

Message: 35
Date: Fri, 9 Jul 2004 20:06:57 +0200
From: Bernd Walter <ticso@cicely12.cicely.de>
Subject: Re: default HZ value in 5.2.1
To: Kirk Strauser <kirk@strauser.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040709180656.GB35892@cicely12.cicely.de>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 09, 2004 at 12:31:29PM -0500, Kirk Strauser wrote:
> On Friday 2004-07-09 11:03 am, Chris Stenton wrote:
> 
> > Any reason why the default value for HZ is still set at 100?  Would not
> > 1000 be better for finer granularity?

The default on i386 is 100 - this is not the case on alpha.

> Setting HZ=1000 absolutely destroyed my Alpha's throughput:

As long as I can remember alphas default to > 1000.
E.g. some are doing 1200 and other 1024 depending on the platform.
AFAIK there are reasons not be exactly 1000.
Why do you need 1000 instead of the system default?

-- 
B.Walter                   BWCT                http://www.bwct.de
bernd@bwct.de                                  info@bwct.de


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

Message: 36
Date: Fri, 09 Jul 2004 13:11:46 -0500
From: Eric Anderson <anderson@centtech.com>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: John Baldwin <jhb@freebsd.org>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <40EEDFE2.10908@centtech.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

John Baldwin wrote:

>On Friday 09 July 2004 01:19 pm, Jon Noack wrote:
>  
>
>>On 07/09/04 12:15, John Baldwin wrote:
>>    
>>
>>>My test machine is not a true SMP machine either, just HTT.  It has been
>>>running a -j 256 worldloop overnight with no problems, so I committed a
>>>slightly modified version of the patch yesterday.
>>>      
>>>
>>Did you test with a UP kernel?  After your latest commit I have been
>>experiencing regular hard locks on my pre-HTT P4 machine.  Backing out
>>rev. 1.114 of sched_ule.c fixes it.  See my previous message (Re:
>>FreeBSD keeps hanging......):
>>http://docs.freebsd.org/cgi/mid.cgi?40EECC49.3070501
>>    
>>
>
>No, it's running an SMP kernel.  I have seen one hard lockup on a UP kernel o
n 
>my laptop when trying to use xmms in KDE while using ULE.
>
>  
>

Just for a point of reference, I updated yesterday (first time in about 
45 days), and now I'm seeing lockups too..

I'm running a UP kernel, with 4BSD scheduler..

Eric


-- 
------------------------------------------------------------------
Eric Anderson     Sr. Systems Administrator    Centaur Technology
Talk sense to a fool and he calls you foolish.
------------------------------------------------------------------


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

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


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


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