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. current snap 200400804-SESNAP not bootable (Kim Culhan)
   2. Re: USB drivers (Bernd Walter)
   3. Re: current snap 200400804-SESNAP not bootable (Jeremy Chadwick)
   4. Re: GEOM is too verbose  (Poul-Henning Kamp)
   5. Re: radeon.ko doesn't load on recent current (Franz Klammer)
   6. Re: 5.3-RELEASE TODO (Scott Long)
   7. RE: ATA driver races with interrupts (Daniel Eriksson)
   8. System load as crash factor with preemption???
      (Conrad J. Sabatier)
   9. Re: 5.3-RELEASE TODO (Kenneth Culver)
  10. Re: OpenSSL with hifn(4) (cryptodev) (Doug White)
  11. Re: 5.3-RELEASE TODO (John Baldwin)
  12. Re: problems with altq (Max Laier)
  13. Re: ATA driver races with interrupts (S?ren Schmidt)
  14. Re: 5.3-RELEASE TODO (Jake Hamby)
  15. Re: status of bind9 import (Garance A Drosihn)
  16. Re: 5.3-RELEASE TODO (cpghost@cordula.ws)
  17. Re: HEADS UP: tar -l is now (intentionally) broken.
      (Garance A Drosihn)
  18. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
      no interrupt") (Nate Lawson)
  19. Postgresql locks up server - no response at all
      (Sven Willenberger)
  20. Re: 5.3-RELEASE TODO (Ruslan Ermilov)
  21. Re: Postgresql locks up server - no response at all
      (Jeremy Chadwick)
  22. Re: Postgresql locks up server - no response at all 
      (Kevin Oberman)
  23. Re: Postgresql locks up server - no response at all
      (Jeremy Chadwick)
  24. Challenge getting touchpad to work since src/sys/isa/psm.c
      1.71 (David Wolfskill)
  25. Re: Postgresql locks up server - no response at all
      (Sven Willenberger)
  26. Re: Postgresql locks up server - no response at all (Jon Noack)
  27. Re: Postgresql locks up server - no response at all
      (Jeremy Chadwick)
  28. Re: radeon.ko doesn't load on recent current (Marco Trentini)
  29. Re: Postgresql locks up server - no response at all (Scott Long)
  30. Re: Postgresql locks up server - no response at all
      (Geoff Speicher)
  31. Re: Postgresql locks up server - no response at all (Scott Long)
  32. Re: Postgresql locks up server - no response at all
      (Sven Willenberger)


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

Message: 1
Date: Wed, 4 Aug 2004 08:01:56 -0700 (PDT)
From: Kim Culhan <w8hdkim@yahoo.com>
Subject: current snap 200400804-SESNAP not bootable
To: freebsd-current@FreeBSD.org
Message-ID: <20040804150156.62810.qmail@web50701.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

--- Doug White <dwhite@gumbysoft.com> wrote:

> On Tue, 3 Aug 2004, Kim Culhan wrote:
> 
> >
> > Greetings-
> >
> > Just an fyi here.. The latest snap, 080304, from
> > snapshots.se.FreeBSD.org did not install a bootable system here.
> 
> This looks like the boot2 breakage.  I think a fix was committed
> not too
> long ago and its possible the snapshot server hadn't picked it up
> in time.
> You might try tomorrow's.

Sorry to report this is not working..

The snap 5.2-CURRENT-20040804-SESNAP.iso does:

F1

[hit enter or wait..]

invalid partition
invalid partition

no /boot/loader

FreeBSD/i386 boot

Default: 0:ad(0,`)/kernel

fyi..

tnx
-kim



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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

Message: 2
Date: Wed, 4 Aug 2004 17:07:39 +0200
From: Bernd Walter <ticso@cicely12.cicely.de>
Subject: Re: USB drivers
To: Chris <chris@tellme3times.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804150738.GE20488@cicely12.cicely.de>
Content-Type: text/plain; charset=us-ascii

On Wed, Aug 04, 2004 at 10:41:50AM -0400, Chris wrote:
> The last time I programed was over 15 years ago and I was thinking of 
> looking into the USB drivers for FreeBSD concerning multifunction 
> devices. If I ask stupid questions forgive me because I am seeing this 
> as a user.
> 
> First I would like to know if there is a technical reason why two 
> different divers cannot attach to the same device. If each driver works 
> well independently, what is the reason to prevent the second one from 
> attaching? I would assume that if you attempted to use both drivers at 
> the same time you would get a device busy error.

USB devices can be designed to have multiple interfaces at which you
can have different drivers - e.g. you can have a ulpt/umass combo
and both drivers just clain the according interface from the same
device.
Therefor also drivers can be programmed for whole USB devices and for
USB subdevices.
This works perfectly with FreeBSD.

> Am I misunderstanding something here? I see ulpt: and unlpt: attaching 
> to the same device and the choice of which one to use is up to the user 
> and the hardware they have. If we have two drivers attach in one case 
> why, and where, do we prevent other drivers from attaching if they meet 
> the minimum requirements?

unlpt and ulpt are just different representations from the same driver.
There is absolutely no sense in having two clients printing at the same
time on the same printer, so blocking each other is absolutely reasonable.
Scheduling multiple requests is up to software like lpd.
See ulpt(4) for details about the functional difference in ulpt vs. unlpt
device nodes - depending on the printer you will likely end up in always
using the same devicenode.
Why do you think this is wrong?

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


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

Message: 3
Date: Wed, 4 Aug 2004 08:09:47 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: Re: current snap 200400804-SESNAP not bootable
To: freebsd-current@freebsd.org
Message-ID: <20040804150947.GA37404@parodius.com>
Content-Type: text/plain; charset=us-ascii

Covered here:

http://lists.freebsd.org/pipermail/freebsd-current/2004-August/033200.html

But particular details involving the strange ad(0,`) issue reported here:

http://lists.freebsd.org/pipermail/freebsd-current/2004-July/032889.html

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.                             |

On Wed, Aug 04, 2004 at 08:01:56AM -0700, Kim Culhan wrote:
> --- Doug White <dwhite@gumbysoft.com> wrote:
> 
> > On Tue, 3 Aug 2004, Kim Culhan wrote:
> > 
> > >
> > > Greetings-
> > >
> > > Just an fyi here.. The latest snap, 080304, from
> > > snapshots.se.FreeBSD.org did not install a bootable system here.
> > 
> > This looks like the boot2 breakage.  I think a fix was committed
> > not too
> > long ago and its possible the snapshot server hadn't picked it up
> > in time.
> > You might try tomorrow's.
> 
> Sorry to report this is not working..
> 
> The snap 5.2-CURRENT-20040804-SESNAP.iso does:
> 
> F1
> 
> [hit enter or wait..]
> 
> invalid partition
> invalid partition
> 
> no /boot/loader
> 
> FreeBSD/i386 boot
> 
> Default: 0:ad(0,`)/kernel
> 
> fyi..
> 
> tnx
> -kim
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

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

Message: 4
Date: Wed, 04 Aug 2004 17:48:04 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: GEOM is too verbose 
To: John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc: Maxim Sobolev <sobomax@portaone.com>
Message-ID: <2890.1091634484@critter.freebsd.dk>

In message <20040804144350.GX991@funkthat.com>, John-Mark Gurney writes:
>Maxim Sobolev wrote this message on Wed, Aug 04, 2004 at 12:27 +0200:
>> On Tue, Aug 03, 2004 at 02:22:27PM -0700, John-Mark Gurney wrote:
>> > Maxim Sobolev wrote this message on Sat, Jul 31, 2004 at 20:15 +0300:
>> > > >>It is python program, so that ioctl() is out of question. Usage of
>> > > >
>> > > >
>> > > >Hm python has ioctl support, where is the problem?
>> > > 
>> > > Really? Anyway, I doubt that name of this ioctl is the same on the 
>> > > different unices, so that binary search is still the best from the 
>> > > portability POV.
>> > 
>> > fcntl.ioctl...  it might take some hand expansion of the ioctl macros
>> > to get it though...  the old pytoh that would generate these couldn't
>> > handle FreeBSD's ioctl defines (but this was back in the early 4.x
>> > days)...  You could always write a simple C program to get the value
>> > necessary..
>> 
>> Heh, but I have other means to spend my spare time. Rewriting perfectly
>> working code for perfection sake is not one of them.
>
>I only suggested:
>#include <sys/disk.h>
>#include <stdio.h>
>
>void
>main()
>{
>	printf("135148976l\n", DIOCGMEDIASIZE);
>}
>
>and then use that value in python's fctl.ioctl.

see diskinfo(8)

-- 
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: 5
Date: Wed, 04 Aug 2004 18:13:55 +0200
From: Franz Klammer <klammer@webonaut.com>
Subject: Re: radeon.ko doesn't load on recent current
To: Maxime Henrion <mux@freebsd.org>
Cc: anholt@FreeBSD.org
Message-ID: <41110B43.1050501@webonaut.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Maxime Henrion wrote:
> Franz Klammer wrote:
> 
>>Rossam Souza da Silva wrote:
>>
>>>I have the same problem with VMWare3 kernel modules...
>>>no one is loaded, with error messages about symbols.
>>>
>>>Rossam.
>>>
>>>------------------------------------------------------
>>>"Das Leben auf Erden ist ein gemeiner Krieg.
>>>Wir spielen, wir k?mpfen, wir setzen alles auf Sieg."
>>>
>>>Megaherz
>>>------------------------------------------------------
>>>
>>>On Tue, 3 Aug 2004, Toxa wrote:
>>>
>>>
>>>>today kernel biuld, when trying to load radeon.ko for my ATI
>>>>Mobility M6:
>>>>
>>>># kldload radeon.ko:
>>>>
>>>>link_elf: symbol mem_range_attr_set undefined
>>>>kldload: can't load radeon.ko: No such file or directory
>>
>>same here with matrox mga.ko. after i compiled the
>>devices agp, mem, null and io into the kernel it loads normaly.
> 
> 
> Can you try to remove mem from your kernel config and try this patch?
> The DRM drivers are missing a dependency to mem(4) since mem(4) was
> made a kernel module.  The DRM drivers need mem(4) because they use
> mem_range_attr_set().  With this patch, you should be able to load
> your DRM driver without errors, even if mem(4) isn't compiled in the
> kernel.  You must of course have it as a module though.
> 

was faster than expected :-)

the patch works!

i removed the devices mem and mgadrm vom kernel config and build the
new kernel with -DNOCLEAN. hopefully this was correct enough for testing.

franz.


> Cheers,
> Maxime
> 

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

Message: 6
Date: Wed, 04 Aug 2004 10:28:22 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: 5.3-RELEASE TODO
To: Kenneth Culver <culverk@sweetdreamsracing.biz>
Cc: das@freebsd.org
Message-ID: <41110EA6.9020709@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Kenneth Culver wrote:

> Quoting Scott Long <scottl@freebsd.org>:
> 
>> Steve O'Hara-Smith wrote:
>>
>>> On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
>>> Scott Long <scottl@FreeBSD.org> wrote:
>>>
>>>
>>>> | Source upgrade     | Not done    | David Schultz | problematic. 
>>>> The    |
>>>> | incompatibility    |             |               | 5.3 world 
>>>> sources   |
>>>> |                    |             |               | must be 
>>>> buildable   |
>>>> |                    |             |               | and 
>>>> installable     |
>>>> |                    |             |               | from a 
>>>> 5.2.1        |
>>>> |                    |             |               | 
>>>> system.             |
>>>
>>>
>>>
>>>     Should they not also be buildable and installable from a 4.10 or 
>>> 4.11 system
>>> in order to preserve the -stable upgrade route ?
>>>
>>
>> This would be good, yes, but there are so many other gotchas with that
>> upgrade path that I don't consider it a show-stopper for it not to work.
>> Once the 5.2 -> 5.3 path is fixed, then we can focus on 4.x -> 5.3 path.
>>
>> Scott
> 
> 
> Just to let people know, I recently installed from 5.2.1, then updated to
> -CURRENT via source without a single problem. So what's not working here?
> 
> Ken
> 
> 

Hmm, maybe I'm mis-informed then.  I thought that
snapshots.jp.freebsd.org was having problems building the 5.2-CURRENT
sources because it's world was too old, and that this pointed to a
source upgrade problem.  I guess we need clarification here.  David?

Scott

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

Message: 7
Date: Wed, 4 Aug 2004 18:40:36 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: ATA driver races with interrupts
To: 'S?ren Schmidt'<sos@DeepCore.dk>
Cc: freebsd-current@freebsd.org
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAkWYklHP9fECBZgBAM4LOEQEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="iso-8859-1"

S�ren Schmidt wrote:

> OK, but that seriously hurts performance which I'd like to avoid if 
> possible. Could you try the attached patch and let me know how that 
> works out ? I does solve the problem here in a simulated 
> setup, but as we all know simulated is just that :)

I just applied your patch to clean sources dated 2004.08.04.13.00.00 and ran
some tests. Everything seems to be working as it should (just like after the
serialization patch from Ville-Pertti that I tried earlier). I will continue
running with this patch applied to see if it stays stable.

Thank you S�ren and Ville-Pertti for your efforts!

/Daniel Eriksson



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

Message: 8
Date: Wed, 04 Aug 2004 11:56:53 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: System load as crash factor with preemption???
To: Kenneth Stailey <kstailey@yahoo.com>
Cc: Mike Jakubik <mikej@rogers.com>
Message-ID: <XFMail.20040804115653.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii


On 04-Aug-2004 Kenneth Stailey wrote:
> http://www.freebsd.org/releases/5.3R/todo.html
> 
> << Problems persist with crashes and hangs under heavy load,
> especially under SMP. The recent introduction of full-scale
> preemption exasperated the problem, though it has been mitigated by a
> recently committed hack.  Speculation on the source of the problem
> seems to center around races in critical section and spinlock
> handling and nesting. This needs to be driven to root cause and
> fixed in order for 5.3 to be considered STABLE. >>

One thing I've been wondering about in all the postings I've seen re:
the preemption-related crashes: reference is made repeatedly to crashes
occurring under heavy load, yet my box (AMD Athlon 64, single-processor)
was crashing under practically no load at all.

With the no-preemption hack, the box has been quite stable, by the way.

Also, my other machine, an AMD Athlon (32-bit), single-processor,
running an i386 build, never experienced any crashes, yet it bears much
more load most of the time than the 64-bit box, as I use it as my
gateway, cvsup daemon, NFS server, etc, etc.

Just makes me question how much of a factor load really played in this
problem, and thought it might be worth mentioning.

-- 
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"

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

Message: 9
Date: Wed,  4 Aug 2004 13:01:41 -0400
From: Kenneth Culver <culverk@sweetdreamsracing.biz>
Subject: Re: 5.3-RELEASE TODO
To: Scott Long <scottl@freebsd.org>
Cc: das@freebsd.org
Message-ID:
	<20040804130141.dmogwg8ko84g4oc4@www.sweetdreamsracing.biz>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"

Quoting Scott Long <scottl@freebsd.org>:

> Kenneth Culver wrote:
>
>> Quoting Scott Long <scottl@freebsd.org>:
>>
>>> Steve O'Hara-Smith wrote:
>>>
>>>> On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
>>>> Scott Long <scottl@FreeBSD.org> wrote:
>>>>
>>>>
>>>>> | Source upgrade     | Not done    | David Schultz | problematic. 
>>>>> The    |
>>>>> | incompatibility    |             |               | 5.3 world 
>>>>> sources   |
>>>>> |                    |             |               | must be 
>>>>> buildable   |
>>>>> |                    |             |               | and 
>>>>> installable     |
>>>>> |                    |             |               | from a 5.2.1 
>>>>>        |
>>>>> |                    |             |               | system.      
>>>>>        |
>>>>
>>>>
>>>>
>>>>     Should they not also be buildable and installable from a 4.10 
>>>> or 4.11 system
>>>> in order to preserve the -stable upgrade route ?
>>>>
>>>
>>> This would be good, yes, but there are so many other gotchas with that
>>> upgrade path that I don't consider it a show-stopper for it not to work.
>>> Once the 5.2 -> 5.3 path is fixed, then we can focus on 4.x -> 5.3 path.
>>>
>>> Scott
>>
>>
>> Just to let people know, I recently installed from 5.2.1, then updated to
>> -CURRENT via source without a single problem. So what's not working here?
>>
>> Ken
>>
>>
>
> Hmm, maybe I'm mis-informed then.  I thought that
> snapshots.jp.freebsd.org was having problems building the 5.2-CURRENT
> sources because it's world was too old, and that this pointed to a
> source upgrade problem.  I guess we need clarification here.  David?
>
> Scott

I've actually done this 2 or 3 times in the last week or 2 on a few different
computers, so unless a recent commit broke something, it should still be ok.

Ken

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

Message: 10
Date: Wed, 4 Aug 2004 10:00:45 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: OpenSSL with hifn(4) (cryptodev)
To: Sam Leffler <sam@errno.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804095553.I25616@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 3 Aug 2004, Sam Leffler wrote:

> > Also, your app has to ask for the acceleration if they want it, by
> > requesting the 'cryptodev' engine.  And that requires OpenSSL 0.9.7, which
> > you probably have since the 'openssl engine' command exists.
> >
> > nork, which app(s) are you trying to accelerate?
>
> I don't believe this is correct.  Unless something has changed libcrypto (from
> openssl) will check for /dev/crypto, query what algorithms are supported, and
> then use h/w acceleration if it exists.

That'd be a recent change then. The last time I mesed with this, which was
a year and a half ago, you didn't get h/w accel unless you specified the
engine.  I had to use patches that were flagged EXPERIMENTAL to get engine
support in whatever it was I was toying with, and had to use that support
to get it using hardware crypto.  I'll see if I can find what it was I was
messing with and try again :)

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

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

Message: 11
Date: Wed, 4 Aug 2004 13:59:11 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: 5.3-RELEASE TODO
To: Ruslan Ermilov <ru@FreeBSD.org>
Cc: scottl@FreeBSD.org
Message-ID: <200408041359.11225.jhb@FreeBSD.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Wednesday 04 August 2004 10:43 am, Ruslan Ermilov wrote:
> On Wed, Aug 04, 2004 at 10:21:01AM +0100, Steve O'Hara-Smith wrote:
> > On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
> >
> > Scott Long <scottl@FreeBSD.org> wrote:
> > >  | Source upgrade     | Not done    | David Schultz | problematic. The 
> > >  |   | incompatibility    |             |               | 5.3 world
> > >  | sources   |
> > >  |
> > >  |                    |             |               | must be buildable 
> > >  |                    |             |               |  | and installable
> > >  |                    |             |               |     | from a 5.2.1
> > >  |                    |             |               |        | system.  
> > >  |                    |             |               |           |
> >
> > 	Should they not also be buildable and installable from a 4.10 or 4.11
> > system in order to preserve the -stable upgrade route ?
>
> I believe this item is not about builds/installs, but about the API
> compatibility of libm.so.

s/API/ABI/

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

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

Message: 12
Date: Wed, 4 Aug 2004 20:03:00 +0200
From: Max Laier <max@love2party.net>
Subject: Re: problems with altq
To: freebsd-current@freebsd.org
Cc: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Message-ID: <200408042003.07356.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"

On Wednesday 04 August 2004 15:05, Divacky Roman wrote:
>                 struct pf_altq          *altq, *a;
>
>                 if (pa->ticket != ticket_altqs_inactive) {
>                         error = EBUSY;
>                         break;
>                 }
>                 altq = pool_get(&pf_altq_pl, PR_NOWAIT);
> 			         ^^^^^^^^^^
> shouldnt this be initalized to NULL? at least its not nice to have it
> uninitalized...

hum?
$ cd /usr/src/sys/contrib/pf/net && grep pf_altq_pl *
<...>
pf_ioctl.c:     pf_state_pl = pf_altq_pl = pf_pooladdr_pl = NULL;
pf_ioctl.c:     UMA_DESTROY(pf_altq_pl);
pf_ioctl.c:             UMA_CREATE(pf_altq_pl,    struct pf_altq, "pfaltqpl");
<...>

Or what are you thinking about?

Just like Dan Cojocar said in his reply, I can't reproduce your problem 
here :-\

> On Wed, Aug 04, 2004 at 02:56:40PM +0200, Divacky Roman wrote:
> > I am getting this
> > pfctl: DIOCADDALTQ: Cannot allocate memory
> > if I try to enable altq on pf configured as
> >
> >    altq on $ext_if bandwidth 256Kb cbq queue { ssh_i web other}
> >    queue ssh_i bandwidth 25�bq(borrow red)
> >    queue web bandwidth 25�bq(borrow red)
> >    queue other bandwidth 50�bq(borrow default red)
> >
> >
> > without that "red" it works ok...

Now that is strange as it makes no difference in the DIOCADDALTQ call path 
whether you use RED or not. Might it be possible that you really are short on 
(kernel) memory?

-- 
/"\  Best regards,			| mlaier@freebsd.org
\ /  Max Laier				| ICQ #67774661
 X   http://pf4freebsd.love2party.net/	| mlaier@EFnet
/ \  ASCII Ribbon Campaign		| Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040804/1f96c204/attachment-0001.bin

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

Message: 13
Date: Wed, 04 Aug 2004 20:16:16 +0200
From: S?ren Schmidt<sos@DeepCore.dk>
Subject: Re: ATA driver races with interrupts
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@freebsd.org
Message-ID: <411127F0.6080407@DeepCore.dk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Daniel Eriksson wrote:
> S�ren Schmidt wrote:
> 
> 
>>OK, but that seriously hurts performance which I'd like to avoid if 
>>possible. Could you try the attached patch and let me know how that 
>>works out ? I does solve the problem here in a simulated 
>>setup, but as we all know simulated is just that :)
> 
> 
> I just applied your patch to clean sources dated 2004.08.04.13.00.00 and ran
> some tests. Everything seems to be working as it should (just like after the
> serialization patch from Ville-Pertti that I tried earlier). I will continue
> running with this patch applied to see if it stays stable.

Good! please keep me posted!

> Thank you S�ren and Ville-Pertti for your efforts!

NP :)

-- 
-S�ren


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

Message: 14
Date: Wed, 04 Aug 2004 11:28:54 -0700
From: Jake Hamby <jhamby@anobject.com>
Subject: Re: 5.3-RELEASE TODO
To: re@freebsd.org
Cc: current@freebsd.org
Message-ID: <41112AE6.8010600@anobject.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Ruslan Ermilov wrote:

> On Wed, Aug 04, 2004 at 10:21:01AM +0100, Steve O'Hara-Smith wrote:
> 
>>On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
>>Scott Long <scottl@FreeBSD.org> wrote:
>>
>>
>>> | Source upgrade     | Not done    | David Schultz | problematic. The    |
>>> | incompatibility    |             |               | 5.3 world sources   |
>>> |                    |             |               | must be buildable   |
>>> |                    |             |               | and installable     |
>>> |                    |             |               | from a 5.2.1        |
>>> |                    |             |               | system.             |
>>
>>	Should they not also be buildable and installable from a 4.10 or 4.11 system
>>in order to preserve the -stable upgrade route ?
>>
> 
> I believe this item is not about builds/installs, but about the API
> compatibility of libm.so.

On that note, is there a particular reason why the version number for 
libstdc++.so wasn't bumped after the GCC 3.4.2 upgrade?  I've tried to 
rebuild all my C++ apps with the new compiler, but just got bit by some 
undefined references in libmusicbrainz while building kdemultimedia3:

/usr/local/lib/libmusicbrainz.so: undefined reference to 
`std::__default_alloc_template<true, 0>::allocate(unsigned int)'
/usr/local/lib/libmusicbrainz.so: undefined reference to 
`std::string::_S_empty_rep_storage'
/usr/local/lib/libmusicbrainz.so: undefined reference to 
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'

--
Jake Hamby

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

Message: 15
Date: Wed, 4 Aug 2004 14:35:48 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: status of bind9 import
To: Dennis Berger <db@nipsi.de>, current@freebsd.org
Message-ID: <p06110405bd36da7bb261@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 11:34 AM +0200 8/3/04, Dennis Berger wrote:
>Hi all,
>whats the status of the bind9 import?
>I recognized it's "in progress" since several month now, and
>as the release date is coming closer I'm getting nervous.
>thanks.

The "To-Do" list still has:


  Required features for 5.3-RELEASE
  +------------------------------------------------------------------------+
  |      Issue      |   Status    |  Responsible  |      Description       |
  |-----------------+-------------+---------------+------------------------|
  | BIND9 import    | In progress | Doug Barton   | BIND9 must be imported |
  | into 5-CURRENT  |             |               | for 5.3-RELEASE.       |
  |-----------------+-------------+---------------+------------------------|

Also, Doug talked about this at the devsummit that took place
during Usenix at the end of June.  He is waiting for a specific
official release to happen from the BIND9 folks, because it has
some important improvements to the BIND9 branch.  But he is
confident that once the official release is made, that he can
install it into the base system right away.  If that release
does not happen before our code-freeze, then he has an alternate
plan that he is confident in.  Note that the BIND9 folks do a lot
of their development on FreeBSD, so when the official release of
BIND9 happens, it is an official release which is already known
to be working on FreeBSD.  This item has been "in progress" only
because we are waiting for the new version, and not because Doug
has been having any problems with BIND9.

That was the word at the devsummit, and I doubt much has changed
since then.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

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

Message: 16
Date: Wed, 4 Aug 2004 20:48:19 +0200
From: cpghost@cordula.ws
Subject: Re: 5.3-RELEASE TODO
To: re@FreeBSD.org
Cc: freebsd-current@freebsd.org
Message-ID: <20040804184819.GB44298@bsdbox.farid-hajji.net>
Content-Type: text/plain; charset=us-ascii

On Wed, Aug 04, 2004 at 01:43:54AM -0600, Scott Long wrote:
> Desired features for 5.3-RELEASE

MIDI drivers should be taken care of. It would be great if
we restored MIDI functionality in 5.3-RELEASE!

Thanks.
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/

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

Message: 17
Date: Wed, 4 Aug 2004 14:44:37 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: HEADS UP: tar -l is now (intentionally) broken.
To: David Gilbert <dgilbert@dclg.ca>
Cc: Tim Kientzle <kientzle@freebsd.org>
Message-ID: <p06110407bd36ddad7244@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 9:56 PM -0700 8/3/04, Tim Kientzle wrote:
>David Gilbert wrote:
>>
>>[2:1:301]dgilbert@canoe:~> bsdtar -cvf temp .bashrc
>>a .bashrc: tar format cannot archive this: Inappropriate file type or format
>>
>
>Works here.  Which means either there's something
>weird going on at your end, or something weird going
>on at my end.
>
>It's possible you managed to get it in the middle
>of a cvs update, I suppose.  Try updating again
>and rebuilding src/lib/libarchive and src/usr.bin/tar
>and let me know if that changes anything.
>
>Out of curiosity, what does "ls -l .bashrc" show?

Other questions (which you may have already answered):

What does "ls -l temp" show?
If there is no "temp", then what result do you get
from the command to "touch temp"?

I'm just making some wild guesses here.  The above tar command
did also work for me, so I am just wondering if bsdtar is
getting some OTHER error, and reporting the wrong error.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

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

Message: 18
Date: Wed, 04 Aug 2004 12:08:13 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
	no interrupt")
To: Matthew Dillon <dillon@apollo.backplane.com>
Cc: current@freebsd.org
Message-ID: <4111341D.7050106@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Matthew Dillon wrote:
> :I've tracked down the source of the memory corruption in -current that
> :results when booting with various CD and DVD drives (especially the ones
> :that come with Thinkpads including T23, R32, T41, etc.)  The panic is
> :..
> 
>     Nick, 

s/Nick/Nate and not either of the Williams ones (Net and FreeBSD).  :)

>     what about the retry code in ata_completed()? (ata-queue.c 229).
>     Does it need to reset donecount as well?  Both the code in 5.x and 
>     the code in 4.x looks 'dangerous' with regards to general retries.

Hmm, it seems like this could be a problem with requests that are
re-queued.  It's likely that donecount was never incremented in the
error cases but I don't know the code well enough to say this.  There is
also the question of whether it's ok to retry a request in immediate
mode that previously was done as a queued request.

I'll let Soeren address this.

>     The 5.x code seems to handle retries generically via 
>     ata_finish()->ata_completed()->(retry handling), and this seems to
>     include IMMEDIATE requests, and it does not appear to reset the 
>     donecount when it requeues.
> 
>     The 4.x code seems to handle retries in ad_timeout() and ad_interrupt()
>     (and doesn't reset donecount in either case as far as I can tell),
>     and the 4.x code's addump() seems to rely on donecount in its transfer
>     loop (but I do not see any similar reliance in the 5.x code).

I don't see any obvious problems here but looking into error handling or
other uncommon paths is usually a good way to find latent issues.

-Nate


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

Message: 19
Date: Wed, 04 Aug 2004 15:58:53 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: Postgresql locks up server - no response at all
To: current@freebsd.org
Message-ID: <1091649533.29481.42.camel@lanshark.dmv.com>
Content-Type: text/plain

FreeBSD 5.2.1-P8 running on dual Xeon supermicro system with vinum data
drive and em network interfaces. I have been having a problem with the
system simply locking up every couple days. No response from the
keyboard, network, nothing. As if it is in some state of IRQ locking. I
see nothing in the messages, even with DDB and DDB_UNATTENDED enabled in
kernel. The system runs 4GB of ram with the following modifications to
kernel:

cpu             I486_CPU
cpu             I586_CPU
cpu             I686_CPU
<snip>
options         SHMMAXPGS=65536         # ********************
options         SEMMNI=40               # added for posgresql
options         SEMMNS=240              # allows for around
options         SEMUME=40               # 180 simultaneous connections
options         SEMMNU=120              # ********************
<snip>
# Debugging for use in -current
options         DDB                     #Enable the kernel debugger
options         DDB_UNATTENDED          #Don't panic on DDB but log it
#options        INVARIANTS              #Enable calls of extra sanity
checking
options         INVARIANT_SUPPORT       #Extra sanity checks of internal
#options        WITNESS                 #Enable checks to detect dead ..
#options        WITNESS_SKIPSPIN        #Don't run witness on spinlocks 
# Deal with kmem issues
options                 VM_KMEM_SIZE_SCALE="4"
options                 VM_KMEM_SIZE_MAX="(512*1024*1024)"
options                 KVA_PAGES=512


/boot/loader.conf:
vinum_load="YES"
vinum.autostart="YES"
#kern.maxdsiz="1073741824"
#kern.dfldsiz="1073741824"

I had experimented in loader.conf with the dsiz settings to no avail,
still get lockups. Got lockups with and without the DDB settings. It
would be helpful if I could see some type of error being generated, but
nothing; the attached terminal has utterly no messages beyond normal
system messages, everything just stops responding.

After the last lockup and reboot, I sysctl machdep.hlt_logical_cpus=1 to
see if that had any effect. Any other recommendations? adaptive_mutexes?
Any ideas on how to actually find out what is happening?

Sven


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

Message: 20
Date: Wed, 4 Aug 2004 23:04:51 +0300
From: Ruslan Ermilov <ru@freebsd.org>
Subject: Re: 5.3-RELEASE TODO
To: Kenneth Culver <culverk@sweetdreamsracing.biz>
Cc: re@freebsd.org
Message-ID: <20040804200451.GC28157@ip.net.ua>
Content-Type: text/plain; charset="us-ascii"

On Wed, Aug 04, 2004 at 01:01:41PM -0400, Kenneth Culver wrote:
> Quoting Scott Long <scottl@freebsd.org>:
[...]
> >Hmm, maybe I'm mis-informed then.  I thought that
> >snapshots.jp.freebsd.org was having problems building the 5.2-CURRENT
> >sources because it's world was too old, and that this pointed to a
> >source upgrade problem.  I guess we need clarification here.  David?
> >
> >Scott
> 
> I've actually done this 2 or 3 times in the last week or 2 on a few 
> different
> computers, so unless a recent commit broke something, it should still be ok.
> 
5-CURRENT buildworlds also work on various 4.x releases.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
-------------- 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/20040804/4937690f/attachment-0001.bin

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

Message: 21
Date: Wed, 4 Aug 2004 13:34:56 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: Re: Postgresql locks up server - no response at all
To: current@freebsd.org
Message-ID: <20040804203456.GA46377@parodius.com>
Content-Type: text/plain; charset=us-ascii

I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
Please note that the server is "heavily loaded" (note the quotes); usually
a load of around 0.50 to 1.00 at all times, with mysqld being the top
process.  Server runs all latest -CURRENT builds.

Many people over in freebsd-threads mentioned this problem, and recommended
all sorts-of different workarounds.  I tried every one available to me,
except mucking with PREEMPTION (as I did not feel comfortable tinkering
with a random .h file on the box; seemed to be a kernel-related thing,
so I'd rather have just an "options" line for it -- I'm conditionally
lazy).

The locks are exactly as you describe: random, hard-locks.  No KDB/DDB/GDB.
Just hard-locks with nothing in logs anywhere.

There's been (very recent) discussion here about lock-up problems seeming
load-related.  This is starting to sound very probable for a lot of reasons.

Here's a list of all the combinations of things I've tried to *no avail*.
The solution for us was to move mysqld to a 4.x machine.  Since then,
the -CURRENT box has managed to stay up for 3.5 days without any trouble:

=====
SuperMicro SuperServer 5013C-T
P4, 2.6GHz (for HTT settings, see below)
1GB ECC DDR400

For many months this machine worked fine under heavy load, SMP enabled, ACPI enabled,
APIC enabled.  Sometime in early-to-mid July things became unstable; I update my
kernel/world every 1-2 weeks.  The only other difference between "then and now" is
that the box runs MySQL (mysqld) 4.0.20; mysqld is not very heavily loaded (at least
in comparison to some other posters' systems I've seen...)

System can usually stay up about 48-72 hours before dying.

Initial configuration
* KERNEL: SCHED_ULE
* KERNEL: Disabled INVARIANT* and WITNESS*
* KERNEL: SMP enabled, APIC enabled
* BIOS: HTT enabled, APIC enabled, ACPI enabled
* /etc/make.conf has CPUTYPE=p4  (seems to be required for mysqld to work, else sig11)

Now the problems begin.  Here are my attempted changes...

* KERNEL: SCHED_4BSD --> SCHED_ULE
  KERNEL: Enabled KDB and DDB
  !! Random locks.

* KERNEL: Enabled INVARIANT* and WITNESS*
  !! Random locks.

* LOADER: Temporary ACPI disable (via loader(8) only; BIOS still has ACPI enabled).
  Kernel panic:

pci0: <PCI bus> on pcib0
panic: Multiple entries for PCI IRQ 18
cpuid = 0;
KDB: enter: panic
[thread 0]
Stopped at      kdb_enter+0x30: movl    1.268054e+246bp,-1.993679e+00sp

* BIOS: MPS 1.4 --> 1.1
  No idea if this worked, because we did the following after reading freebsd-threads:

* BIOS: Disabled HTT
  BIOS: MPS 1.1 --> 1.4
  KERNEL: SCHED_ULE --> SCHED_4BSD
  KERNEL: Disabled INVARIANT* and WITNESS*
  !! Random locks.

Thu Jul 29 04:16 PDT
* BIOS: Disabled APIC
  KERNEL: Disabled SMP, disabled APIC
  KERNEL: Enabled INVARIANT* and WITNESS*
  NOTE: Because of the latest gcc 3.4 import, I was forced to rebuild world too.
  NOTE: Prior to now, world was build WITHOUT CPUTYPE=p4.  If this matters at all...
  !! Random locks.

Sat Jul 31 13:08 PDT
* MYSQL: Recompiled 4.0.20 with WITH_PROC_SCOPE_PTH=yes.
  MYSQL: The 4.0.20 rebuild obviously now included CPUTYPE=p4.
  !! Random locks.

Sun Aug  1 03:01:09 PDT 2004
* Ended up moving mysql server portion to a 4.x box, in attempt to
  see if the 5.x box still hard-locks without mysqld.

Wed Aug  4 13:28:35 PDT 2004
* -CURRENT box is still alive and well.
=====


Since our situation has shown that even a pure single CPU (i.e. no HTT
and no SMP in the kernel) has exhibited lock-ups, as mentioned, I'm
starting to think high load causes it.

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.                             |

On Wed, Aug 04, 2004 at 03:58:53PM -0400, Sven Willenberger wrote:
> FreeBSD 5.2.1-P8 running on dual Xeon supermicro system with vinum data
> drive and em network interfaces. I have been having a problem with the
> system simply locking up every couple days. No response from the
> keyboard, network, nothing. As if it is in some state of IRQ locking. I
> see nothing in the messages, even with DDB and DDB_UNATTENDED enabled in
> kernel. The system runs 4GB of ram with the following modifications to
> kernel:
> 
> cpu             I486_CPU
> cpu             I586_CPU
> cpu             I686_CPU
> <snip>
> options         SHMMAXPGS=65536         # ********************
> options         SEMMNI=40               # added for posgresql
> options         SEMMNS=240              # allows for around
> options         SEMUME=40               # 180 simultaneous connections
> options         SEMMNU=120              # ********************
> <snip>
> # Debugging for use in -current
> options         DDB                     #Enable the kernel debugger
> options         DDB_UNATTENDED          #Don't panic on DDB but log it
> #options        INVARIANTS              #Enable calls of extra sanity
> checking
> options         INVARIANT_SUPPORT       #Extra sanity checks of internal
> #options        WITNESS                 #Enable checks to detect dead ..
> #options        WITNESS_SKIPSPIN        #Don't run witness on spinlocks 
> # Deal with kmem issues
> options                 VM_KMEM_SIZE_SCALE="4"
> options                 VM_KMEM_SIZE_MAX="(512*1024*1024)"
> options                 KVA_PAGES=512
> 
> 
> /boot/loader.conf:
> vinum_load="YES"
> vinum.autostart="YES"
> #kern.maxdsiz="1073741824"
> #kern.dfldsiz="1073741824"
> 
> I had experimented in loader.conf with the dsiz settings to no avail,
> still get lockups. Got lockups with and without the DDB settings. It
> would be helpful if I could see some type of error being generated, but
> nothing; the attached terminal has utterly no messages beyond normal
> system messages, everything just stops responding.
> 
> After the last lockup and reboot, I sysctl machdep.hlt_logical_cpus=1 to
> see if that had any effect. Any other recommendations? adaptive_mutexes?
> Any ideas on how to actually find out what is happening?
> 
> Sven
> 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

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

Message: 22
Date: Wed, 04 Aug 2004 13:49:15 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: Postgresql locks up server - no response at all 
To: Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc: current@freebsd.org
Message-ID: <20040804204915.8337A5D08@ptavv.es.net>

> Date: Wed, 4 Aug 2004 13:34:56 -0700
> From: Jeremy Chadwick <freebsd@jdc.parodius.com>
> Sender: owner-freebsd-current@freebsd.org
> 
> I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
> Please note that the server is "heavily loaded" (note the quotes); usually
> a load of around 0.50 to 1.00 at all times, with mysqld being the top
> process.  Server runs all latest -CURRENT builds.
> 
> Many people over in freebsd-threads mentioned this problem, and recommended
> all sorts-of different workarounds.  I tried every one available to me,
> except mucking with PREEMPTION (as I did not feel comfortable tinkering
> with a random .h file on the box; seemed to be a kernel-related thing,
> so I'd rather have just an "options" line for it -- I'm conditionally
> lazy).

Please note that PREEMPTION is now NOT enabled in CURRENT. scottl
changed that a day or two ago because of all of these lock-ups. He and
Julian are listed as working to isolate the problem. Scott believes it's
in the scheduler. It's not specific to either ULE or 4BSD.

So cvsup, rebuild the kernel and you should be fine.At least for a while.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

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

Message: 23
Date: Wed, 4 Aug 2004 13:51:55 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: Re: Postgresql locks up server - no response at all
To: current@freebsd.org
Message-ID: <20040804205155.GA47128@parodius.com>
Content-Type: text/plain; charset=us-ascii

Thanks for the heads up, Kevin.  I'll revert system settings (BIOS
and the like -- we use a combo of BIOS-level serial console and FreeBSD
serial console in boot0/boot2/kernel) and give things a shot again.

I'm likely going to keep HTT/SMP off, however, since it's just a UP
box anyways.

I'll report back my findings (here in this thread) in a few days.

Again, thanks!

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.                             |

On Wed, Aug 04, 2004 at 01:49:15PM -0700, Kevin Oberman wrote:
> > Date: Wed, 4 Aug 2004 13:34:56 -0700
> > From: Jeremy Chadwick <freebsd@jdc.parodius.com>
> > Sender: owner-freebsd-current@freebsd.org
> > 
> > I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
> > Please note that the server is "heavily loaded" (note the quotes); usually
> > a load of around 0.50 to 1.00 at all times, with mysqld being the top
> > process.  Server runs all latest -CURRENT builds.
> > 
> > Many people over in freebsd-threads mentioned this problem, and recommended
> > all sorts-of different workarounds.  I tried every one available to me,
> > except mucking with PREEMPTION (as I did not feel comfortable tinkering
> > with a random .h file on the box; seemed to be a kernel-related thing,
> > so I'd rather have just an "options" line for it -- I'm conditionally
> > lazy).
> 
> Please note that PREEMPTION is now NOT enabled in CURRENT. scottl
> changed that a day or two ago because of all of these lock-ups. He and
> Julian are listed as working to isolate the problem. Scott believes it's
> in the scheduler. It's not specific to either ULE or 4BSD.
> 
> So cvsup, rebuild the kernel and you should be fine.At least for a while.
> -- 
> R. Kevin Oberman, Network Engineer
> Energy Sciences Network (ESnet)
> Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
> E-mail: oberman@es.net			Phone: +1 510 486-8634

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

Message: 24
Date: Wed, 4 Aug 2004 14:00:25 -0700 (PDT)
From: David Wolfskill <david@catwhisker.org>
Subject: Challenge getting touchpad to work since src/sys/isa/psm.c
	1.71
To: current@freebsd.org
Cc: njl@freebsd.org
Message-ID: <200408042100.i74L0PiQ056577@bunrab.catwhisker.org>

Sorry about the delay; right around the time of the commit, I was having
some thermal issues with my laptop (a Dell Inspiron 5000e).  I believe
those are fixed now -- it's gone through 5 days, each of which has
involved a "buildworld cycle" for each of -STABLE & -CURRENT, without
incident.

But I'm now having trouble getting a "touchpad tap" to be recognized as
a press/release of a mouse button in -CURRENT; I believe that the recent
commit to src/sys/isa/psm.c 1.71 is involved.

I normally run in -STABLE (booted from slice 1), and access the mouse
via moused; the resulting command line is

	/usr/sbin/moused -3 -p /dev/psm0 -t auto

Thus, in -STABLE, tapping the touchpad is equivalent to a press/release
of the left mouse button (button 1); press/release for the right button
is button 3, and both the left & right button "chorded" are used to
simulate the middle button (button 2).

Until the above-cited commit, this was also the case in -CURRENT.

In an attempt to discover a bit more, I fired up moused without the -3
flag, but with the -f ("foreground") and -d ("debug") flags, so I could
see what the packets were when each event occurred.  I see some
differences between any two of them, but I'm managing to fail to see how
those differences map to src/sys/sys/mouse.h's assignments.

	Event			First generated packet (hex)
Press/release left button	83 00 00 00 00 00 00 7f
Press/release right button	86 00 00 00 00 00 00 7f
Press/release both buttons	82 00 00 00 00 00 00 7f
Touchpad tap			87 00 00 00 00 00 00 7f

That leftmost byte is to be mapped by src/sys/sys/mouse.h thus:

/* button */
#define MOUSE_BUTTON1DOWN       0x0001  /* left */
#define MOUSE_BUTTON2DOWN       0x0002  /* middle */
#define MOUSE_BUTTON3DOWN       0x0004  /* right */
#define MOUSE_BUTTON4DOWN       0x0008
#define MOUSE_BUTTON5DOWN       0x0010
#define MOUSE_BUTTON6DOWN       0x0020
#define MOUSE_BUTTON7DOWN       0x0040
#define MOUSE_BUTTON8DOWN       0x0080
#define MOUSE_MAXBUTTON         31
#define MOUSE_STDBUTTONS        0x0007          /* buttons 1-3 */
#define MOUSE_EXTBUTTONS        0x7ffffff8      /* the others (28 of them!) */
#define MOUSE_BUTTONS           (MOUSE_STDBUTTONS | MOUSE_EXTBUTTONS)


which seems a little confusing:  moused is apparently reporting the
touchpad tap as all 3 buttons being down.

Perhaps a bit stranger, the device is now probed as having 3 buttons,
vs. the 2 that are seen in -STABLE or that were seen in -CURRENT prior
to the commit.

Here's a cut/paste of the probe messages from recent -CURRENT, with
PSM_DEBUG=1:

Aug  4 11:22:31 localhost kernel: psm0: unable to allocate IRQ
Aug  4 11:22:31 localhost kernel: psmcpnp0 irq 12 on acpi0
Aug  4 11:22:31 localhost kernel: psm0: current command byte:0047
Aug  4 11:22:31 localhost kernel: Synaptics Touchpad:
Aug  4 11:22:31 localhost kernel: Version: 4.3
Aug  4 11:22:31 localhost kernel: Model id: 88 58 a1
Aug  4 11:22:31 localhost kernel: infoRot180: 1
Aug  4 11:22:31 localhost kernel: infoPortrait: 0
Aug  4 11:22:31 localhost kernel: infoSensor: 8
Aug  4 11:22:31 localhost kernel: infoHardware: 44
Aug  4 11:22:31 localhost kernel: infoNewAbs: 1
Aug  4 11:22:31 localhost kernel: capPen: 0
Aug  4 11:22:31 localhost kernel: infoSimplC: 1
Aug  4 11:22:31 localhost kernel: infoGeometry: 1
Aug  4 11:22:31 localhost kernel: Capability Bytes: 55 47 55
Aug  4 11:22:31 localhost kernel: Mode byte set by BIOS: 41
Aug  4 11:22:31 localhost kernel: psm0: found Synaptics Touchpad
Aug  4 11:22:31 localhost kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0
Aug  4 11:22:31 localhost kernel: psm0: [GIANT-LOCKED]
Aug  4 11:22:31 localhost kernel: psm0: model Synaptics Touchpad, device ID 0-00, 3 buttons
Aug  4 11:22:31 localhost kernel: psm0: config:00000000, flags:00000000, packet size:6
Aug  4 11:22:31 localhost kernel: psm0: syncmask:c0, syncbits:80


Anyone have clues?  I'm not married to the idea of using moused.  I
tried running X without moused (telling X to access the mouse directly),
and I managed to get the same behavior.

Thanks,
david
-- 
David H. Wolfskill				david@catwhisker.org
I do not "unsubscribe" from email "services" to which I have not explicitly
subscribed.  Rather, I block spammers' access to SMTP servers I control,
and encourage others who are in a position to do so to do likewise.

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

Message: 25
Date: Wed, 04 Aug 2004 17:00:53 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: Re: Postgresql locks up server - no response at all
To: freebsd-current@freebsd.org
Message-ID: <1091653253.29492.57.camel@lanshark.dmv.com>
Content-Type: text/plain

On Wed, 2004-08-04 at 13:49 -0700, Kevin Oberman wrote:
> > Date: Wed, 4 Aug 2004 13:34:56 -0700
> > From: Jeremy Chadwick <freebsd@jdc.parodius.com>
> > Sender: owner-freebsd-current@freebsd.org
> > 
> > I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
> > Please note that the server is "heavily loaded" (note the quotes); usually
> > a load of around 0.50 to 1.00 at all times, with mysqld being the top
> > process.  Server runs all latest -CURRENT builds.
> > 
> > Many people over in freebsd-threads mentioned this problem, and recommended
> > all sorts-of different workarounds.  I tried every one available to me,
> > except mucking with PREEMPTION (as I did not feel comfortable tinkering
> > with a random .h file on the box; seemed to be a kernel-related thing,
> > so I'd rather have just an "options" line for it -- I'm conditionally
> > lazy).
> 
> Please note that PREEMPTION is now NOT enabled in CURRENT. scottl
> changed that a day or two ago because of all of these lock-ups. He and
> Julian are listed as working to isolate the problem. Scott believes it's
> in the scheduler. It's not specific to either ULE or 4BSD.
> 
> So cvsup, rebuild the kernel and you should be fine.At least for a while.

Based on this and Jeremy C.'s response it would appear that I should
either try to upgrade my 5.2.1-P8 system to -CURRENT (which is scary
because of the vinum array - root is not mounted on a vinum device, but
the data directory is - will gvinum simply read this correctly? it is a
stripe+mirror array of 4 drives) or start from scratch and go back to
4.10 (STABLE) for a while. I am assuming that the lockups I am seeing
were exacerbated by the PREEMPTION episodes of the past couple weeks? If
I choose the upgrade to -CURRENT, are there any caveats or
recommendations? (besides reading "/usr/src/UPDATING" which I do
religiously anyway)


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

Message: 26
Date: Wed, 04 Aug 2004 16:19:20 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: Postgresql locks up server - no response at all
To: Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc: current@freebsd.org
Message-ID: <411152D8.2050305@alumni.rice.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed

On 08/04/04 15:34, Jeremy Chadwick wrote:
> I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
> Please note that the server is "heavily loaded" (note the quotes); usually
> a load of around 0.50 to 1.00 at all times, with mysqld being the top
> process.  Server runs all latest -CURRENT builds.
> 
> Many people over in freebsd-threads mentioned this problem, and recommended
> all sorts-of different workarounds.  I tried every one available to me,
> except mucking with PREEMPTION (as I did not feel comfortable tinkering
> with a random .h file on the box; seemed to be a kernel-related thing,
> so I'd rather have just an "options" line for it -- I'm conditionally
> lazy).

The one you didn't try most likely was the culprit.  Robert Watson 
showed that PREEMPTION and threading don't play well together right now:
http://lists.freebsd.org/pipermail/freebsd-current/2004-July/031211.html

The thought is that PREEMPTION uncovers scheduler bugs, but nobody's 
figured it out at the moment.

> Wed Aug  4 13:28:35 PDT 2004
> * -CURRENT box is still alive and well.

PREEMPTION was turned off on August 1st, so if you've updated since then 
things should have stabilized a bit:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/param.h#rev1.72

Jon

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

Message: 27
Date: Wed, 4 Aug 2004 14:22:07 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: Re: Postgresql locks up server - no response at all
To: current@freebsd.org
Message-ID: <20040804212207.GA48062@parodius.com>
Content-Type: text/plain; charset=us-ascii

Revision 1.72 / (download) - annotate - [select for diffs], Sun Aug 1 14:31:45 2004 UTC (3 days, 6 hours ago) by scottl 

$ uname -a
FreeBSD medusa.parodius.com 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Aug  1 07:22:27 PDT 2004     root@medusa.parodius.com:/usr/obj/usr/src/sys/MEDUSA  i386

Missed it by 7 hours.  :-)

I'll give things a shot with a newer src-all and world.

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.                             |

On Wed, Aug 04, 2004 at 04:19:20PM -0500, Jon Noack wrote:
> On 08/04/04 15:34, Jeremy Chadwick wrote:
> >I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
> >Please note that the server is "heavily loaded" (note the quotes); usually
> >a load of around 0.50 to 1.00 at all times, with mysqld being the top
> >process.  Server runs all latest -CURRENT builds.
> >
> >Many people over in freebsd-threads mentioned this problem, and recommended
> >all sorts-of different workarounds.  I tried every one available to me,
> >except mucking with PREEMPTION (as I did not feel comfortable tinkering
> >with a random .h file on the box; seemed to be a kernel-related thing,
> >so I'd rather have just an "options" line for it -- I'm conditionally
> >lazy).
> 
> The one you didn't try most likely was the culprit.  Robert Watson 
> showed that PREEMPTION and threading don't play well together right now:
> http://lists.freebsd.org/pipermail/freebsd-current/2004-July/031211.html
> 
> The thought is that PREEMPTION uncovers scheduler bugs, but nobody's 
> figured it out at the moment.
> 
> >Wed Aug  4 13:28:35 PDT 2004
> >* -CURRENT box is still alive and well.
> 
> PREEMPTION was turned off on August 1st, so if you've updated since then 
> things should have stabilized a bit:
> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/param.h#rev1.72
> 
> Jon

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

Message: 28
Date: Wed, 4 Aug 2004 23:21:58 +0200
From: Marco Trentini <mark@remotelab.org>
Subject: Re: radeon.ko doesn't load on recent current
To: Rossam Souza da Silva <rss@cesar.org.br>
Cc: current@freebsd.org
Message-ID: <20040804212158.GA770@vaio.lab>
Content-Type: text/plain; charset=us-ascii

On Wed, Aug 04, 2004 at 09:28:48AM -0300, Rossam Souza da Silva wrote:
> 
> I have the same problem with VMWare3 kernel modules...
> no one is loaded, with error messages about symbols.

What is the error message?

Is this one?

<boot>
Additional ABI support:
 linux
..
Starting cron.
Local package initialization:
link_elf: symbol kmem_alloc_pageable undefined
kldload:
can't load /usr/local/lib/vmware/modules/vmmon_up.ko
:
No such file or directory
vmnet1: Ethernet address: 00:bd:c4:3d:00:01
 VMware
</boot>

In this case, download last vmware3 port skeleton from

http://www.break.net/orlando/vmware3/

and try again.

-- 
Marco Trentini                mark@remotelab.org
http://www.remotelab.org/

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

Message: 29
Date: Wed, 04 Aug 2004 15:27:52 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: Postgresql locks up server - no response at all
To: Sven Willenberger <sven@dmv.com>
Cc: freebsd-current@freebsd.org
Message-ID: <411154D8.1050001@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Sven Willenberger wrote:

> On Wed, 2004-08-04 at 13:49 -0700, Kevin Oberman wrote:
> 
>>>Date: Wed, 4 Aug 2004 13:34:56 -0700
>>>From: Jeremy Chadwick <freebsd@jdc.parodius.com>
>>>Sender: owner-freebsd-current@freebsd.org
>>>
>>>I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
>>>Please note that the server is "heavily loaded" (note the quotes); usually
>>>a load of around 0.50 to 1.00 at all times, with mysqld being the top
>>>process.  Server runs all latest -CURRENT builds.
>>>
>>>Many people over in freebsd-threads mentioned this problem, and recommended
>>>all sorts-of different workarounds.  I tried every one available to me,
>>>except mucking with PREEMPTION (as I did not feel comfortable tinkering
>>>with a random .h file on the box; seemed to be a kernel-related thing,
>>>so I'd rather have just an "options" line for it -- I'm conditionally
>>>lazy).
>>
>>Please note that PREEMPTION is now NOT enabled in CURRENT. scottl
>>changed that a day or two ago because of all of these lock-ups. He and
>>Julian are listed as working to isolate the problem. Scott believes it's
>>in the scheduler. It's not specific to either ULE or 4BSD.
>>
>>So cvsup, rebuild the kernel and you should be fine.At least for a while.
> 
> 
> Based on this and Jeremy C.'s response it would appear that I should
> either try to upgrade my 5.2.1-P8 system to -CURRENT (which is scary
> because of the vinum array - root is not mounted on a vinum device, but
> the data directory is - will gvinum simply read this correctly? it is a
> stripe+mirror array of 4 drives) or start from scratch and go back to
> 4.10 (STABLE) for a while. I am assuming that the lockups I am seeing
> were exacerbated by the PREEMPTION episodes of the past couple weeks? If
> I choose the upgrade to -CURRENT, are there any caveats or
> recommendations? (besides reading "/usr/src/UPDATING" which I do
> religiously anyway)
> 
> _______________________________________________
> 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"

I'm a bit nervous with asking you to upgrade to -current.  PREEMPTION is
practically disabled in 5.2.1 so upgrading has a low chance of fixing
the problem except maybe by sheer luck.  The best action would be to
get a crashdump.  If your system has an NMI button, then there are some
trivial patches that will assist with this.  If not, then you might want
to look at backporting the ichwd watchdog driver and letting that do a
chip-assisted NMI.

In any case, finding out exactly what each CPU is doing at the time of
the lockup is going to be vital.  The lockups that I've been able to
reproduce happen when a TAILQ in the scheduler gets corrupted and
resulting in one CPU spinning on the list forever with the scheduler
lock held.  All other cpus then quickly grind to a halt while they wait
for the sched lock to become free, which it never does.

Scott

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

Message: 30
Date: Wed, 4 Aug 2004 17:33:19 -0400
From: Geoff Speicher <geoff@speicher.org>
Subject: Re: Postgresql locks up server - no response at all
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: current@freebsd.org
Message-ID: <20040804213319.GB98953@sirius.speicher.org>
Content-Type: text/plain; charset=us-ascii

On Wed, Aug 04, 2004 at 04:19:20PM -0500, Jon Noack wrote:
> On 08/04/04 15:34, Jeremy Chadwick wrote:
> >
> >Many people over in freebsd-threads mentioned this problem, and recommended
> >all sorts-of different workarounds.  I tried every one available to me,
> >except mucking with PREEMPTION (as I did not feel comfortable tinkering
> >with a random .h file on the box; seemed to be a kernel-related thing,
> >so I'd rather have just an "options" line for it -- I'm conditionally
> >lazy).
> 
> The one you didn't try most likely was the culprit.  Robert Watson 
> showed that PREEMPTION and threading don't play well together right now:

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.

Geoff


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

Message: 31
Date: Wed, 04 Aug 2004 15:34:49 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: Postgresql locks up server - no response at all
To: Geoff Speicher <geoff@speicher.org>
Cc: Jeremy Chadwick <freebsd@jdc.parodius.com>
Message-ID: <41115679.2030300@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Geoff Speicher wrote:

> On Wed, Aug 04, 2004 at 04:19:20PM -0500, Jon Noack wrote:
> 
>>On 08/04/04 15:34, Jeremy Chadwick wrote:
>>
>>>Many people over in freebsd-threads mentioned this problem, and recommended
>>>all sorts-of different workarounds.  I tried every one available to me,
>>>except mucking with PREEMPTION (as I did not feel comfortable tinkering
>>>with a random .h file on the box; seemed to be a kernel-related thing,
>>>so I'd rather have just an "options" line for it -- I'm conditionally
>>>lazy).
>>
>>The one you didn't try most likely was the culprit.  Robert Watson 
>>showed that PREEMPTION and threading don't play well together right now:
> 
> 
> 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.
> 
> Geoff
> 

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?

Scott

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

Message: 32
Date: Wed, 04 Aug 2004 18:03:21 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: Re: Postgresql locks up server - no response at all
To: Scott Long <scottl@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <1091657001.29488.64.camel@lanshark.dmv.com>
Content-Type: text/plain

On Wed, 2004-08-04 at 15:27 -0600, Scott Long wrote:
> Sven Willenberger wrote:
> 
> > On Wed, 2004-08-04 at 13:49 -0700, Kevin Oberman wrote:
> > 
> >>>Date: Wed, 4 Aug 2004 13:34:56 -0700
> >>>From: Jeremy Chadwick <freebsd@jdc.parodius.com>
> >>>Sender: owner-freebsd-current@freebsd.org
> >>>
> >>>I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
> >>>Please note that the server is "heavily loaded" (note the quotes); usually
> >>>a load of around 0.50 to 1.00 at all times, with mysqld being the top
> >>>process.  Server runs all latest -CURRENT builds.
> >>>
> >>>Many people over in freebsd-threads mentioned this problem, and recommended
> >>>all sorts-of different workarounds.  I tried every one available to me,
> >>>except mucking with PREEMPTION (as I did not feel comfortable tinkering
> >>>with a random .h file on the box; seemed to be a kernel-related thing,
> >>>so I'd rather have just an "options" line for it -- I'm conditionally
> >>>lazy).
> >>
> >>Please note that PREEMPTION is now NOT enabled in CURRENT. scottl
> >>changed that a day or two ago because of all of these lock-ups. He and
> >>Julian are listed as working to isolate the problem. Scott believes it's
> >>in the scheduler. It's not specific to either ULE or 4BSD.
> >>
> >>So cvsup, rebuild the kernel and you should be fine.At least for a while.
> > 
> > 
> > Based on this and Jeremy C.'s response it would appear that I should
> > either try to upgrade my 5.2.1-P8 system to -CURRENT (which is scary
> > because of the vinum array - root is not mounted on a vinum device, but
> > the data directory is - will gvinum simply read this correctly? it is a
> > stripe+mirror array of 4 drives) or start from scratch and go back to
> > 4.10 (STABLE) for a while. I am assuming that the lockups I am seeing
> > were exacerbated by the PREEMPTION episodes of the past couple weeks? If
> > I choose the upgrade to -CURRENT, are there any caveats or
> > recommendations? (besides reading "/usr/src/UPDATING" which I do
> > religiously anyway)
> > 
> > _______________________________________________
> > 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"
> 
> I'm a bit nervous with asking you to upgrade to -current.  PREEMPTION is
> practically disabled in 5.2.1 so upgrading has a low chance of fixing
> the problem except maybe by sheer luck.  The best action would be to
> get a crashdump.  If your system has an NMI button, then there are some
> trivial patches that will assist with this.  If not, then you might want
> to look at backporting the ichwd watchdog driver and letting that do a
> chip-assisted NMI.
> 
> In any case, finding out exactly what each CPU is doing at the time of
> the lockup is going to be vital.  The lockups that I've been able to
> reproduce happen when a TAILQ in the scheduler gets corrupted and
> resulting in one CPU spinning on the list forever with the scheduler
> lock held.  All other cpus then quickly grind to a halt while they wait
> for the sched lock to become free, which it never does.
> 

The case unfortunately does not have a button (although the mobo does
have an NMI header/jumper). Backporting the watchdog driver sounds
doable; other than downloading the sys/dev/ichwd directory from a
repository and adding "options ichwd" to my kernel config file, what
else would be needed? I am willing to try to get at least one crashdump
before I have to go back to a -STABLE setup or try something so I can
get some uptime on this box.


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

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


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


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