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: So much entropy it's coming out of our ears?  (Mark Murray)
   2. Re: Unable to build recent kernels  (Mark Murray)
   3. Re: /dev/vga (Jiawei Ye)
   4. Re: Atomic operations on i386/amd64 (Scott Long)
   5. usb palm (Randy Bush)
   6. PLEASE TEST: acpi pci irq routing (Nate Lawson)
   7. Re: about the gcc 3.4.x problems (David Schultz)
   8. Re: /dev/vga (Stephan van Beerschoten)
   9. Re: Atomic operations on i386/amd64 (Ville-Pertti Keinonen)
  10. Re: Atomic operations on i386/amd64 (Doug Rabson)
  11. Re: processes freezing when writing to gstripe'd device
      (Pawel Jakub Dawidek)
  12. RE: Vinum status (Daniel Eriksson)
  13. Simple BDE disc encryption benchmark (Daniel Eriksson)
  14. geom stripe/concat metadata suggestion (Sam Lawrance)
  15. Re: geom stripe/concat metadata suggestion (Pawel Jakub Dawidek)
  16. Portupgrade -rf pango  re: gnome without text (Tony Montana)
  17. Re: Vinum status (Craig Boston)
  18. [current tinderbox] failure on ia64/ia64 (FreeBSD Tinderbox)
  19. Re: 5.3-RELEASE TODO (John Kennedy)
  20. Re: Watchdog timeouts with ACPI (Chris Stenton)
  21. Re: geom stripe/concat metadata suggestion (Pawel Jakub Dawidek)
  22. [current tinderbox] failure on powerpc/powerpc (FreeBSD Tinderbox)
  23. Re: [PLEASE TEST] Better support for Synaptics Touchpads
      (Philip Paeps)
  24. Re: [PLEASE TEST] Better support for Synaptics Touchpads
      (Arne Schwabe)
  25. Re: Panic on boot with today's CURRENT, ata related
      (Radek Kozlowski)
  26. broken wchar'd rev(1) (FUJISHIMA Satsuki)
  27. Re: broken wchar'd rev(1) (Tim Robbins)
  28. Re: broken wchar'd rev(1) (FUJISHIMA Satsuki)
  29. Re: Atomic operations on i386/amd64 (John Baldwin)
  30. Re: Instant Reboots (was: Re: Postgresql locks up server - no
      response at all) (John Baldwin)
  31. Re: Instant Reboots (was: Re: Postgresql locks up server - no
      response at all) (John Baldwin)
  32. Re: Watchdog timeouts with ACPI (John Baldwin)
  33. Re: Instant Reboots (was: Re: Postgresql locks up server - no
      response at all) (Geoff Speicher)
  34. Re: Instant Reboots (was: Re: Postgresql locks up server - no
      response at all) (Geoff Speicher)
  35. Giant lock issue with almost -current (Poul-Henning Kamp)
  36. Re: geom stripe/concat metadata suggestion (Dan Nelson)
  37. Re: Vinum status (Axel S.Gruner)


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

Message: 1
Date: Thu, 05 Aug 2004 17:04:10 +0100
From: Mark Murray <mark@grondar.org>
Subject: Re: So much entropy it's coming out of our ears? 
To: Sam Leffler <sam@errno.com>
Cc: Robert Watson <rwatson@FreeBSD.ORG>
Message-ID: <200408051604.i75G4BFe056682@grimreaper.grondar.org>

Sam Leffler writes:
> > But a push system is still better if it doesn't impact performance too
> > much.
> 
> Push vs pull and exhaustion depends on your system config which is why I 
> hedged with "or a hybrid scheme".  If a system has a reasonable h/w entropy 
> source it should be able to pull enough entropy on demand to keep everyone 
> happy.  I know this to be true for at least 4 crypto parts that include a h/w 
> RNG.  On systems like this you want to just shutdown all other forms of 
> entropy gathering unless you're paranoid about having a single source of 
> entropy.

I'm thinking about a hybrid system right now. This is the very early stages
of my thinking, so its a bit raw.

The harvest queue has "nearly full" and "nearly empty" marks. At
"nearly full" the harvesters get turned off, and at "nearly empty" they
get turned back on.  The Yarrow thread is throttled so that it only
does work (including turning back on the harvesting) when its output is
being read.

Or something. I'm scared of getting into insecure states, so I want
to think about this. I need to check that this doesn't break the Yarrow
design (or the up-and-coming Fortuna design). I think it doesn't.

M
--
Mark Murray
iumop ap!sdn w,I idlaH

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

Message: 2
Date: Thu, 05 Aug 2004 19:28:37 +0100
From: Mark Murray <mark@grondar.org>
Subject: Re: Unable to build recent kernels 
To: Doug White <dwhite@gumbysoft.com>
Cc: "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
Message-ID: <200408051828.i75ISblb057656@grimreaper.grondar.org>

Doug White writes:
> On Wed, 4 Aug 2004, Mark Murray wrote:
> 
> > > cat >> your_kernel_config_file <<EOF
> > > device mem
> > > device null
> > > device zero
> > > EOF
> >
> > Only the first one. "device mem"
> 
> Some stuff might want "device io" too :)

The question asked "what do I need to add to fix the breakage?".

"device io" was never broken, and the triple-quoted answer above was in
part erroneous. "device zero" has never existed.

M
--
Mark Murray
iumop ap!sdn w,I idlaH

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

Message: 3
Date: Fri, 6 Aug 2004 11:34:55 +0800
From: Jiawei Ye <leafy7382@gmail.com>
Subject: Re: /dev/vga
To: Ying-Chieh Liao <ijliao@freebsd.org>
Cc: Gleb Smirnoff <glebius@freebsd.org>
Message-ID: <c21e92e204080520343bde500@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

On Fri, 6 Aug 2004 09:58:00 +0800, Ying-Chieh Liao <ijliao@freebsd.org> wrote:
> me too
> add "device io" in kernel config helps me create /dev/io
> add "link ttyv0 vga" helps me create /dev/vga
> but I still dont have /dev/mem
> and X.org complains about "cannot mmap /dev/vga"
I kldload mem,io,null in loader.conf. It is weird that the modules are
not loaded on-the-fly.

Jiawei Ye

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

Message: 4
Date: Thu, 05 Aug 2004 21:43:53 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: Atomic operations on i386/amd64
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <4112FE79.4020007@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

John Baldwin wrote:
> On Thursday 05 August 2004 01:04 am, Tim Robbins wrote:
> 
>>Is there any particular reason why atomic_load_acq_*() and
>>atomic_store_rel_*() are implemented with CMPXCHG and XCHG instead of
>>MOV on i386/amd64 UP?
> 
> 
> Actually, using mov instead of lock xchg for store_rel reduced performance in 
> some benchmarks Scott ran on an SMP machine, I'm guessing due to the higher 
> latency of locks becoming available to other CPUs.  I'm still waiting for 
> benchmark results on UP to see if the change should be made under #ifndef SMP 
> or some such.
> 

Your patch appears to slightly pessimize UP as well and SMP.

Scott

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

Message: 5
Date: Thu, 5 Aug 2004 19:31:25 -1000
From: Randy Bush <randy@psg.com>
Subject: usb palm
To: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <16659.6061.369420.562800@roam.psg.com>
Content-Type: text/plain; charset=us-ascii

i386 -curent as of yesterday
jpilot configured for /dev/uvisor

Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
Aug  5 19:29:36 foux kernel: ucom0: init failed, TIMEOUT
Aug  5 19:29:36 foux kernel: device_attach: ucom0 attach returned 6
Aug  5 19:29:36 foux kernel: uhub1: port 2, set config at addr 2 failed
Aug  5 19:29:36 foux kernel: uhub1: device problem, disabling port 2

any clues appreciated

randy


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

Message: 6
Date: Thu, 05 Aug 2004 23:02:20 -0700
From: Nate Lawson <nate@root.org>
Subject: PLEASE TEST: acpi pci irq routing
To: current@freebsd.org
Message-ID: <41131EEC.4050909@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

I've committed some initial changes to PCI irq routing with ACPI. 
Please cvsup and test if you have had problems with irqs with acpi 
enabled in the past.  Especially if you have to disable acpi and/or apic 
to boot, please test.  If your BIOS has problems, it will generate a 
printf.  To go back to the old behavior, uncomment the #define at the 
top of acpi_pci_link.c and recompile.

Thanks,
Nate

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

Message: 7
Date: Fri, 6 Aug 2004 00:00:18 -0700
From: David Schultz <das@FreeBSD.ORG>
Subject: Re: about the gcc 3.4.x problems
To: "Dag-Erling =?us-ascii:iso-8859-1?Q?Sm=F8rgrav?=" <des@des.no>
Cc: Scott Long <scottl@FreeBSD.ORG>
Message-ID: <20040806070018.GA16530@VARK.homeunix.com>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 30, 2004, Dag-Erling Smrgrav wrote:
> Dan Nelson <dnelson@allantgroup.com> writes:
> > And that's not a problem.  There there are just X thousand lines of code in
> > /usr/src that have never been tested with -Os.  That's the only reason that
> > -Os and -O2 are not "officially" supported.
> 
> Not true, -O2 is supported.
> 
> >                                               I have built worlds using -O2
> > with absolutely no problems for a few years.
> 
> I doubt it - until earlier this year, the world wouldn't even build
> with -O2.

It has built for quite a while with -DNO_WERROR.

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

Message: 8
Date: Fri, 06 Aug 2004 09:20:23 +0200
From: Stephan van Beerschoten <stephanb@whacky.net>
Subject: Re: /dev/vga
To: Ying-Chieh Liao <ijliao@FreeBSD.org>
Cc: Gleb Smirnoff <glebius@freebsd.org>
Message-ID: <41133137.3020102@whacky.net>
Content-Type: text/plain; charset=UTF-8; format=flowed

Ying-Chieh Liao wrote:

>On 鍥�,  8 05, 2004 at 18:42:06 +0400, Gleb Smirnoff wrote:
>  
>
>>On Thu, Aug 05, 2004 at 12:59:30AM +0100, Paul Richards wrote:
>>P> I can't start X anymore it complains about being unable to mmap
>>P> /dev/vga.
>>I have /dev/io and /dev/mem disappered in today's CURRENT :)
>>    
>>
>
>me too
>add "device io" in kernel config helps me create /dev/io
>add "link ttyv0 vga" helps me create /dev/vga
>but I still dont have /dev/mem
>and X.org complains about "cannot mmap /dev/vga"
>  
>
Are you really surprised linking ttyv0 to vga doesn't work?

#kldload mem
#kldload io

With both of these modules, my X.org will start up without any complains.
/dev/vga and /dev/mem are BOTH created through the mem module, how odly 
it may seem.

What I would like to know is WHY these were modularized. I am happy the 
/dev/null module was reverted. To me that seemed like the most 
rediculous thing to do anyway as every UNIX system needs it. Therefore 
everyone would have needed to load the module by hand. What benefit 
would that give ? It seems to add more difficulty then it adds in 
functionality. Also, now I have to figure out a way to load these 
modules per default.

btw, you can of course put 'device mem' and 'device io' in your kernel 
config, but I won't want to.

/Stephan

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

Message: 9
Date: Fri, 06 Aug 2004 11:29:57 +0300
From: Ville-Pertti Keinonen <will+freebsd-current@will.iki.fi>
Subject: Re: Atomic operations on i386/amd64
To: Bruce M Simpson <bms@spc.org>
Cc: freebsd-current@freebsd.org
Message-ID: <41134185.1090105@will.iki.fi>
Content-Type: text/plain; charset=us-ascii; format=flowed

Bruce M Simpson wrote:

>Have a look at Linux. They ended up doing a runtime self-modifying kernel
>hack so they could ship generic kernels which used the appropriate locking
>instructions on each x86 family CPU.
>  
>
The idea of using self-modification to select locking modes (although 
for optional preemption, SMP and debugging rather than CPU model) is 
also described in a DEC Technical Journal article:

http://research.compaq.com/wrl/DECarchives/DTJ/DTJF03/DTJF03SC.TXT

I'm not sure whether the Linux implementation uses the same technique.


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

Message: 10
Date: Fri, 6 Aug 2004 09:31:29 +0100
From: Doug Rabson <dfr@nlsystems.com>
Subject: Re: Atomic operations on i386/amd64
To: freebsd-current@freebsd.org
Cc: Bruce M Simpson <bms@spc.org>
Message-ID: <200408060931.29804.dfr@nlsystems.com>
Content-Type: text/plain;  charset="iso-8859-1"

On Friday 06 August 2004 03:30, Bruce M Simpson wrote:
> On Thu, Aug 05, 2004 at 04:15:32PM -0600, Scott Long wrote:
> > >>Is there any particular reason why atomic_load_acq_*() and
> > >>atomic_store_rel_*() are implemented with CMPXCHG and XCHG
> > >> instead of MOV on i386/amd64 UP?
>
> Have a look at Linux. They ended up doing a runtime self-modifying
> kernel hack so they could ship generic kernels which used the
> appropriate locking instructions on each x86 family CPU.

I also really like the way the kernel exports a page containing 'the 
best syscall sequence' for the current processor.

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

Message: 11
Date: Fri, 6 Aug 2004 11:56:42 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: processes freezing when writing to gstripe'd device
To: Sam Lawrance <boris@brooknet.com.au>
Cc: freebsd-current@freebsd.org
Message-ID: <20040806095642.GC628@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"

On Mon, Aug 02, 2004 at 11:44:31AM +1000, Sam Lawrance wrote:
+> I'm running current from around the 24th of July. About to build world
+> to see if it makes any difference.
+> 
+> I am observing processes performing operations on a gstripe device
+> freeze in state 'bufwait'. An 'rm' process is stuck right now. The rest
+> of the system is fine.
+> 
+> The devices are two vnode backed md devices which I created just for
+> testing. The same thing occurred using two freebsd partitions of size
+> 15G each (not slices).
+> 
+>        NAME: test_cd.stripe
+>   geom name: test_cd.stripe
+>   mediasize: 10231808 (9.8M)
+>  sectorsize: 512
+>        mode: r1w1e0
+>       state: UP
+>      status: total=2, online=2
+>   providers: md3 md2
+>        type: automatic
+>  stripesize: 4096
+>          id: 1411913070
+> 
+> What's the best way to look in to this? I can't attach to rm with gdb
+> (it just ends up waiting for something). I can drop to kdb, but have no
+> idea where to go from there.

Ok, I found the bug in geom_stripe. Fix is committed, thanks for the report!

-- 
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/20040806/2a002c33/attachment-0001.bin

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

Message: 12
Date: Fri, 6 Aug 2004 12:52:42 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: Vinum status
To: <freebsd-current@freebsd.org>, "'Lukas Ertl'" <le@freebsd.org>
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAA+uZEbhcbi0a2SqE8uSZxKQEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="us-ascii"


On the subject of gvinum status:

Has anyone tried to verify the recovery capability of gvinum for RAID-5
arrays? I recently helped a friend set up a 4 disc RAID-5 array, and the
other day he called me and wanted to know how to verify data integrity in
case of a disc problem. Since all 4 discs are SATA I suggested he would
blast data at the array (which is exported as a Samba share) and then in the
middle of that pull one of the SATA cables out.

With two other computers pushing data onto the Samba share, he pulled one of
the cables. The machine detected that the disc was gone and removed it from
the configuration. gvinum then noticed the missing disc, said it was down
and then reported the plex as degraded (which is exactly what I was
expecting). However, instead of then continuing to run in degraded mode, the
machine page-faulted. I do not have any details about this page-fault, but
if my friend is the only one with this problem I can quite easily get more
details by trying it again (this time with KDB/DDB compiled in and me at the
console).

Has anyone else tried this? Did it work?

System:
* ASUS P2B-DS, 2 x 700MHz P3, 1GB ECC mem
* 4 x 120GB Maxtor SATA discs hooked up to a HighPoint RocketRAID 1540
(HPT374)
* 5-CURRENT (from 2004.08.02 I think, so after preemption was disabled)

/Daniel Eriksson



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

Message: 13
Date: Fri, 6 Aug 2004 13:35:38 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: Simple BDE disc encryption benchmark
To: <freebsd-current@freebsd.org>
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAApKSdNgL8EkaHhtB/cG3DrwEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="us-ascii"


Hi! I just ran a very simple benchmark on the GBDE disc encryption in
CURRENT. The benchmark setup looked like this:

* Slow machine (Celeron 366, 128MB mem)
* 5-CURRENT from yesterday, running off of some old ATA disc
* 2 x 9GB 10k rpm SCSI discs hooked up to an Adaptec 2940

The benchmark was to copy the /usr directory (copied from the ATA disc,
1.7GB) or a directory containing big files (/bigfiles, 1.7GB in 16 files
created by 'dd if=/dev/random ...') from scsi disc 1 to scsi disc 2. I ran
each benchmark twice and took a simple average of the results.

unencrypted to unencrypted:
/usr     :  697 real        10.6 user       235 sys  (~50 135130496dle)
/bigfiles:  123 real         0.4 user        84 sys  (~25 135130496dle)

unencrypted to encrypted:
/usr     : 1778 real        10.7 user       236 sys  (~35 135130496dle)
/bigfiles:  379 real         0.4 user        82 sys  (~10 135130496dle)

encrypted to encrypted:
/usr     : 1978 real        11.6 user       242 sys  (~25 135130496dle)
/bigfiles:  615 real         0.4 user        80 sys  (0 135130496dle)

The only time the CPU was completely busy was when copying /bigfiles from
encrypted to encrypted.

My question is: Why does the it take so much longer when encryption is
involved even though 'top' seems to think there are CPU cycles left to burn?

/Daniel Eriksson



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

Message: 14
Date: Fri, 06 Aug 2004 21:38:21 +1000
From: Sam Lawrance <boris@brooknet.com.au>
Subject: geom stripe/concat metadata suggestion
To: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <1091792300.749.14.camel@dirk.no.domain>
Content-Type: text/plain

Would it be a good idea to store the device name, or something similar,
in the metadata?

For example, if I have a disk divided like this:

 |--------------ad0--------------|
 |-------------ad0s1-------------|
 |----ad0s1g-----|-----ad0s1d----|

The metadata is written into the last sector, so when the stripe/concat
classes are tasting they can't work out whether it belongs to ad0s1d,
ad0s1 or ad0.

I've had problems creating stripes and concats with this configuration.

Regards
Sam.



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

Message: 15
Date: Fri, 6 Aug 2004 13:49:35 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: geom stripe/concat metadata suggestion
To: Sam Lawrance <boris@brooknet.com.au>
Cc: current@FreeBSD.org
Message-ID: <20040806114935.GD628@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"

On Fri, Aug 06, 2004 at 09:38:21PM +1000, Sam Lawrance wrote:
+> Would it be a good idea to store the device name, or something similar,
+> in the metadata?
+> 
+> For example, if I have a disk divided like this:
+> 
+>  |--------------ad0--------------|
+>  |-------------ad0s1-------------|
+>  |----ad0s1g-----|-----ad0s1d----|
+> 
+> The metadata is written into the last sector, so when the stripe/concat
+> classes are tasting they can't work out whether it belongs to ad0s1d,
+> ad0s1 or ad0.
+> 
+> I've had problems creating stripes and concats with this configuration.

Yes, this is a problem, but I'm not going to store provider's name in the
metadata, because now, you just copy disk with 'dd' and your stripe still
works.

As a workaround you shouldn't use last sector on ad0s1d. If you don't want
to change partition, you can use gnop(8) for this:

	# gstripe clear ad0s1d
	# gnop create -s `diskinfo ad0s1d | awk '{print $3 - 512}'` ad0s1d
	# gstripe label <name> <first_component> ad0s1d.nop

But in such case it will not be automatically discovered at boot time.

The best solution probably is to not use last disk sector...

Hmm, when such conflict is detected I should probably destroy whole device,
instead of configuring it from first component found.

-- 
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/20040806/cfabe352/attachment-0001.bin

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

Message: 16
Date: Fri, 6 Aug 2004 06:29:28 -0700 (PDT)
From: Tony Montana <tonymontanadea@yahoo.com>
Subject: Portupgrade -rf pango  re: gnome without text
To: freebsd-current@freebsd.org
Message-ID: <20040806132928.30470.qmail@web20228.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

I did portupgrade -rf pango as suggested for fixing
the "no text in gnome" problem. After many many hours
of it doing its thing, i do a startx and was initialy
happy to see text under icons and on the taskbar.
Tought problem was solved. To my dismay i go into some
of the desktop preferences and several of the menus
had no text!?!?! What in the world is going on here? I
just did a portupgrade -rf gnome2 as was partialy
suggested prior to the pango part and hopefully this
will correct it but now i feel snakebitten by the
system. Any thoughts on this?


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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

Message: 17
Date: Fri, 6 Aug 2004 08:38:06 -0500
From: Craig Boston <craig@xfoil.gank.org>
Subject: Re: Vinum status
To: Paul Mather <paul@gromit.dlib.vt.edu>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040806133806.GA30900@nowhere>
Content-Type: text/plain; charset=us-ascii

On Thu, Aug 05, 2004 at 11:06:16PM -0400, Paul Mather wrote:
> The only time I've had a problem is when I last built a kernel (today,
> actually) and forgot to build geom_vinum.ko manually.  Needless to say,
> the next boot failed to find my root partition due to the missing kernel
> module.  Luckily, rebooting using /boot/kernel.old allowed me to build
> and install geom_vinum.ko and boot my new kernel successfully.

It would be nice if geom_vinum and gvinum could be hooked up to the
build.  There are quite a few people using them now and they seem to be
"usable enough" (for CURRENT anyway).  I don't think it would hurt
anything as the user would still have to configure it manually -- it's
not going to start stealing drives away from non-GEOM vinum I don't
think.

> I mentioned on freebsd-current that round-robin reads don't seem to be
> supported by geom_vinum, yet.  (Lukas confirmed this is yet to be
> done.)  In my system, all reads are from one drive of my mirror, unlike
> with the old vinum.  Perhaps this is partially the cause of the relative
> slowness you're seeing?

I wonder how this is handled in the RAID5 case, where you don't really
have a choice.  You either have to round robin read, or read all the
drives and suffer the parity calculation penalty.

/off to check the source...

> It'd be great to see GEOM vinum go into 5.3, and hence be adopted for
> 5-STABLE.  Great work, Lukas!

Agreed, I'm quite happy that I can swap over vinum again without md(4)
hacks.  Straight GEOM classes may eventually be more flexible, but for
now vinum is still the simplest way to get volume management.  Having a
clean upgrade path from 4.x is a very good thing too.

--
Craig

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

Message: 18
Date: Fri,  6 Aug 2004 11:09:21 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on ia64/ia64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<ia64@freebsd.org>
Message-ID: <20040806150921.D33DA7303F@freebsd-current.sentex.ca>

TB --- 2004-08-06 14:40:06 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2004-08-06 14:40:06 - starting CURRENT tinderbox run for ia64/ia64
TB --- 2004-08-06 14:40:06 - cleaning the sandbox
TB --- 2004-08-06 14:41:25 - checking out the source tree
TB --- 2004-08-06 14:41:25 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64
TB --- 2004-08-06 14:41:25 - /usr/bin/cvs -f -R -Q -d/home/ncvs checkout -P -A src
TB --- 2004-08-06 14:49:15 - WARNING: /home/tinderbox/sandbox/ia64.diff does not exist
TB --- 2004-08-06 14:49:15 - building world (CFLAGS=-O -pipe)
TB --- 2004-08-06 14:49:15 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src
TB --- 2004-08-06 14:49:15 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
[...]
/tinderbox/CURRENT/ia64/ia64/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:65: warning: redundant redeclaration of 'getaddrinfo'
/home/tinderbox/sandbox/CURRENT/ia64/ia64/obj/ia64/tinderbox/CURRENT/ia64/ia64/src/i386/usr/include/netdb.h:244: warning: previous declaration of 'getaddrinfo' was here
/tinderbox/CURRENT/ia64/ia64/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:66: error: conflicting types for 'gai_strerror'
/home/tinderbox/sandbox/CURRENT/ia64/ia64/obj/ia64/tinderbox/CURRENT/ia64/ia64/src/i386/usr/include/netdb.h:248: error: previous declaration of 'gai_strerror' was here
/tinderbox/CURRENT/ia64/ia64/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:66: error: conflicting types for 'gai_strerror'
/home/tinderbox/sandbox/CURRENT/ia64/ia64/obj/ia64/tinderbox/CURRENT/ia64/ia64/src/i386/usr/include/netdb.h:248: error: previous declaration of 'gai_strerror' was here
/tinderbox/CURRENT/ia64/ia64/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:67: warning: redundant redeclaration of 'freeaddrinfo'
/home/tinderbox/sandbox/CURRENT/ia64/ia64/obj/ia64/tinderbox/CURRENT/ia64/ia64/src/i386/usr/include/netdb.h:247: warning: previous declaration of 'freeaddrinfo' was here
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src/lib/libbsnmp/libbsnmp.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src/lib/libbsnmp.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src/lib.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src.
TB --- 2004-08-06 15:09:21 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-08-06 15:09:21 - ERROR: failed to build world
TB --- 2004-08-06 15:09:21 - tinderbox aborted


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

Message: 19
Date: Fri, 6 Aug 2004 08:18:19 -0700
From: John Kennedy <jk@jk.homeunix.net>
Subject: Re: 5.3-RELEASE TODO
To: Scott Long <scottl@samsco.org>
Cc: re@freebsd.org
Message-ID: <20040806151819.GA26625@memnoch.jk.homeunix.net>
Content-Type: text/plain; charset=us-ascii

On Wed, Aug 04, 2004 at 09:39:43PM -0600, Scott Long wrote:
> Does the resulting world actually work?  Can you install it via DESTDIR
> to another disk and boot off of it?

  Just to follow up, I got a 5.2.1-RELEASE-p9 to compile 5-CURRENT and
booted it (using DESTDIR into another partition).  I was brain-farting on
the additions I needed to make to passwd and group, so I didn't kick off
the 2nd stage rebuild inside the 5-CURRENT environment yet, but I'm
assuming that is fairly well tested.

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

Message: 20
Date: Fri, 06 Aug 2004 16:32:42 +0100
From: Chris Stenton <jacs@gnome.co.uk>
Subject: Re: Watchdog timeouts with ACPI
To: John Baldwin <jhb@freebsd.org>
Cc: Bill Moran <wmoran@potentialtech.com>
Message-ID: <1091806362.4482.40.camel@hawk.gnome.co.uk>
Content-Type: text/plain

John,

Are there still outstanding ACPI issues?

On my ASUS dual xeon motherboard I still can't use my onboard intel nic
with ACPI enabled (under 5.2.1).

Chris


On Thu, 2004-08-05 at 22:47, John Baldwin wrote:
> On Sunday 01 August 2004 10:12 am, Bill Moran wrote:
> > Just cvsupped current and rebuilt everything last night (July 31) and I
> > get watchdog timeouts on my NIC when ACPI is enabled.  All seems to work
> > well with ACPI turned off.
> >
> > dmesg is attached.  Email me if there's any more information I can collect
> > to help get this working better.  I'm not subscribed to current@, so
> > send it direct.
> 
> Try ACPI with apic diesbled (set hint.apic.0.disabled=1 at the loader prompt), 
> it appears that your MP Table is busted so you aren't using the apic when you 
> don't use ACPI.


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

Message: 21
Date: Fri, 6 Aug 2004 17:34:49 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: geom stripe/concat metadata suggestion
To: Sam Lawrance <boris@brooknet.com.au>
Cc: current@FreeBSD.org
Message-ID: <20040806153449.GH628@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"

On Fri, Aug 06, 2004 at 09:38:21PM +1000, Sam Lawrance wrote:
+> Would it be a good idea to store the device name, or something similar,
+> in the metadata?
+> 
+> For example, if I have a disk divided like this:
+> 
+>  |--------------ad0--------------|
+>  |-------------ad0s1-------------|
+>  |----ad0s1g-----|-----ad0s1d----|
+> 
+> The metadata is written into the last sector, so when the stripe/concat
+> classes are tasting they can't work out whether it belongs to ad0s1d,
+> ad0s1 or ad0.
+> 
+> I've had problems creating stripes and concats with this configuration.

Ok, I decided to do it as an option, i.e. you'll be able to decide if
you want to hardcode provider's name in metadata.
Actually it is done already (in perforce), but I've to test 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/20040806/7e5dc93b/attachment-0001.bin

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

Message: 22
Date: Fri,  6 Aug 2004 11:37:08 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on powerpc/powerpc
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<powerpc@freebsd.org>
Message-ID: <20040806153708.947427303F@freebsd-current.sentex.ca>

TB --- 2004-08-06 15:09:22 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2004-08-06 15:09:22 - starting CURRENT tinderbox run for powerpc/powerpc
TB --- 2004-08-06 15:09:22 - cleaning the sandbox
TB --- 2004-08-06 15:10:48 - checking out the source tree
TB --- 2004-08-06 15:10:48 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerpc
TB --- 2004-08-06 15:10:48 - /usr/bin/cvs -f -R -Q -d/home/ncvs checkout -P -A src
TB --- 2004-08-06 15:18:47 - patching the sources
TB --- 2004-08-06 15:18:47 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerpc/src
TB --- 2004-08-06 15:18:47 - /usr/bin/patch -f -s -i/home/tinderbox/sandbox/powerpc.diff
TB --- 2004-08-06 15:18:47 - building world (CFLAGS=-O -pipe)
TB --- 2004-08-06 15:18:47 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerpc/src
TB --- 2004-08-06 15:18:47 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
[...]
/tinderbox/CURRENT/powerpc/powerpc/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:65: warning: redundant redeclaration of 'getaddrinfo'
/home/tinderbox/sandbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/src/i386/usr/include/netdb.h:244: warning: previous declaration of 'getaddrinfo' was here
/tinderbox/CURRENT/powerpc/powerpc/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:66: error: conflicting types for 'gai_strerror'
/home/tinderbox/sandbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/src/i386/usr/include/netdb.h:248: error: previous declaration of 'gai_strerror' was here
/tinderbox/CURRENT/powerpc/powerpc/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:66: error: conflicting types for 'gai_strerror'
/home/tinderbox/sandbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/src/i386/usr/include/netdb.h:248: error: previous declaration of 'gai_strerror' was here
/tinderbox/CURRENT/powerpc/powerpc/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/support.h:67: warning: redundant redeclaration of 'freeaddrinfo'
/home/tinderbox/sandbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/src/i386/usr/include/netdb.h:247: warning: previous declaration of 'freeaddrinfo' was here
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src/lib/libbsnmp/libbsnmp.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src/lib/libbsnmp.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src/lib.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
TB --- 2004-08-06 15:37:08 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-08-06 15:37:08 - ERROR: failed to build world
TB --- 2004-08-06 15:37:08 - tinderbox aborted


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

Message: 23
Date: Fri, 6 Aug 2004 18:06:10 +0200
From: Philip Paeps <philip@freebsd.org>
Subject: Re: [PLEASE TEST] Better support for Synaptics Touchpads
To: freebsd-current@freebsd.org
Message-ID: <20040806160610.GD803@loge.nixsys.be>
Content-Type: text/plain; charset=us-ascii

On 2004-08-05 09:12:36 (+0200), Philip Paeps <philip@freebsd.org> wrote:
> If you happen to own a laptop with a synaptics touchpad, please help test:
> 
>   <http://people.freebsd.org/~philip/psm.diff>

I updated the patch to be a bit cleaner.  I also fixed the sensitivity issues
many have reported.  That fix also appears to (at least partly) solve the
sticky issue.

Still to do are more motions (double-tap-hold, toss, virtual scrolling) and
proper support for guest devices.

 - Philip

-- 
Philip Paeps                                    Please don't Cc me, I am
philip@freebsd.org                               subscribed to the list.

  When a broken appliance is demonstrated for the repairman,
  it will work perfectly.

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

Message: 24
Date: Fri, 06 Aug 2004 18:21:45 +0200
From: Arne Schwabe <arne@rfc2549.org>
Subject: Re: [PLEASE TEST] Better support for Synaptics Touchpads
To: freebsd-current@freebsd.org
Message-ID: <86n0188cfa.fsf@kamino.rfc1149.org>
Content-Type: text/plain; charset=us-ascii

Philip Paeps <philip@freebsd.org> writes:

> Hi gang :-)
>
> Since the original synaptics support was added to psm, there have been some
> reports of malfunctions and missing magic.  I've tried to fix all that, but
> it's still work in progress.
>
> If you happen to own a laptop with a synaptics touchpad, please help test:
>
>   <http://people.freebsd.org/~philip/psm.diff>
>
> So far, I've had one report of a panic, possibly related to an extra gadget
> chained through the the touchpad.  If you're extra masochistic, and your
> laptop has one of these extra gadgets, you might like to remove the #if 0
> around line 2537 and the #endif around line 2568 of your sys/isa/psm.c.

Not using the stick would be masochistic in my opinion ;)

Anyway pressing  buttons of the touchpad and moving the stick gives
_strange_ effects but I think this time I motivate myself by not using
the synaptics XFree86 driver, so either I fix it or my mouse is broken
:)

Arne

-- 
compiling millions of tiny c-programs...done
checking for a working configure script... not found

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

Message: 25
Date: Fri, 6 Aug 2004 18:22:45 +0200
From: Radek Kozlowski <radek@raadradd.com>
Subject: Re: Panic on boot with today's CURRENT, ata related
To: current@freebsd.org
Message-ID: <20040806162245.GB55186@werd>
Content-Type: text/plain; charset=iso-8859-2

On Sun, Aug 01, 2004 at 10:43:56PM +0200, Radek Kozlowski wrote:
> I get a kernel panic on boot with today's CURRENT on my HP Pavilion
> laptop (ACPI enabled). Copied by hand:
> 
> [...]
> ad0: 38154MB <IC25N040ATMR04-0> [77520/16/63] at ata0-master PIO4
> ATAPI_RESET time = 70us
> 
> Fatal trap 12: page fault while in kernel mode
> fault virtual address	= 0x3c
> fault code		= supervisor read, page not present
> instrucion pointer	= 0x8 :0xc044990e
> stack pointer		= 0x10 :0xc0c21c8c
> frame pointer		= 0x10 :0xc0c21cc0
> code segment		= base 0x0, limit 0xfffff, type 0x1b
> 			= DPL 0, pres 1, def32 1, gran 1
> processor eflags	= interrupt enabled, resume, IOPL = 0
> current process		= 0 (swapper)
> [thread 0]
> Stopped at ata-generic_transaction+0x80e:   testb   $0x1,0x3c(1.268054e+246ax)
> db> trace
> ata_generic_transaction(c1b25a8c,c1b25a8c,1f4,a,c1b25a8c) at
> ata_generic_transaction+0x80e
> ata_start(c1947c00,0,c06b906f,1,c1b25a8c) at ata_start+0x279
> ata_queue_request(c1b25a8c,0,101,0,e2d9) at ata_queue_request+0x1fc
> ata_controlcmd(c1947ca8,8,0,0,0) at ata_controlcmd+0x8b
> ata_identify_devices(c1947c00,1,c18418b0,c0705410,c0c21d80) at
> ata_identify_devices+0x162
> ata_boot_attach(0,0,c0c21d80,c05181c6,0) at ata_boot_attach+0x2f
> run_interrupt_driven_config_hooks(0,c1e000,c1ec00,c1e000,0) at
> run_interrupt_driven_config_hooks+0x1c
> mi_startup() at mi_startup+0x99
> begin() at begin+0x2c
> 
> I wish there was a spell checker for things like this.
> 
> Maybe this panic is in some way related to what I've previously reported
> here:
> http://lists.freebsd.org/mailman/htdig/freebsd-current/2004-June/029440.html
> 
> -Radek

Would anyone care to comment on this? Thanks in advance.

-Radek

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

Message: 26
Date: Sat, 07 Aug 2004 01:27:10 +0900
From: FUJISHIMA Satsuki <sf@FreeBSD.org>
Subject: broken wchar'd rev(1)
To: tjr@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID: <86d624xme9.wl�$��q�(@f@FreeBSD.org>
Content-Type: text/plain; charset=US-ASCII

in -CURRENT of 2004.08.03.22.37.09(from src-all/checkouts.cvs:.),

rev(1) output is incorrect.
Pay attention please to 0x00 before every newline.
This does not occur on 4-STABLE and rev.c 1.6.

/usr/src$ env - PATH=/bin:/usr/bin sh -c "ls|rev|hd"
00000000  54 48 47 49 52 59 50 4f  43 00 0a 53 52 45 4e 49  |THGIRYPOC..SRENI|
00000010  41 54 4e 49 41 4d 00 0a  65 6c 69 66 65 6b 61 4d  |ATNIAM..elifekaM|
00000020  00 0a 31 63 6e 69 2e 65  6c 69 66 65 6b 61 4d 00  |..1cni.elifekaM.|
00000030  0a 45 4d 44 41 45 52 00  0a 47 4e 49 54 41 44 50  |.EMDAER..GNITADP|
00000040  55 00 0a 54 54 42 34 36  2e 47 4e 49 54 41 44 50  |U..TTB46.GNITADP|
00000050  55 00 0a 6e 69 62 00 0a  62 69 72 74 6e 6f 63 00  |U..nib..birtnoc.|
00000060  0a 6f 74 70 79 72 63 00  0a 63 74 65 00 0a 73 65  |.otpyrc..cte..se|
00000070  6d 61 67 00 0a 75 6e 67  00 0a 65 64 75 6c 63 6e  |mag..ung..edulcn|
00000080  69 00 0a 6b 77 65 6e 5f  64 6c 72 6f 77 6c 6c 61  |i..kwen_dlrowlla|
00000090  74 73 6e 69 00 0a 6b 64  6c 6f 5f 64 6c 72 6f 77  |tsni..kdlo_dlrow|
000000a0  6c 6c 61 74 73 6e 69 00  0a 35 73 6f 72 65 62 72  |llatsni..5sorebr|
000000b0  65 6b 00 0a 62 69 6c 00  0a 63 65 78 65 62 69 6c  |ek..bil..cexebil|
000000c0  00 0a 65 73 61 65 6c 65  72 00 0a 65 75 63 73 65  |..esaeler..eucse|
000000d0  72 00 0a 6e 69 62 73 00  0a 65 72 75 63 65 73 00  |r..nibs..eruces.|
000000e0  0a 65 72 61 68 73 00 0a  73 79 73 00 0a 73 6c 6f  |.erahs..sys..slo|
000000f0  6f 74 00 0a 6e 69 62 2e  72 73 75 00 0a 6e 69 62  |ot..nib.rsu..nib|
00000100  73 2e 72 73 75 00 0a                              |s.rsu..|
00000107

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

Message: 27
Date: Sat, 7 Aug 2004 03:02:00 +1000
From: Tim Robbins <tjr@freebsd.org>
Subject: Re: broken wchar'd rev(1)
To: FUJISHIMA Satsuki <sf@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <20040806170200.GA48860@cat.robbins.dropbear.id.au>
Content-Type: text/plain; charset=us-ascii

On Sat, Aug 07, 2004 at 01:27:10AM +0900, FUJISHIMA Satsuki wrote:
> in -CURRENT of 2004.08.03.22.37.09(from src-all/checkouts.cvs:.),
> 
> rev(1) output is incorrect.
> Pay attention please to 0x00 before every newline.
> This does not occur on 4-STABLE and rev.c 1.6.

Oops. I've just fixed this in src/lib/libc/stdio/fgetwln.c 1.2.


Tim

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

Message: 28
Date: Sat, 07 Aug 2004 02:43:53 +0900
From: FUJISHIMA Satsuki <sf@FreeBSD.org>
Subject: Re: broken wchar'd rev(1)
To: Tim Robbins <tjr@freebsd.org>
Cc: current@FreeBSD.org
Message-ID: <86brhoxiue.wl�$��p�(@f@FreeBSD.org>
Content-Type: text/plain; charset=US-ASCII

At Sat, 7 Aug 2004 03:02:00 +1000,
Tim Robbins wrote:
> Oops. I've just fixed this in src/lib/libc/stdio/fgetwln.c 1.2.

I confirmed it works as expected. Thank you!

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

Message: 29
Date: Fri, 6 Aug 2004 11:27:27 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Atomic operations on i386/amd64
To: Scott Long <scottl@samsco.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <200408061127.27691.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 05 August 2004 11:43 pm, Scott Long wrote:
> John Baldwin wrote:
> > On Thursday 05 August 2004 01:04 am, Tim Robbins wrote:
> >>Is there any particular reason why atomic_load_acq_*() and
> >>atomic_store_rel_*() are implemented with CMPXCHG and XCHG instead of
> >>MOV on i386/amd64 UP?
> >
> > Actually, using mov instead of lock xchg for store_rel reduced
> > performance in some benchmarks Scott ran on an SMP machine, I'm guessing
> > due to the higher latency of locks becoming available to other CPUs.  I'm
> > still waiting for benchmark results on UP to see if the change should be
> > made under #ifndef SMP or some such.
>
> Your patch appears to slightly pessimize UP as well and SMP.

Hmm, well so much for LOCK XCHG being evil then I guess.  This points out that 
we should really benchmark the *FENCE changes to see if they help or hurt as 
well before committing them.

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

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

Message: 30
Date: Fri, 6 Aug 2004 13:12:42 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Instant Reboots (was: Re: Postgresql locks up server - no
	response at all)
To: freebsd-current@FreeBSD.org
Cc: Geoff Speicher <geoff@speicher.org>
Message-ID: <200408061312.42650.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 05 August 2004 01:07 pm, Eric Anholt wrote:
> On Thu, 2004-08-05 at 06:16, Geoff Speicher wrote:
> > On Wed, Aug 04, 2004 at 03:26:13PM -0700, Eric Anholt wrote:
> > > On Wed, 2004-08-04 at 15:07, Geoff Speicher wrote:
> > > > On Wed, Aug 04, 2004 at 03:34:49PM -0600, Scott Long wrote:
> > > > > Geoff Speicher wrote:
> > > > > >FWIW, in mid-late July, my problems were not PREEMPTION-related. 
> > > > > > I tried everything I could to get usable threaded apps under
> > > > > > XFree86, but my Athlon XP rebooted every time I tried to run kdm,
> > > > > > Firefox, etc.
> > > > > >
> > > > > >This included all four combinations of PREEMPTION and ULE/4BSD. 
> > > > > > Rolling back to July 1 was the only thing that worked for me.
> > > > >
> > > > > Yeah, the instant reboots have hit me too.  Disabling PREEMPTION
> > > > > did seem to help this for me, but then it might have been a
> > > > > coincidence. Incidentally, what video drivers are you using?
> > > >
> > > > Snippets from /var/log/XFree86.0.log:
> > > >
> > > > (II) ATI: ATI driver (version 6.4.18) for chipsets: ati, ativga
> > > > (--) RADEON(0): Chipset: "ATI Radeon VE/7000 QY (AGP)" (ChipID =
> > > > 0x5159) (II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
> > > > (II) Module radeon: vendor="The XFree86 Project"
> > > >         compiled for 4.3.0, module version = 4.0.1
> > > >         Module class: XFree86 Video Driver
> > > >         ABI class: XFree86 Video Driver, version 0.6
> > > >
> > > > (II) RADEON(0): [drm] loaded kernel module for "radeon" driver
> > > > (II) RADEON(0): Direct rendering enabled
> > >
> > > Does this happen without using threaded apps?  More specifically, does
> > > it continue if you disable DRI in your X config?  If so, please send me
> > > your dmesg.
> >
> > Hey, disabling DRI did the trick.  Aside from things being remarkably
> > slow, it's remarkably stable. ;) Threaded X apps or no, I'm running
> > a July 19 kernel with no instant reboots.  PREEMPTION disabled,
> > WITNESS enabled (I misspoke in another message when I said WITNESS was
> > disabled---apparently I fiddled more than I had remembered).  Toggling
> > DRI back on and restarting X/kdm reboots immediately.
>
> While you didn't send your dmesg, I'm betting that you've got VIA 8377
> AGP.  We're misconfiguring it, it seems.  I'm working on a patch, please
> watch http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/69953 for a fix.

The patch in that PR looks like a winner btw.

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

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

Message: 31
Date: Fri, 6 Aug 2004 13:12:42 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Instant Reboots (was: Re: Postgresql locks up server - no
	response at all)
To: freebsd-current@FreeBSD.org
Cc: Geoff Speicher <geoff@speicher.org>
Message-ID: <200408061312.42650.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 05 August 2004 01:07 pm, Eric Anholt wrote:
> On Thu, 2004-08-05 at 06:16, Geoff Speicher wrote:
> > On Wed, Aug 04, 2004 at 03:26:13PM -0700, Eric Anholt wrote:
> > > On Wed, 2004-08-04 at 15:07, Geoff Speicher wrote:
> > > > On Wed, Aug 04, 2004 at 03:34:49PM -0600, Scott Long wrote:
> > > > > Geoff Speicher wrote:
> > > > > >FWIW, in mid-late July, my problems were not PREEMPTION-related. 
> > > > > > I tried everything I could to get usable threaded apps under
> > > > > > XFree86, but my Athlon XP rebooted every time I tried to run kdm,
> > > > > > Firefox, etc.
> > > > > >
> > > > > >This included all four combinations of PREEMPTION and ULE/4BSD. 
> > > > > > Rolling back to July 1 was the only thing that worked for me.
> > > > >
> > > > > Yeah, the instant reboots have hit me too.  Disabling PREEMPTION
> > > > > did seem to help this for me, but then it might have been a
> > > > > coincidence. Incidentally, what video drivers are you using?
> > > >
> > > > Snippets from /var/log/XFree86.0.log:
> > > >
> > > > (II) ATI: ATI driver (version 6.4.18) for chipsets: ati, ativga
> > > > (--) RADEON(0): Chipset: "ATI Radeon VE/7000 QY (AGP)" (ChipID =
> > > > 0x5159) (II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
> > > > (II) Module radeon: vendor="The XFree86 Project"
> > > >         compiled for 4.3.0, module version = 4.0.1
> > > >         Module class: XFree86 Video Driver
> > > >         ABI class: XFree86 Video Driver, version 0.6
> > > >
> > > > (II) RADEON(0): [drm] loaded kernel module for "radeon" driver
> > > > (II) RADEON(0): Direct rendering enabled
> > >
> > > Does this happen without using threaded apps?  More specifically, does
> > > it continue if you disable DRI in your X config?  If so, please send me
> > > your dmesg.
> >
> > Hey, disabling DRI did the trick.  Aside from things being remarkably
> > slow, it's remarkably stable. ;) Threaded X apps or no, I'm running
> > a July 19 kernel with no instant reboots.  PREEMPTION disabled,
> > WITNESS enabled (I misspoke in another message when I said WITNESS was
> > disabled---apparently I fiddled more than I had remembered).  Toggling
> > DRI back on and restarting X/kdm reboots immediately.
>
> While you didn't send your dmesg, I'm betting that you've got VIA 8377
> AGP.  We're misconfiguring it, it seems.  I'm working on a patch, please
> watch http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/69953 for a fix.

The patch in that PR looks like a winner btw.

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

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

Message: 32
Date: Fri, 6 Aug 2004 13:45:21 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Watchdog timeouts with ACPI
To: Chris Stenton <jacs@gnome.co.uk>
Cc: Bill Moran <wmoran@potentialtech.com>
Message-ID: <200408061345.21630.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Friday 06 August 2004 11:32 am, Chris Stenton wrote:
> John,
>
> Are there still outstanding ACPI issues?
>
> On my ASUS dual xeon motherboard I still can't use my onboard intel nic
> with ACPI enabled (under 5.2.1).

There have been lots of changes since 5.2.1.  Your bug sounds like one that is 
fixed in -CURRENT.  Does your dmesg say that your em0 is behind an ACPI 
PCI-PCI bridge that has no routing table (_PRT)?

> Chris
>
> On Thu, 2004-08-05 at 22:47, John Baldwin wrote:
> > On Sunday 01 August 2004 10:12 am, Bill Moran wrote:
> > > Just cvsupped current and rebuilt everything last night (July 31) and I
> > > get watchdog timeouts on my NIC when ACPI is enabled.  All seems to
> > > work well with ACPI turned off.
> > >
> > > dmesg is attached.  Email me if there's any more information I can
> > > collect to help get this working better.  I'm not subscribed to
> > > current@, so send it direct.
> >
> > Try ACPI with apic diesbled (set hint.apic.0.disabled=1 at the loader
> > prompt), it appears that your MP Table is busted so you aren't using the
> > apic when you don't use ACPI.

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

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

Message: 33
Date: Fri, 6 Aug 2004 13:50:05 -0400
From: Geoff Speicher <geoff@speicher.org>
Subject: Re: Instant Reboots (was: Re: Postgresql locks up server - no
	response at all)
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040806175005.GA25292@sirius.speicher.org>
Content-Type: text/plain; charset=us-ascii

On Fri, Aug 06, 2004 at 01:12:42PM -0400, John Baldwin wrote:
> On Thursday 05 August 2004 01:07 pm, Eric Anholt wrote:
> > On Thu, 2004-08-05 at 06:16, Geoff Speicher wrote:
> > > On Wed, Aug 04, 2004 at 03:26:13PM -0700, Eric Anholt wrote:
> > > > On Wed, 2004-08-04 at 15:07, Geoff Speicher wrote:
> > > > > On Wed, Aug 04, 2004 at 03:34:49PM -0600, Scott Long wrote:
> > > > > > Geoff Speicher wrote:
> > > > > > >FWIW, in mid-late July, my problems were not PREEMPTION-related. 
> > > > > > > I tried everything I could to get usable threaded apps under
> > > > > > > XFree86, but my Athlon XP rebooted every time I tried to run kdm,
> > > > > > > Firefox, etc.
> > > > > > >
> > > > > > >This included all four combinations of PREEMPTION and ULE/4BSD. 
> > > > > > > Rolling back to July 1 was the only thing that worked for me.
> > > > > >
> > > > > > Yeah, the instant reboots have hit me too.  Disabling PREEMPTION
> > > > > > did seem to help this for me, but then it might have been a
> > > > > > coincidence. Incidentally, what video drivers are you using?
> > > > >
> > > > > Snippets from /var/log/XFree86.0.log:
> > > > >
> > > > > (II) ATI: ATI driver (version 6.4.18) for chipsets: ati, ativga
> > > > > (--) RADEON(0): Chipset: "ATI Radeon VE/7000 QY (AGP)" (ChipID =
> > > > > 0x5159) (II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
> > > > > (II) Module radeon: vendor="The XFree86 Project"
> > > > >         compiled for 4.3.0, module version = 4.0.1
> > > > >         Module class: XFree86 Video Driver
> > > > >         ABI class: XFree86 Video Driver, version 0.6
> > > > >
> > > > > (II) RADEON(0): [drm] loaded kernel module for "radeon" driver
> > > > > (II) RADEON(0): Direct rendering enabled
> > > >
> > > > Does this happen without using threaded apps?  More specifically, does
> > > > it continue if you disable DRI in your X config?  If so, please send me
> > > > your dmesg.
> > >
> > > Hey, disabling DRI did the trick.  Aside from things being remarkably
> > > slow, it's remarkably stable. ;) Threaded X apps or no, I'm running
> > > a July 19 kernel with no instant reboots.  PREEMPTION disabled,
> > > WITNESS enabled (I misspoke in another message when I said WITNESS was
> > > disabled---apparently I fiddled more than I had remembered).  Toggling
> > > DRI back on and restarting X/kdm reboots immediately.
> >
> > While you didn't send your dmesg, I'm betting that you've got VIA 8377
> > AGP.  We're misconfiguring it, it seems.  I'm working on a patch, please
> > watch http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/69953 for a fix.
> 
> The patch in that PR looks like a winner btw.

Yes.  Sorry; I replied to gnats but not to -current.  That patch seems
to have fixed it.

Geoff


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

Message: 34
Date: Fri, 6 Aug 2004 13:50:05 -0400
From: Geoff Speicher <geoff@speicher.org>
Subject: Re: Instant Reboots (was: Re: Postgresql locks up server - no
	response at all)
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040806175005.GA25292@sirius.speicher.org>
Content-Type: text/plain; charset=us-ascii

On Fri, Aug 06, 2004 at 01:12:42PM -0400, John Baldwin wrote:
> On Thursday 05 August 2004 01:07 pm, Eric Anholt wrote:
> > On Thu, 2004-08-05 at 06:16, Geoff Speicher wrote:
> > > On Wed, Aug 04, 2004 at 03:26:13PM -0700, Eric Anholt wrote:
> > > > On Wed, 2004-08-04 at 15:07, Geoff Speicher wrote:
> > > > > On Wed, Aug 04, 2004 at 03:34:49PM -0600, Scott Long wrote:
> > > > > > Geoff Speicher wrote:
> > > > > > >FWIW, in mid-late July, my problems were not PREEMPTION-related. 
> > > > > > > I tried everything I could to get usable threaded apps under
> > > > > > > XFree86, but my Athlon XP rebooted every time I tried to run kdm,
> > > > > > > Firefox, etc.
> > > > > > >
> > > > > > >This included all four combinations of PREEMPTION and ULE/4BSD. 
> > > > > > > Rolling back to July 1 was the only thing that worked for me.
> > > > > >
> > > > > > Yeah, the instant reboots have hit me too.  Disabling PREEMPTION
> > > > > > did seem to help this for me, but then it might have been a
> > > > > > coincidence. Incidentally, what video drivers are you using?
> > > > >
> > > > > Snippets from /var/log/XFree86.0.log:
> > > > >
> > > > > (II) ATI: ATI driver (version 6.4.18) for chipsets: ati, ativga
> > > > > (--) RADEON(0): Chipset: "ATI Radeon VE/7000 QY (AGP)" (ChipID =
> > > > > 0x5159) (II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
> > > > > (II) Module radeon: vendor="The XFree86 Project"
> > > > >         compiled for 4.3.0, module version = 4.0.1
> > > > >         Module class: XFree86 Video Driver
> > > > >         ABI class: XFree86 Video Driver, version 0.6
> > > > >
> > > > > (II) RADEON(0): [drm] loaded kernel module for "radeon" driver
> > > > > (II) RADEON(0): Direct rendering enabled
> > > >
> > > > Does this happen without using threaded apps?  More specifically, does
> > > > it continue if you disable DRI in your X config?  If so, please send me
> > > > your dmesg.
> > >
> > > Hey, disabling DRI did the trick.  Aside from things being remarkably
> > > slow, it's remarkably stable. ;) Threaded X apps or no, I'm running
> > > a July 19 kernel with no instant reboots.  PREEMPTION disabled,
> > > WITNESS enabled (I misspoke in another message when I said WITNESS was
> > > disabled---apparently I fiddled more than I had remembered).  Toggling
> > > DRI back on and restarting X/kdm reboots immediately.
> >
> > While you didn't send your dmesg, I'm betting that you've got VIA 8377
> > AGP.  We're misconfiguring it, it seems.  I'm working on a patch, please
> > watch http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/69953 for a fix.
> 
> The patch in that PR looks like a winner btw.

Yes.  Sorry; I replied to gnats but not to -current.  That patch seems
to have fixed it.

Geoff


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

Message: 35
Date: Fri, 06 Aug 2004 20:06:14 +0200
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
Subject: Giant lock issue with almost -current
To: current@freebsd.org
Message-ID: <1078.1091815574@critter.freebsd.dk>


Transcribed by hand:

Giant not owned
mtx_assert()
if_start()
ieee80211_mgmt_output()
ieee80211_send_mgmt()
ieee80211_newstate()
ath_newstate()
ieee80211_end_scan()
ieee80211_next_scan()
ath_next_scan()
softclock()

-- 
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: 36
Date: Fri, 6 Aug 2004 14:07:48 -0500
From: Dan Nelson <dnelson@allantgroup.com>
Subject: Re: geom stripe/concat metadata suggestion
To: Sam Lawrance <boris@brooknet.com.au>
Cc: Pawel Jakub Dawidek <pjd@freebsd.org>
Message-ID: <20040806190748.GA11465@dan.emsphone.com>
Content-Type: text/plain; charset=us-ascii

In the last episode (Aug 06), Sam Lawrance said:
> Would it be a good idea to store the device name, or something
> similar, in the metadata?
> 
> For example, if I have a disk divided like this:
> 
>  |--------------ad0--------------|
>  |-------------ad0s1-------------|
>  |----ad0s1g-----|-----ad0s1d----|
> 
> The metadata is written into the last sector, so when the
> stripe/concat classes are tasting they can't work out whether it
> belongs to ad0s1d, ad0s1 or ad0.
> 
> I've had problems creating stripes and concats with this configuration.

Does the metadata store the device size?  If so, then only ad0 and
ad0s1 match, and it doesn't really matter which ends up being used.

I'd be wary of embedding the device name because of shifting names if
you add or shuffle disks around.

-- 
	Dan Nelson
	dnelson@allantgroup.com

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

Message: 37
Date: Fri, 6 Aug 2004 21:13:56 +0200
From: Axel S.Gruner <liste@encephalon.de>
Subject: Re: Vinum status
To: Craig Boston <craig@xfoil.gank.org>
Cc: Paul Mather <paul@gromit.dlib.vt.edu>
Message-ID: <C3730AE4-E7DC-11D8-AA13-000A95AB00F4@encephalon.de>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi.

Am 05.08.2004 um 23:20 schrieb Craig Boston:
> FWIW, root-on-gvinum seems to be working on my test server here.
> Swapping over it also passes basic stress testing (dd from zero to null
> with very large block sizes).

Thats very very nice to hear.
But, i ihave a question about that. I cant find a howto which describes 
to install FreeBSD+gvinum to use the / partition.
So, how did you do that?
It looks to me like a chicken-egg problem. So in my understandig there 
must be a way in the installtion procedure (sysinstall) to install 
FreeBSD directly on a gvinum set of disks, otherwise i install FreeBSD 
the normal way and / is not on a gvinum disk set...

asg


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

_______________________________________________
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 71, Issue 17
***********************************************


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


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