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: HEADSUP: Import of pf from OpenBSD 3.5 (Max Laier)
2. Re: Sound problems during load (Doug White)
3. Re: USB woes. (John Cagle)
4. Re: Possible Threading problem with -CURRENT / MySQL? (Jon Noack)
5. Re: How to catch interrupt (Roman Kurakin)
6. Re: ** HEADS UP ** GDB detached from the 5-CURRENT build
(Roman Kurakin)
7. Re: Experiences with 3Ware 9500-Series and 5.2 CURRENT?
(Patrick Hurrelmann)
8. Re: (continued) XFree86 problem? (Brian Fundakowski Feldman)
9. boot hangs on 2hours old current (Josef El-Rayes)
10. Re: new binutils broken for amd64 (Sean McNeil)
11. Re: new binutils broken for amd64 (Joe Marcus Clarke)
12. Re: boot hangs on 2hours old current (Ariff Abdullah)
13. Re: (continued) XFree86 problem? (Mayo)
14. Re: (continued) XFree86 problem? (Craig Boston)
15. RE: ** HEADS UP ** GDB detached from the 5-CURRENT build
(Don Bowman)
16. Re: Realtek RT8139 (onboard) - failed to receive packet in
loopback mode (Mike Tancsa)
17. Re: HA: Possible Threading problem with -CURRENT / MySQL?
(John Baldwin)
18. Re: (continued) XFree86 problem? (AK)
19. STI, HLT in acpi_cpu_idle_c1 (Don Bowman)
20. Re: Possible Threading problem with -CURRENT / MySQL?
(Robert Watson)
21. Re: boot hangs on 2hours old current (Josef El-Rayes)
22. Re: Project Evil and a PCI DSL modem (Bruce M Simpson)
23. Re: STI, HLT in acpi_cpu_idle_c1 (Julian Elischer)
24. RE: STI, HLT in acpi_cpu_idle_c1 (Don Bowman)
25. Re: Sound problems during load (Tobias Aigner)
26. Re: Re: Realtek RT8139 (onboard) - failed to receive packet
in loopback mode (Bill Paul)
27. Re: STI, HLT in acpi_cpu_idle_c1 (Matthew Dillon)
28. RE: Project Evil and a PCI DSL modem (Samuel Clements)
29. RE: STI, HLT in acpi_cpu_idle_c1 (Don Bowman)
30. Re: Realtek RT8139 (onboard) - failed to receive packet in
loopback mode (Bill Paul)
31. RE: STI, HLT in acpi_cpu_idle_c1 (Matthew Dillon)
32. RE: STI, HLT in acpi_cpu_idle_c1 (Don Bowman)
33. RE: STI, HLT in acpi_cpu_idle_c1 (Matthew Dillon)
34. Re: Re: Realtek RT8139 (onboard) - failed to receive packet
in loopback mode (Mike Tancsa)
----------------------------------------------------------------------
Message: 1
Date: Thu, 17 Jun 2004 19:09:37 +0200
From: Max Laier <max@love2party.net>
Subject: Re: HEADSUP: Import of pf from OpenBSD 3.5
To: freebsd-current@freebsd.org
Cc: pf4freebsd@freelists.org
Message-ID: <200406171909.45235.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"
On Thursday 17 June 2004 00:38, Max Laier wrote:
> All,
>
> I will be importing a new version of pf in the next hour. This is long due
> and really well-tested. However, the first step will bring in
> OPENBSD_3_5_BASE (i.e. the release version, not the STABLE branch). We will
> catch up on -STABLE soon thereafter. Just FYI, better wait a bit before you
> re-build world to get the new stuff.
I am done for now. pf is at the same level as the OpenBSD 3.5 stable branch.
There are some more fixes in OpenBSD-current that are candidates for an MFC
to FreeBSD, but identifying and merging will take some time. If you are
interested in testing pf 3.5, you can start now ;)
If you are aware of fixes in OpenBSD-current that you'd like to have merged,
please drop me a mail. For now we have identified at least one fix from Pyun
YongHyeon:
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/pf_norm.c.diff?r1=1.86&r2=1.
87&f=h
There are also some FreeBSD specific feature extensions that will go in over
the next couple of days. This includes "jailed" support and matching of
member groups for tcp/udp group syntax. Details will follow.
--
Best regards, | mlaier@freebsd.org
Max Laier | ICQ #67774661
http://pf4freebsd.love2party.net/ | mlaier@EFnet
-------------- 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/20040617/
27495ec5/attachment-0001.bin
------------------------------
Message: 2
Date: Thu, 17 Jun 2004 10:09:41 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: Sound problems during load
To: Tobias Aigner <lists@mangosuechtig.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040617100638.S26359@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Thu, 17 Jun 2004, Tobias Aigner wrote:
> I have noticed some sound-playback (through xmms) problems during I/O
> load for example extracting a big tar/gzip/bz2 archive. While extracting
> the sound slows down, starts to stutter and gets very distorted on both
> soundcards. The same thing when I try to load a kernel module. I've
> already done some testing with my bios and irq settings but no success.
>
> This happens on FreeBSD 5.2.1(-p8) and on todays -CURRENT. I just wanted
> to know if there is any fix or workaround available? Would be great.
Are WITNESS and INVARIANTS enabled? If so, those drag down interrupt
latency enough to cause sound disruptions. I can get my home -current box
(athlon 3000+) to do the same thing, but even setting
debug.witness_watch=0 makes a massive improvement, and that doesn't
entirely disable witness.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 3
Date: Thu, 17 Jun 2004 12:15:30 -0500
From: John Cagle <jcagle@gmail.com>
Subject: Re: USB woes.
To: Martin Nilsson <martin@gneto.com>
Cc: Ian FREISLICH <if@hetzner.co.za>
Message-ID: <6863f0c904061710156ee22c7a@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII
On Thu, 17 Jun 2004 17:42:06 +0200, Martin Nilsson <martin@gneto.com> wrote:
> Ian FREISLICH wrote:
> > Just did enough stuff to get these, but now the machine has locked
> > up, so I can do no more before I get home.
> >
> > umass0: BBB reset failed, TIMEOUT
> > umass0: BBB bulk-in clear stall failed, TIMEOUT
>
> I have the same problem, It works for me if I boot without ACPI have you
> tested that?
I have the same problem when trying to install -Current via a USB
CD-ROM drive. I haven't tried disabling ACPI yet.
Regards,
John
------------------------------
Message: 4
Date: Thu, 17 Jun 2004 12:24:33 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: Possible Threading problem with -CURRENT / MySQL?
To: Robert Watson <rwatson@freebsd.org>
Cc: mike <mike@mike2k.com>
Message-ID: <40D1D3D1.9010209@alumni.rice.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
On 06/17/04 08:00, Robert Watson wrote:
> On Thu, 17 Jun 2004, Jon Noack wrote:
>> On 06/17/04 01:07, Brad Knowles wrote:
>>> At 1:31 AM -0400 2004-06-17, Robert Watson wrote:
>>>> - Running with SCHED_4BSD instead of SCHED_ULE
>>>
>>> This is the only one that really concerns me. This shows that we
>>> clearly need more work on ULE. Is there one particular thing
>>> that we seem to be tripping up on, or is it a multitude of
>>> things?
>>
>> I think I'll switch to 4BSD until I see more work being done on ULE
>> (I read cvs-src as a hobby already so I'll know when to switch
>> back). I noticed a performance drop from 5.2.1-p8 (with 4BSD) to
>> -CURRENT (with ULE) when I upgraded, but I attributed it to other
>> things. However, the system still feels slower than before despite
>> having since disabled INVARIANTS, WITNESS, and userspace malloc
>> debugging flags.
>
> ULE seems to do a very good job of scheduling interactive tasks over
> other workloads, resulting in a very "snappy" feel on my boxes,
> despite heavy CPU load from background builds, etc. The workload I
> looked at had no real "interactive" component, although it was a
> latency-centric RPC test, so timely hand-off as well as high
> throughput would be important. I know that Jeff's measurement work
> on ULE had a substantial focus on deadlines -- whether or not ULE was
> timely in scheduling tasks, etc, and that he demonstrated that it was
> much stronger than most other available schedulers in this area.
Well, I switched to 4BSD and noticed this right away. I occasionally
get sound hiccups under heavy i/o with ULE [1], but with 4BSD it's a bit
ridiculous. There's a PR open about it (can't remember which off the
top of my head), but sound will skip and slow down (play at half speed
or slower). I know the sound locking is not all it should be, so this
may not be a representative test. Regardless, my workstations are back
on ULE...
Jon
[1] Often when using tar or bsdtar. To reproduce:
cd /usr/ports/www/firefox; make extract
------------------------------
Message: 5
Date: Thu, 17 Jun 2004 21:19:36 +0400
From: Roman Kurakin <rik@cronyx.ru>
Subject: Re: How to catch interrupt
To: Bruce Evans <bde@zeta.org.au>
Cc: freebsd-current@freebsd.org
Message-ID: <40D1D2A8.2070000@cronyx.ru>
Content-Type: text/plain; charset=us-ascii; format=flowed
Bruce Evans wrote:
>On Thu, 17 Jun 2004, Roman Kurakin wrote:
>
>
>>Bruce Evans:
>>
>>
>>>However, you may only need to test for pending interrupts. This can
>>>be done for isa interrupts using isa_irq_pending() to get a bitmap of
>>>
>>>
>>It seems that this function is not working for interrupts that were
>>already used
>>by some driver before I call it.
>>
>>
>
>It only works for unacknowledged interrupts, so it can only work for
>masked interrupts. See sio.c:
>
>
>% /*
>% * We don't want to get actual interrupts, just masked ones.
>% * Interrupts from this line should already be masked in the ICU,
>% * but mask them in the processor as well in case there are some
>% * (misconfigured) shared interrupts.
>% */
>% mtx_lock_spin(&sio_lock);
>
>Note that masking interrupts in the processor only helps for the non-SMP
>case, and the comment has rotted:
>- the code acquires a spinlock. It only masks interrupts as a BAD side
> effect. In my version, acquiring a spinlock doesn't mask processor
> interrupts, and there is an explicit intr_disable().
>- interrupts can now be shared in some non-misconfigured cases.
>
>
So spin lock should help me in some cases but there is other cases were
this wouldn't help or I miss
smth? In this case if some driver will acquire interrupt while probing
and after this it will release it
(for example it will decide that this is wrong intr and will try other),
and after we will try to load
sio driver we may fail to load it case we would unable to check this
intr line.
rik
>Bruce
>_______________________________________________
>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: 6
Date: Thu, 17 Jun 2004 21:26:42 +0400
From: Roman Kurakin <rik@cronyx.ru>
Subject: Re: ** HEADS UP ** GDB detached from the 5-CURRENT build
To: freebsd-current@freebsd.org
Message-ID: <40D1D452.8010705@cronyx.ru>
Content-Type: text/plain; charset=us-ascii; format=flowed
David O'Brien wrote:
>On Wed, Jun 16, 2004 at 08:22:54PM +0400, Roman Kurakin wrote:
>
>
>>David O'Brien wrote:
>>
>>
>>>I have disconnected (i.e., disabled) `gdb` from 'make world' due to the
>>>impending binutils 2.15 import. GDB 5.12 cannot consume the 2.15 bfd and
>>>libiberty.
>>>
>>>For now GDB users will have to use the devel/gdb6 port. There will be an
>>>import of GDB 6.x into the /usr/src tree before 5.3-RELEASE.
>>>
>>>
>>How long it may take?
>>
>>
>Not sure. But it would be emancely useful if people would use the gdb6
>port so gdb6 gets wider testing on FreeBSD before 5.3.
>
>
I hope I wouldn't need to test it beofre 5.3 :-)
rik
------------------------------
Message: 7
Date: Thu, 17 Jun 2004 19:12:38 +0200
From: Patrick Hurrelmann <outi@bytephobia.de>
Subject: Re: Experiences with 3Ware 9500-Series and 5.2 CURRENT?
To: "Vinod Kashyap" <vkashyap@amcc.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040617191238.41d93dc8@duality.bytephobia.de>
Content-Type: text/plain; charset=US-ASCII
On Wed, 9 Jun 2004 13:38:51 -0700
"Vinod Kashyap" <vkashyap@amcc.com> wrote:
>
> > -----Original Message-----
> > From: owner-freebsd-current@freebsd.org
> > [mailto:owner-freebsd-current@freebsd.org]On Behalf Of Patrick
> > Hurrelmann
> > Sent: Monday, June 07, 2004 9:56 AM
> > To: freebsd-current@freebsd.org; freebsd-hardware@freebsd.org
> > Subject: Experiences with 3Ware 9500-Series and 5.2 CURRENT?
> >
> >
> > Hi there,
> >
> > i just sold my Promsie FastTrak S150 SX4 due to missing Raid
> > 5 support of ataraid. I really wanted to get it running with
> > FreeBSD 5.2 CURRENT, but the wait was too long :(
> > I thank Soeren Schmidt for his work and patience.
> >
> > Now I know want to buy a 3Ware 9500S-4LP.
> >
> > My desired configuration will be a Dual-Athlon on a Asus
> > A7M266-D with 4x 120gb, 7200 rpm, 8mb cache (western digital).
> >
> > - Does anybody use such a controller and in what configuration?
> > - How stable is the current twa?
>
> twa has gone through a full qualification process internal to 3ware.
>
>
> > - Do the CLI and 3DM Tools work?
>
> They haven't been released yet, and are expected to be released shortly.
>
I just checked www.3ware.com and binary-version of drivers, CLI and 3DM2 have
been released for FreeBSD :)
Great!
Now i only need to get it installed :/
--
===========================================================================
Patrick Hurrelmann | "Programming today is a race between software
Mannheim, Germany | engineers striving to build bigger and better
| idiot-proof programs, and the Universe trying
outi at bytephobia.de | to produce bigger and better idiots. So far,
www.bytephobia.de | the Universe is winning." - Rich Cook
------------------------------
Message: 8
Date: Thu, 17 Jun 2004 13:50:20 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: (continued) XFree86 problem?
To: Craig Boston <craig@xfoil.gank.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040617175020.GF15918@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Thu, Jun 17, 2004 at 09:27:38AM -0500, Craig Boston wrote:
> On Wednesday 16 June 2004 08:05 pm, Kris Kennaway wrote:
> > Does xrestop show anything for you (it didn't for the OP, but it may
> > not be the same problem)?
>
> Nothing really useful:
>
> (top)
> 769 root 104 0 441M 416M RUN 576:24 20.31% 20.31% XFree86
>
> (xrestop)
> xrestop - Display: localhost:0
> Monitoring 36 clients. XErrors: 0
> Pixmaps: 30123K total, Other: 1003K total, All: 31127K tota
l
>
> Glancing through the list of clients, I don't see any that look obviously
> wrong. All of them correspond to currently running processes. There is onl
y
> 1 unknown but it doesn't seem to be taking up much memory:
>
> res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID Identifier
> 4200000 6 39 1 6 27 192K 2K 194K ? <unknown>
>
> So if it's a client resource leak, it's not one that xrestop can detect...
> Also, usage as reported by xrestop has gone down by 25M since my post
> yesterday (I have a lot less running now), but the XFree86 process is still
> at 416 resident -- only a 4M drop.
>
> It could just be XFree86 being overly aggressive with its pixmap cache, but
I
> don't know how to check that and/or tune it to more reasonable values.
At the least, you can get a very distant overview by mounting /proc and
looking at the /proc/<pid>/map of the X server. It should give you a
reasonable amount of information on at least whether all your memory is
being used by anonymous memory, or device mappings, or file mappings...
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 9
Date: Thu, 17 Jun 2004 20:02:27 +0200
From: Josef El-Rayes <josef@FreeBSD.org>
Subject: boot hangs on 2hours old current
To: freebsd-current@freebsd.org
Message-ID: <20040617180227.GD593@jenny.daemon.li>
Content-Type: text/plain; charset="us-ascii"
hi!
when i boot my i386 (recent athlon-xp) machine with standard
IDE harddisc i get the following output in dmesg
before the system hangs:
..
GEOM: Configure ad0s1, start 32256 length 80023716864 end 80023749119
GEOM: Configure ad0s1a, start 0 length 536870912 end 536870911
GEOM: Configure ad0s1b, start 536870912 length 1073741824 end 1610612735
GEOM: Configure ad0s1c, start 0 length 80023716864 end 80023716863
GEOM: Configure ad0s1d, start 1610612736 length 2147483648 end 3758096383
GEOM: Configure ad0s1e, start 3758096384 length 2147483648 end 5905580031
GEOM: Configure ad0s1f, start 32256 length 5905580032 end 80023716863
ata1-master: setting PIO0 on VIA 8237 chip
any ideas?
if you need additional info/output please tell me.
greets, josef
--
Josef El-Rayes (__)
Email: josef@daemon.li \\\'',)
Web: http://daemon.li/ \/ \ ^
FreeBSD: josef@FreeBSD.org .\._/_)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040617/
b984dbaf/attachment-0001.bin
------------------------------
Message: 10
Date: Thu, 17 Jun 2004 11:06:32 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: Re: new binutils broken for amd64
To: obrien@freebsd.org
Cc: freebsd-current@freebsd.org
Message-ID: <1087495591.10180.7.camel@server.mcneil.com>
Content-Type: text/plain
On Thu, 2004-06-17 at 01:11, David O'Brien wrote:
> On Wed, Jun 16, 2004 at 10:03:15PM -0700, Sean McNeil wrote:
> > If I do
> > make buildworld && make installworld
> >
> > it creates an improper ld. If I do
> >
> > cd /usr/src/gnu/usr.bin/binutils/ld
> > make clean
> > make
> > make install
> >
> > Then I get an ld that works properly.
>
> Please send me (or make available) the working and not-working 'ld'
> binaries.
I just did a new make buildworld installworld with /usr/obj empty. Same
issue. Just doing a
portupgrade -f glib-2.4.2
will fail with the new linker. Turns out there are two linkers in
/usr/obj. The one at
/usr/obj/usr/src/amd64/usr/src/gnu/usr.bin/binutils/ld/ld
works
The one at
/usr/obj/usr/src/gnu/usr.bin/binutils/ld/ld
does not.
I have placed a copy of both as:
http://www.mcneil.com/~sean/freebsd/amd64-ld
and
http://www.mcneil.com/~sean/freebsd/ld
respectively.
Hope this helps,
Sean
------------------------------
Message: 11
Date: Thu, 17 Jun 2004 14:10:14 -0400
From: Joe Marcus Clarke <marcus@marcuscom.com>
Subject: Re: new binutils broken for amd64
To: Sean McNeil <sean@mcneil.com>
Cc: freebsd-current@freebsd.org
Message-ID: <1087495813.883.3.camel@gyros>
Content-Type: text/plain; charset="us-ascii"
On Thu, 2004-06-17 at 14:06, Sean McNeil wrote:
> On Thu, 2004-06-17 at 01:11, David O'Brien wrote:
> > On Wed, Jun 16, 2004 at 10:03:15PM -0700, Sean McNeil wrote:
> > > If I do
> > > make buildworld && make installworld
> > >
> > > it creates an improper ld. If I do
> > >
> > > cd /usr/src/gnu/usr.bin/binutils/ld
> > > make clean
> > > make
> > > make install
> > >
> > > Then I get an ld that works properly.
> >
> > Please send me (or make available) the working and not-working 'ld'
> > binaries.
>
> I just did a new make buildworld installworld with /usr/obj empty. Same
> issue. Just doing a
>
> portupgrade -f glib-2.4.2
>
> will fail with the new linker. Turns out there are two linkers in
> /usr/obj. The one at
>
> /usr/obj/usr/src/amd64/usr/src/gnu/usr.bin/binutils/ld/ld
>
> works
>
> The one at
>
> /usr/obj/usr/src/gnu/usr.bin/binutils/ld/ld
>
> does not.
>
> I have placed a copy of both as:
>
> http://www.mcneil.com/~sean/freebsd/amd64-ld
> and
> http://www.mcneil.com/~sean/freebsd/ld
> respectively.
Just wanted to add, I did the same thing on i386 (i.e. rm -rf /usr/obj/*
then a full world and kernel). By building and installing the linker at
/usr/src/gnu/usr.bin/binutils/ld, I was up and running again. Before
that, I received the same failures Sean is seeing when trying to link
anything.
Joe
>
> Hope this helps,
> Sean
>
>
> _______________________________________________
> 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"
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040617/
b32871fe/attachment-0001.bin
------------------------------
Message: 12
Date: Fri, 18 Jun 2004 02:27:55 +0800
From: Ariff Abdullah <skywizard@MyBSD.org.my>
Subject: Re: boot hangs on 2hours old current
To: Josef El-Rayes <josef@FreeBSD.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040618022755.5a9c8341.skywizard@MyBSD.org.my>
Content-Type: text/plain; charset=US-ASCII
On Thu, 17 Jun 2004 20:02:27 +0200
Josef El-Rayes <josef@FreeBSD.org> wrote:
> when i boot my i386 (recent athlon-xp) machine with standard
> IDE harddisc i get the following output in dmesg
> before the system hangs:
>
> ...
> ...
> [snip]
> ...
> ata1-master: setting PIO0 on VIA 8237 chip
>
atapi cdrom/r/rw on secondary master IDE ?
Try one of these:
1) let the tray open while booting
2) put any cd inside the drive while booting
3) reattach the cdrom to slave, instead of master
--
Ariff Abdullah
MyBSD
http://www.MyBSD.org.my (IPv6/IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)
------------------------------
Message: 13
Date: Thu, 17 Jun 2004 11:37:06 -0700
From: Mayo <mayo@mayo.sk>
Subject: Re: (continued) XFree86 problem?
To: freebsd-current@freebsd.org
Message-ID: <55A84258-C08D-11D8-BC72-000A9597E310@mayo.sk>
Content-Type: text/plain; charset="us-ascii"
xorg seems to be doing a bit better ..
655 root 92 0 320M 120M select 48.7H 21.50% 21.50% Xorg
but that's only after about 1 week of xwindows uptime.
m
On Jun 16, 2004, at 03:55, AK wrote:
>
> This really sucks
> And no one responded so far ;-(
>
> top:
> 615 root 96 0 538M 252M select 7:45 1.07% 1.07%
> XFree86
>
> Cheers,
> AL.
> _______________________________________________
> 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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040617/
584679ac/PGP-0001.bin
------------------------------
Message: 14
Date: Thu, 17 Jun 2004 13:40:07 -0500
From: Craig Boston <craig@xfoil.gank.org>
Subject: Re: (continued) XFree86 problem?
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <200406171340.07828.craig@xfoil.gank.org>
Content-Type: text/plain; charset="iso-8859-1"
On Thursday 17 June 2004 12:50 pm, Brian Fundakowski Feldman wrote:
> At the least, you can get a very distant overview by mounting /proc and
> looking at the /proc/<pid>/map of the X server. It should give you a
> reasonable amount of information on at least whether all your memory is
> being used by anonymous memory, or device mappings, or file mappings...
Sorry for the >80 char columns, but this looked pretty awful wrapped...
Comments inline.
So, assuming that the third column is resident memory measured in pages:
>0x8048000 0x81af000 213 221 0xc6ad6ef4 r-x 2 1 0x4 COW NC vnode /usr/X11R6/bi
n/XFree86
>0x81af000 0x81e0000 13 0 0xc6ad6000 rw- 1 0 0x2184 COW NNC vnode /usr/X11R6/b
in/XFree86
904K for the binary itself, that certainly seems reasonable.
>0x81e0000 0x81f3000 17 0 0xc6e08c60 rw- 1 0 0x2184 COW NNC swap -
>0x81f3000 0x89b0000 611 0 0xc6acd210 rwx 1 0 0x2184 COW NNC swap -
>0x89b0000 0x1050c000 30498 0 0xc7065108 rwx 1 0 0x2184 COW NNC swap -
>0x1050c000 0x1a667000 41239 0 0xc6e51d68 rwx 1 0 0x2184 NCOW NNC swap -
282M of allocated memory, this is where the bulk is (xrestop is reporting
55M total at the moment). It COULD be pixmap cache, but 220M seems
excessive for that.
>0x281af000 0x281cc000 23 0 0xc1042294 r-x 192 90 0x4 COW NC vnode /libexec/ld
-elf.so.1
>0x281cc000 0x281ce000 0 0 0xc6acd294 rw- 1 0 0x2184 COW NC vnode /libexec/ld-
elf.so.1
>0x281ce000 0x281d2000 0 0 0xc6f19dec rw- 1 0 0x2184 COW NNC swap -
>0x281d2000 0x281e3000 0 0 0xc72508c4 rwx 1 0 0x2184 COW NNC swap -
0? Maybe this memory is swapped out... It's only 84k anyway.
>0x281e3000 0x281ed000 10 0 0xc647c6b4 r-x 116 66 0x4 COW NC vnode /lib/libz.s
o.2
>0x281ed000 0x281ee000 1 0 0xc6ad6e70 r-x 1 0 0x2184 COW NC vnode /lib/libz.so
.2
>0x281ee000 0x281f0000 1 0 0xc6adb4a4 rwx 1 0 0x2184 COW NC vnode /lib/libz.so
.2
>0x281f0000 0x28203000 14 0 0xc6478318 r-x 77 40 0x4 COW NC vnode /lib/libm.so
.2
>0x28203000 0x28204000 0 0 0xc6adb7bc r-x 1 0 0x2184 COW NC vnode /lib/libm.so
.2
>0x28204000 0x28208000 1 0 0xc6ad6d68 rwx 1 0 0x2184 COW NC vnode /lib/libm.so
.2
>0x28208000 0x282c5000 141 0 0xc6ad618c r-x 1 0 0x2184 COW NC vnode /lib/libc.
so.5
>0x282c5000 0x282c6000 1 0 0xc6ad6108 r-x 1 0 0x2184 COW NC vnode /lib/libc.so
.5
>0x282c6000 0x282cc000 4 0 0xc855d8c4 rwx 1 0 0x2184 COW NNC vnode /lib/libc.s
o.5
Under a meg of VM space for shared libraries.
>0x282cc000 0x282df000 4 0 0xc8571c60 rwx 1 0 0x2184 COW NNC swap -
>0x282e3000 0x282e7000 3 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
>0x282e7000 0x282f7000 16 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
>0x282f7000 0x282fb000 4 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
>0x28303000 0x28343000 1 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
>0x28343000 0x28353000 0 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
Memory mapped registers for video cards maybe?
>0x28400000 0x29400000 4096 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
No idea what this is for...
>0x29400000 0x2ac00000 6144 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
>0x2ac00000 0x2b400000 2048 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
>0x2b400000 0x2f400000 16384 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
Video memory. The first two are for a dual-head mga card with 32MB of video
RAM -- it's split into 24M for the first and 8M for the second. The other
one is a 64M nv card.
>0x2f400000 0x2fc00000 2048 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
>0x2fc00000 0x30400000 2048 0 0xc6aca840 rwx 16 0 0x184 NCOW NNC device -
Not sure on this either.
>0x30400000 0x30460000 96 0 0xc6c908c4 rwx 3 0 0x194 NCOW NNC default -
>0x30460000 0x304c6000 101 0 0xc8413630 rwx 1 0 0x2184 NCOW NNC default -
>0x304c6000 0x30526000 96 0 0xc6e9bd68 rwx 3 0 0x194 NCOW NNC default -
>0x30526000 0x30586000 96 0 0xc7a57b58 rwx 3 0 0x194 NCOW NNC default -
>0x30586000 0x305e6000 96 0 0xc72157bc rwx 3 0 0x194 NCOW NNC default -
>0x305e6000 0x30646000 96 0 0xc6f05a50 rwx 3 0 0x194 NCOW NNC default -
>0x30646000 0x307a1000 347 0 0xc7264d68 r-x 3 0 0x194 NCOW NNC default -
>0x307a1000 0x31539000 865 0 0xc7110a50 r-x 4 0 0x194 NCOW NNC default -
>0x31539000 0x31599000 96 0 0xc8414ce4 rwx 3 0 0x194 NCOW NNC default -
>0x31599000 0x315f9000 96 0 0xc83fcad4 rwx 3 0 0x194 NCOW NNC default -
>0xbfb80000 0xbfba0000 12 0 0xc702ca50 rwx 1 0 0x2184 NCOW NNC default -
What does "default" mean? Whatever it is accounts for only about 18M.
>0xbfba0000 0xbfbe0000 64 0 0xc6f73ef4 rwx 1 0 0x2184 COW NNC swap -
>0xbfbe0000 0xbfc00000 32 0 0xc6d5d4a4 rwx 1 0 0x2184 COW NNC swap -
Just a tiny bit more way out here.
I suppose the real test would be to try to debug the XFree86 process and track
where it's getting allocated. That's one of the pieces of code (along with
wine and gcc) that I'm scared of though :)
Anyway, my case isn't so bad -- I'm okay with just restarting X once a week.
So don't expend a ton of effort on my behalf :) AK's report looks more
severe though, 538M in only 7 minutes of CPU time... It would be interesting
to see the process map from that system to determine how much is video RAM
and how much is just swapped out...
Craig
------------------------------
Message: 15
Date: Thu, 17 Jun 2004 14:42:49 -0400
From: Don Bowman <don@sandvine.com>
Subject: RE: ** HEADS UP ** GDB detached from the 5-CURRENT build
To: "'freebsd-current@freebsd.org'" <freebsd-current@freebsd.org>
Message-ID:
<FE045D4D9F7AED4CBFF1B3B813C85337051D900E@mail.sandvine.com>
Content-Type: text/plain; charset="iso-8859-1"
From: David O'Brien [mailto:obrien@freebsd.org]
> On Wed, Jun 16, 2004 at 03:38:20PM -0400, Brian Feldman wrote:
> > On Tue, Jun 15, 2004 at 10:23:31PM -0700, David O'Brien wrote:
> > > I have disconnected (i.e., disabled) `gdb` from 'make
> world' due to the
> > > impending binutils 2.15 import. GDB 5.12 cannot consume
> the 2.15 bfd and
> > > libiberty.
> > >
> > > For now GDB users will have to use the devel/gdb6 port.
> There will be an
> > > import of GDB 6.x into the /usr/src tree before 5.3-RELEASE.
> >
> > The distfiles are gone for the snapshot currently specified
> in the gdb6
> > port.
>
> You need to CVSup more often:
>
> obrien 2004-06-14 08:33:19 UTC
>
> FreeBSD ports repository
> Modified files:
> devel/gdb6 Makefile distinfo
> Log:
> Update to the 2003-05-25 snapshot.
>
> Bento should also have older ones. You're also capable of bumping the
> snapshot date and updating the port. :-)
I think the 2004-05-25 snapshot is no longer present. I'm
trying with 20040617 instead.
#SNAPDATE= 2004-05-25
SNAPDATE= 20040617
------------------------------
Message: 16
Date: Thu, 17 Jun 2004 14:45:18 -0400
From: Mike Tancsa <mike@sentex.net>
Subject: Re: Realtek RT8139 (onboard) - failed to receive packet in
loopback mode
To: Andreas Braukmann <braukmann@tse-online.de>,
freebsd-current@freebsd.org
Message-ID: <6.1.1.1.0.20040617130800.113cf920@64.7.153.2>
Content-Type: text/plain; charset="us-ascii"; format=flowed
At 12:29 PM 17/06/2004, Andreas Braukmann wrote:
>Hi there,
>
>I'm using a bunch of Portwell SBCs with five onboard Realtek
>8139C+ NICs. Currently they're running 5.0 kernels from around
>April, 2003 and the NICs are driven by rl(4). Since then the
>8139C+ was moved to re(4).
>
>re(4) doesn't like the chips, though.
>
>pciconf -lv output:
>
>re0@pci0:9:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x20
>hdr=0x00
> vendor = 'Realtek Semiconductor'
> device = 'RT8139 (A/B/C/813x/C+) Fast Ethernet Adapter'
> class = network
> subclass = ethernet
Interesting. I have come across 2 motherboards now that have onboard
Realteks of some sort, similar to what you see. In the PCI conf below, rl0
is the onboard and rl1 a PCI version.
rl0@pci1:4:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10
hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RT8139 (A/B/C/813x/C+) Fast Ethernet Adapter'
class = network
subclass = ethernet
rl1@pci1:5:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10
hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RT8139 (A/B/C/813x/C+) Fast Ethernet Adapter'
class = network
subclass = ethernet
Yet, one works as expected, the other half works in that the switch sees a
lot of FCS errors as if there were a duplex mismatch, despite both sides
being autoneg. (I tried various manual configs as well on both sides
without change). This is on stable, but the same problem was happening on
CURRENT when I tried to see if the re driver would see it, it did not. The
only difference I see from your NIC and mine are the revs, yet the onboards
on the 2 motherboards I have refuse to work without generating lots of errors.
---Mike
------------------------------
Message: 17
Date: Thu, 17 Jun 2004 15:03:03 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: HA: Possible Threading problem with -CURRENT / MySQL?
To: Robert Watson <rwatson@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <200406171503.03031.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Thursday 17 June 2004 09:07 am, Robert Watson wrote:
> On Thu, 17 Jun 2004 astesin@ukrtelecom.net wrote:
> > > the HTT disabling sysctl/tunable with ULE results in a hang.
> >
> > It's not to be news maybe, anyway I confirm this.
>
> Ditto. Ran into this yesterday while doing benchmarking. Jeff mentioned
> to me last night that this was something he thought John Baldwin was going
> to fix, but I'm not sure if John knows that.
Oh, hrmm. I can put it on my todo list.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 18
Date: Thu, 17 Jun 2004 23:27:20 +0400
From: AK <lesha@intercaf.ru>
Subject: Re: (continued) XFree86 problem?
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <200406172327.20711.lesha@intercaf.ru>
Content-Type: text/plain; charset="iso-8859-1"
On Thursday 17 June 2004 22:40, you wrote:
> Anyway, my case isn't so bad -- I'm okay with just restarting X once a
> week. So don't expend a ton of effort on my behalf :) AK's report looks
> more severe though, 538M in only 7 minutes of CPU time... It would be
> interesting to see the process map from that system to determine how much
> is video RAM and how much is just swapped out...
Well, currently it is *just* 170+ Megs (2 hours uptime)
0x8048000 0x81bd000 369 411 0xc226f6b4 r-x 2 1 0x0 COW NC
vnode /usr/X11R6/bin/XFree86
0x81bd000 0x81ee000 23 0 0xc22704a4 rw- 1 0 0x2180 COW NNC
vnode /usr/X11R6/bin/XFree86
0x81ee000 0x8201000 18 0 0xc22f46b4 rw- 1 0 0x2180 COW NNC default -
0x8201000 0x8a9a000 2201 0 0xc22ef5ac rwx 1 0 0x2180 COW NNC default -
0x8a9a000 0x8c68000 462 0 0xc22ef4a4 rwx 1 0 0x2180 COW NNC default -
0x8c68000 0xaa9c000 7732 0 0xc2390948 rwx 1 0 0x2180 NCOW NNC default -
0x281bd000 0x281d9000 28 0 0xc1041420 r-x 112 53 0x4 COW NC
vnode /libexec/ld-elf.so.1
0x281d9000 0x281da000 1 0 0xc226fc60 rw- 1 0 0x2180 COW NC
vnode /libexec/ld-elf.so.1
0x281da000 0x281df000 5 0 0xc22ef6b4 rw- 1 0 0x2180 COW NNC default -
0x281df000 0x281f0000 10 0 0xc226fdec rwx 1 0 0x2180 COW NNC default -
0x281f0000 0x281fa000 10 0 0xc1dc16b4 r-x 47 20 0x0 COW NC
vnode /lib/libz.so.2
0x281fa000 0x281fb000 1 0 0xc22386b4 r-x 1 0 0x2180 COW NC
vnode /lib/libz.so.2
0x281fb000 0x281fd000 2 0 0xc2238840 rwx 1 0 0x2180 COW NC
vnode /lib/libz.so.2
0x281fd000 0x28211000 20 0 0xc1cfea50 r-x 50 22 0x0 COW NC
vnode /lib/libm.so.2
0x28211000 0x28212000 1 0 0xc226fb58 r-x 1 0 0x2180 COW NC
vnode /lib/libm.so.2
0x28212000 0x28216000 4 0 0xc227039c rwx 1 0 0x2180 COW NNC
vnode /lib/libm.so.2
0x28216000 0x282cb000 159 0 0xc226f840 r-x 1 0 0x2180 COW NC
vnode /lib/libc.so.5
0x282cb000 0x282cc000 1 0 0xc2268b58 r-x 1 0 0x2180 COW NC
vnode /lib/libc.so.5
0x282cc000 0x282d2000 6 0 0xc22f5b58 rwx 1 0 0x2180 COW NNC
vnode /lib/libc.so.5
0x282d2000 0x282e5000 8 0 0xc22ef18c rwx 1 0 0x2180 COW NNC default -
0x282e9000 0x28349000 18 0 0xc2270bdc rwx 4 0 0x180 NCOW NNC device -
0x28349000 0x283c9000 5 0 0xc2270bdc rwx 4 0 0x180 NCOW NNC device -
0x283c9000 0x283d9000 16 0 0xc2270bdc rwx 4 0 0x180 NCOW NNC device -
0x283d9000 0x283e4000 11 0 0xc1e466b4 rwx 1 0 0x2180 NCOW NNC default -
0x28400000 0x30400000 32768 0 0xc2270bdc rwx 4 0 0x180 NCOW NNC device -
> 128M for video card memory? This card got only 64M
> (borrows from sysem memory)
0xbfbe0000 0xbfc00000 19 0 0xc22f5420 rwx 1 0 0x2180 COW NNC default -
I will send another report when I will compile smth. tomorrow
Cheers,
AK
------------------------------
Message: 19
Date: Thu, 17 Jun 2004 15:32:03 -0400
From: Don Bowman <don@sandvine.com>
Subject: STI, HLT in acpi_cpu_idle_c1
To: "'current@freebsd.org'" <current@freebsd.org>
Message-ID:
<FE045D4D9F7AED4CBFF1B3B813C85337051D900F@mail.sandvine.com>
Content-Type: text/plain; charset="iso-8859-1"
in the intel instruction manual, the effect
of STI is that interrupts are enabled
*after* the next instruction.
ie:
sti
ret
...
the return is still run with interrupts disabled
(if they were prior to the STI).
In acpi_cpu_idle_c1, it does:
sti
hlt
shouldn't there be a NOP in there so that interrupts
are guaranteed on?
We have traced down a lockup of the system with
a TAP emulator, and found that three processors
are in acpi_cpu_idle with bit 9 of EFLAGS clear,
indicating interrupts are disabled. The fourth
processor is spinning with nothing to do (since
hardclock etc don't come to it).
Suggestions? Am i off base on the sti/hlt? Is
there another problem that i might be running into?
--don
------------------------------
Message: 20
Date: Thu, 17 Jun 2004 15:19:07 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Possible Threading problem with -CURRENT / MySQL?
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: mike <mike@mike2k.com>
Message-ID:
<Pine.NEB.3.96L.1040617151221.36104I-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Thu, 17 Jun 2004, Jon Noack wrote:
> > ULE seems to do a very good job of scheduling interactive tasks over
> > other workloads, resulting in a very "snappy" feel on my boxes,
> > despite heavy CPU load from background builds, etc. The workload I
> > looked at had no real "interactive" component, although it was a
> > latency-centric RPC test, so timely hand-off as well as high
> > throughput would be important. I know that Jeff's measurement work
> > on ULE had a substantial focus on deadlines -- whether or not ULE was
> > timely in scheduling tasks, etc, and that he demonstrated that it was
> > much stronger than most other available schedulers in this area.
>
> Well, I switched to 4BSD and noticed this right away. I occasionally
> get sound hiccups under heavy i/o with ULE [1], but with 4BSD it's a bit
> ridiculous. There's a PR open about it (can't remember which off the
> top of my head), but sound will skip and slow down (play at half speed
> or slower). I know the sound locking is not all it should be, so this
> may not be a representative test. Regardless, my workstations are back
> on ULE...
Hrm. So, I'm not really a scheduler guy, but I have some ideas about how
to investigate what's going on. If you feel like playing with kernel
tracing facilities, there are some really neat things you can do with
ktr(4). It allows you took hook context switch and interrupt delivery
events and dump a trace to userspace.
One possible cause of the symptoms you're seeing is poor interrupt
handling response time -- possibly a failure to schedule the ithread in a
timely manner. It would be quite interesting to compare the latency in
scheduling (and running) the ithread across ULE and 4BSD and see how well
each is managing to do in getting it running quickly. I'm not sure
there's a tutorial on how to get KTR(4) running -- I found the man page
helpful, but a little confusing. What you'll want to do, assuming you're
willing to get into this, is turn on KTR tracing with KTR_INTR and
KTR_PROC. You'll need to set the flags in the kernel compile, and then
set them using a sysctl. You can use ktrdump to dump a record trace --
I'd use a number of flags present to add timestamps, cpu numbers if SMP,
etc. With some post-processing, it should be possible to generate a
distribution of "interrupt time" to "running interrupt handler".
It would be useful to demonstrate to oneself that ithreads are running
quickly, preempting things they need to, etc.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Senior Research Scientist, McAfee Research
------------------------------
Message: 21
Date: Thu, 17 Jun 2004 21:37:12 +0200
From: Josef El-Rayes <josef@FreeBSD.org>
Subject: Re: boot hangs on 2hours old current
To: Ariff Abdullah <skywizard@MyBSD.org.my>
Cc: freebsd-current@freebsd.org
Message-ID: <20040617193712.GA47495@jenny.daemon.li>
Content-Type: text/plain; charset="us-ascii"
Ariff Abdullah <skywizard@MyBSD.org.my> wrote:
> > ...
> > [snip]
> > ...
> > ata1-master: setting PIO0 on VIA 8237 chip
> >
>
> atapi cdrom/r/rw on secondary master IDE ?
dvdrom on secondary master, ide, yes.
> Try one of these:
> 2) put any cd inside the drive while booting
this helped. strange enough..
thanks for your hint.
-josef
--
Josef El-Rayes (__)
Email: josef@daemon.li \\\'',)
Web: http://daemon.li/ \/ \ ^
FreeBSD: josef@FreeBSD.org .\._/_)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040617/
19d37fe5/attachment-0001.bin
------------------------------
Message: 22
Date: Thu, 17 Jun 2004 20:38:36 +0100
From: Bruce M Simpson <bms@spc.org>
Subject: Re: Project Evil and a PCI DSL modem
To: Samuel Clements <sclements@linkline.com>
Cc: current@freebsd.org
Message-ID: <20040617193836.GE37877@empiric.dek.spc.org>
Content-Type: text/plain; charset=us-ascii
On Wed, Jun 16, 2004 at 01:39:40PM -0700, Samuel Clements wrote:
> So, I may be way off here, but knowing that the 3com 3CP3617B (ADSL PCI
> Modem) isn't supported natively under FreeBSD, is there a chance it would be
> supported with NDISulator?
Before Bill steps in and shouts at you, I'd say: absolutely not. ATM
devices will probably never be supported under Project Evil.
Benno was working on some native support for the Pulsars, though, and
I have partially working code for the SpeedStream 30x0 cards in my
Perforce branch.
BMS
------------------------------
Message: 23
Date: Thu, 17 Jun 2004 12:39:05 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: Don Bowman <don@sandvine.com>
Cc: "'current@freebsd.org'" <current@freebsd.org>
Message-ID:
<Pine.BSF.4.21.0406171235210.77179-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Thu, 17 Jun 2004, Don Bowman wrote:
>
> in the intel instruction manual, the effect
> of STI is that interrupts are enabled
> *after* the next instruction.
>
> ie:
>
> sti
> ret
> ...
>
> the return is still run with interrupts disabled
> (if they were prior to the STI).
>
> In acpi_cpu_idle_c1, it does:
>
> sti
> hlt
>
> shouldn't there be a NOP in there so that interrupts
> are guaranteed on?
I think your reading of it is right..
but I also think that if it was ALWAYS right we'd see processors
go idle and never wake up again....
Since this doesn't seem to happen, maybe ther eis a bug in the emulator?
We can always add a nop I guess and see what happens..
>
> We have traced down a lockup of the system with
> a TAP emulator, and found that three processors
> are in acpi_cpu_idle with bit 9 of EFLAGS clear,
> indicating interrupts are disabled. The fourth
> processor is spinning with nothing to do (since
> hardclock etc don't come to it).
>
> Suggestions? Am i off base on the sti/hlt? Is
> there another problem that i might be running into?
>
> --don
> _______________________________________________
> 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: 24
Date: Thu, 17 Jun 2004 15:44:16 -0400
From: Don Bowman <don@sandvine.com>
Subject: RE: STI, HLT in acpi_cpu_idle_c1
To: 'Julian Elischer' <julian@elischer.org>, Don Bowman
<don@sandvine.com>
Cc: "'current@freebsd.org'" <current@freebsd.org>
Message-ID:
<FE045D4D9F7AED4CBFF1B3B813C85337051D9010@mail.sandvine.com>
Content-Type: text/plain; charset="iso-8859-1"
From: Julian Elischer [mailto:julian@elischer.org]
> On Thu, 17 Jun 2004, Don Bowman wrote:
>
> >
> > in the intel instruction manual, the effect
> > of STI is that interrupts are enabled
> > *after* the next instruction.
> >
> > ie:
> >
> > sti
> > ret
> > ...
> >
> > the return is still run with interrupts disabled
> > (if they were prior to the STI).
> >
> > In acpi_cpu_idle_c1, it does:
> >
> > sti
> > hlt
> >
> > shouldn't there be a NOP in there so that interrupts
> > are guaranteed on?
>
> I think your reading of it is right..
> but I also think that if it was ALWAYS right we'd see processors
> go idle and never wake up again....
> Since this doesn't seem to happen, maybe ther eis a bug in
> the emulator?
My theory is there are two code paths to get there,
1 with interrupts enabled, and one without. The 'STI'
seems to be there as a form of protection for
the 2nd case.
I'm adding the nop and restarting the test.
The emulator is correct, in the normal case it shows
interrupts enabled on entry to that function.
------------------------------
Message: 25
Date: Thu, 17 Jun 2004 21:57:06 +0200
From: Tobias Aigner <lists@mangosuechtig.org>
Subject: Re: Sound problems during load
To: freebsd-current@freebsd.org
Message-ID: <20040617215706.1a8b5dce.lists@mangosuechtig.org>
Content-Type: text/plain; charset=US-ASCII
On Thu, 17 Jun 2004 10:09:41 -0700 (PDT)
Doug White <dwhite@gumbysoft.com> wrote:
> Are WITNESS and INVARIANTS enabled?
Hi, no, none of both is enabled.
I also experienced that my mouse cursor slows down and starting to lag
under I/O load.
Bye
--
Tobias Aigner
------------------------------
Message: 26
Date: Thu, 17 Jun 2004 20:04:27 +0000 (GMT)
From: wpaul@FreeBSD.ORG (Bill Paul)
Subject: Re: Re: Realtek RT8139 (onboard) - failed to receive packet
in loopback mode
To: mike@sentex.net (Mike Tancsa)
Cc: freebsd-current@freebsd.org
Message-ID: <20040617200427.840D516A4CF@hub.freebsd.org>
Content-Type: text/plain; charset=US-ASCII
> >
> >re0@pci0:9:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x20
^^^^
Rev 0x20 == 8139C+
> Interesting. I have come across 2 motherboards now that have onboard
> Realteks of some sort, similar to what you see.
NO! NOT SIMILAR TO WHAT HE SEES!
> rl0@pci1:4:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10
^^^^
Rev 0x10 == plain 8139 (without the plus)
You do _NOT_ have the same chip. Stop trying to relate your problems
to his. They have nothing to do with each other. Your attempt to
find similarities where none exist is counter-productive. Knock it
off.
> Yet, one works as expected, the other half works in that the switch sees a
> lot of FCS errors as if there were a duplex mismatch, despite both sides
> being autoneg. (I tried various manual configs as well on both sides
> without change). This is on stable, but the same problem was happening on
> CURRENT when I tried to see if the re driver would see it, it did not. The
> only difference I see from your NIC and mine are the revs, yet the onboards
> on the 2 motherboards I have refuse to work without generating lots of error
s.
I don't know what your problem is, and you have not provided enough
data to figure it out. (Just how do you know there are many FCS errors
anyway. How did you meature them? Did you test performance too? If
so, how did you do that? What switch do you have?)
-Bill
--
=============================================================================
-Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu
wpaul@windriver.com | Wind River Systems
=============================================================================
<adamw> you're just BEGGING to face the moose
=============================================================================
------------------------------
Message: 27
Date: Thu, 17 Jun 2004 13:13:01 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: Julian Elischer <julian@elischer.org>
Cc: "'current@freebsd.org'" <current@freebsd.org>
Message-ID: <200406172013.i5HKD1fE009398@apollo.backplane.com>
:> In acpi_cpu_idle_c1, it does:
:>
:> sti
:> hlt
:>
:> shouldn't there be a NOP in there so that interrupts
:> are guaranteed on?
:
:I think your reading of it is right..
:but I also think that if it was ALWAYS right we'd see processors
:go idle and never wake up again....
:Since this doesn't seem to happen, maybe ther eis a bug in the emulator?
:
:We can always add a nop I guess and see what happens..
No no no no!
The whole point is for interrupts to be disabled when the HLT instruction
*begins* execution (they're only disabled for one cycle).
If you do: sti; nop; hlt then an interrupt may occur before the HLT
instruction is executed. The HLT instruction is then executed even though
the interrupt might have scheduled something. In otherwords, you will
wind up in a halted state with schedulable threads pending.
When you 'STI; HLT' the halt is entered atomicaly while interrupts
are still disabled, so no interrupt can squeeze. Then interrupts will
be enabled and HLT will resume when the next interrupt occurs.
CLI;
<check to see if any threads can be scheduled>
YES-> RETURN
NO (STI;HLT).
-Matt
------------------------------
Message: 28
Date: Thu, 17 Jun 2004 13:19:05 -0700
From: "Samuel Clements" <sclements@linkline.com>
Subject: RE: Project Evil and a PCI DSL modem
To: "'Bruce M Simpson'" <bms@spc.org>
Cc: current@freebsd.org
Message-ID: <20040617201902.D6648139@smtp2.linkline.com>
Content-Type: text/plain; charset="us-ascii"
> On Wed, Jun 16, 2004 at 01:39:40PM -0700, Samuel Clements wrote:
> > So, I may be way off here, but knowing that the 3com 3CP3617B (ADSL PCI
> > Modem) isn't supported natively under FreeBSD, is there a chance it
> would be
> > supported with NDISulator?
>
> Before Bill steps in and shouts at you, I'd say: absolutely not. ATM
> devices will probably never be supported under Project Evil.
>
> Benno was working on some native support for the Pulsars, though, and
> I have partially working code for the SpeedStream 30x0 cards in my
> Perforce branch.
Well thank you for interceding. :) Could anyone find a development home for
the card I have? I'd be willing to donate it if someone wants to work on it.
-Sam
------------------------------
Message: 29
Date: Thu, 17 Jun 2004 16:20:12 -0400
From: Don Bowman <don@sandvine.com>
Subject: RE: STI, HLT in acpi_cpu_idle_c1
To: 'Matthew Dillon' <dillon@apollo.backplane.com>, Julian Elischer
<julian@elischer.org>
Cc: "'current@freebsd.org'" <current@freebsd.org>
Message-ID:
<FE045D4D9F7AED4CBFF1B3B813C85337051D9012@mail.sandvine.com>
Content-Type: text/plain; charset="iso-8859-1"
From: Matthew Dillon [mailto:dillon@apollo.backplane.com]
> :> In acpi_cpu_idle_c1, it does:
> :>
> :> sti
> :> hlt
> :>
> :> shouldn't there be a NOP in there so that interrupts
> :> are guaranteed on?
> :
> :I think your reading of it is right..
> :but I also think that if it was ALWAYS right we'd see processors
> :go idle and never wake up again....
> :Since this doesn't seem to happen, maybe ther eis a bug in
> the emulator?
> :
> :We can always add a nop I guess and see what happens..
>
> No no no no!
>
> The whole point is for interrupts to be disabled when the
> HLT instruction
> *begins* execution (they're only disabled for one cycle).
>
Ummm, doesn't STI *enable* interrupts?
so you're saying the point is that on entry to
acpi_cpu_idle_c1, that the caller has done a CLI?
And that the STI then enables interrupts during the HLT
instruction?
But if this is the case, my jtag emulator shows
me that i'm executing 'HLT' and bit 9 of eflags
is 0, which is why i don't come out.
Is there a possible race condition on an HTT cpu
here? I run into this problem rarely, more frequently
now with a good test, and the box is locked up
solid. The emulator shows me that only 1 processor
is still alive, and the others are in the _c1 idle.
The processor that's alive has no interrupts routed
to it, and it has nothing to do, so it keeps spinning.
The system never wakes up, the other 3 stay in _c1,
and have interrupts off.
Suggestions on how i might be analyzing this wrong?
--don
------------------------------
Message: 30
Date: Thu, 17 Jun 2004 20:25:59 +0000 (GMT)
From: wpaul@FreeBSD.ORG (Bill Paul)
Subject: Re: Realtek RT8139 (onboard) - failed to receive packet in
loopback mode
To: braukmann@tse-online.de (Andreas Braukmann)
Cc: freebsd-current@freebsd.org
Message-ID: <20040617202559.1904C16A4CF@hub.freebsd.org>
Content-Type: text/plain; charset=US-ASCII
> Hi there,
>
> I'm using a bunch of Portwell SBCs with five onboard Realtek
> 8139C+ NICs. Currently they're running 5.0 kernels from around
> April, 2003 and the NICs are driven by rl(4). Since then the
> 8139C+ was moved to re(4).
>
> re(4) doesn't like the chips, though.
It likes the chips just fine. If it didn't, I wouldn't have checked it
in. :P
> re0: <RealTek 8139C+ 10/100BaseTX> port 0xdc00-0xdcff mem 0xe3400000-0xe3400
0ff irq 11 at device 9.0 on pci0
> re0: Ethernet address: 00:90:fb:04:1b:31
> re0: diagnostic failed, failed to receive packet in loopback mode
> re0: attach aborted due to hardware diag failure
> device_attach: re0 attach returned 5
>
>
> It seems that the 8169-specific hardware diagnostic (re_diag(sc))
> should only carried out for chips being identified as 8169 based.
No, it works with the 8139C+ too (though it's not strictly necessary:
the hardware bug that the re_diag() routine was meant to find is only
present on some 8169 boards, but running the DMA test on all boards
doesn't hurt).
[...]
> I see no ill effects so far.
I discovered some problems with the diagnostic routine on the C+
chip recently, but it only manifested on this one really old and
crufty P166 machine that I have (and then only intermittently).
It turns out that the link state has some effect on the behavior
of loopback mode (even though logically, it shouldn't). That is,
sometimes the test will fail if the network cable is unplugged.
I made some changes to re_diag() to fix this, which I can send you
once I get home from the office.
-Bill
--
=============================================================================
-Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu
wpaul@windriver.com | Wind River Systems
=============================================================================
<adamw> you're just BEGGING to face the moose
=============================================================================
------------------------------
Message: 31
Date: Thu, 17 Jun 2004 13:27:13 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: RE: STI, HLT in acpi_cpu_idle_c1
To: Don Bowman <don@sandvine.com>
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <200406172027.i5HKRDMC009469@apollo.backplane.com>
:>
:> The whole point is for interrupts to be disabled when the
:> HLT instruction
:> *begins* execution (they're only disabled for one cycle).
:>
:
:Ummm, doesn't STI *enable* interrupts?
:
:so you're saying the point is that on entry to
:acpi_cpu_idle_c1, that the caller has done a CLI?
:And that the STI then enables interrupts during the HLT
:instruction?
Ok, I'll try to explain it better.
CLI - disable interrupts
STI - enable interrupts
HLT - halt the cpu until an interrupt occurs. If interrupts are disabled,
this will halt the cpu until an NMI occurs.
Now, there's a problem... the problem is that if you enable interrupts
and halt (to wait for the next interrupt), then there is a one-instruction
window where an interrupt might occur *BEFORE* you HLT. This interrupt
may do something (such as schedule a thread) that means that you really
don't want to halt now waiting for a *SECOND* interrupt to occur.
In order to deal with this problem, Intel specified that the 'STI ; HLT'
sequence of instructions will *GUARENTEE* that interrupts will remain
disabled for one additional cycle, which gives HLT a chance to enter into
its wait state. An interrupt occuring in between the STI and HLT would
therefore cause the HLT to resume.
In later cpu's Intel and Amd both guarentee the atomicy of the
STI; HLT instruction combination. No interrupt will be allowed to
take effect inbetween the instructions, no trap will occur. No NMI
will occur... nothing (either that or, for an NMI, the cpu will fixup
the interrupt flag and set the restart point to the STI rather then the
HLT).
For all intents and purposes you should treat 'STI; HLT' as a single
instruction.
If you stick a NOP in there you will screw everything up... it will make
it possible for an interrupt to occur inbetween the STI and HLT, *BEFORE*
the HLT enters its wait state. When the interrupt finishes HLT will
enter its wait state and not resume again until a *SECOND* interrupt
occurs, which is not what you want because you might be in a situation
(such as during booting) where no other interrupt will occur or where
most other interrupt sources might be disabled or non-functional
(e.g. ACPI sleep).
So, if the emulator is not coming out of the HLT it's a bug in the
emulator. The STI; HLT sequence is correct.
-Matt
------------------------------
Message: 32
Date: Thu, 17 Jun 2004 16:36:51 -0400
From: Don Bowman <don@sandvine.com>
Subject: RE: STI, HLT in acpi_cpu_idle_c1
To: 'Matthew Dillon' <dillon@apollo.backplane.com>, Don Bowman
<don@sandvine.com>
Cc: Julian Elischer <julian@elischer.org>
Message-ID:
<FE045D4D9F7AED4CBFF1B3B813C85337051D9014@mail.sandvine.com>
Content-Type: text/plain; charset="iso-8859-1"
From: Matthew Dillon [mailto:dillon@apollo.backplane.com]
...
OK, i understand.
>
> So, if the emulator is not coming out of the HLT it's a
> bug in the
> emulator. The STI; HLT sequence is correct.
The emulator is doing the right thing. It breaks the
processors out, and shows all the registers etc.
Its transparent, done via jtag (American Arium). In the
lockup case i have, 3 processors are executing HLT, and
EFLAGS bit 9 is clear. Thus I was wondering, it doesn't
seem obvious as to where in the pipeline the STI will take
affect. Is it at the end of the HLT instruction? Is this 'end'
when an interrupt occurs? The manual just says "after
the next instruction". Does that mean the instruction
following needs to start? Does the halt instruction
'end' when the processor goes to sleep, or when the
processor wakes up? What should I expect to see in
bit 9 of eflags when i'm executing HLT?
I can't otherwise find how my system is behaving.
The processors will service an NMI in this mode,
as i would expect, but will not service any normal
interrupts (serial, lan, hardclock). The sole
'awake' processor doesn't have any physical interrupts
routed to it, and the ones that do have the physical
interrupts have interrupts disabled.
I added a hack into ddb so that I could NMI in
in this case without hanging, and it finds that the IPI
it sends to the other processors doesn't get answered: they
don't stop. So I have reverted to the hardware ICE
in order to find what is going on.
--don
------------------------------
Message: 33
Date: Thu, 17 Jun 2004 13:46:35 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: RE: STI, HLT in acpi_cpu_idle_c1
To: Don Bowman <don@sandvine.com>
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <200406172046.i5HKkZMJ009568@apollo.backplane.com>
:From: Matthew Dillon [mailto:dillon@apollo.backplane.com]
: ...
:OK, i understand.
:
:>
:> So, if the emulator is not coming out of the HLT it's a
:> bug in the
:> emulator. The STI; HLT sequence is correct.
:
:The emulator is doing the right thing. It breaks the
:processors out, and shows all the registers etc.
:Its transparent, done via jtag (American Arium). In the
:lockup case i have, 3 processors are executing HLT, and
:EFLAGS bit 9 is clear. Thus I was wondering, it doesn't
:seem obvious as to where in the pipeline the STI will take
:affect. Is it at the end of the HLT instruction? Is this 'end'
:when an interrupt occurs? The manual just says "after
:the next instruction". Does that mean the instruction
:following needs to start? Does the halt instruction
:'end' when the processor goes to sleep, or when the
:processor wakes up? What should I expect to see in
:bit 9 of eflags when i'm executing HLT?
:
:I can't otherwise find how my system is behaving.
:The processors will service an NMI in this mode,
It takes effect after HLT enters its wait state, which occurs
near the beginnnig of HLT's execution.
i.e. the idea is that normal interrupts are supposed to be able to
cause the HLT to finish and for normal execution to resume, so the
STI obviously has to take effect just after HLT enters its wait state.
time: STI HLT (HLT resumes)
interrupts: DDDDDDDDDDDDDDDDDEEEEEEE
interrupt: ----PPPPPPPPPPPPPPPPPPPP
time: STI HLT (HLT resumes)
interrupts: DDDDDDDDDDDDDDDDDEEEEE.........EEEEEEEEEEEE
interrupt: ----------------------.........------PPPPPP
^
note overlap into the HLT instruction. The
STI/HLT sequence performs an interlock so no
interrupt can occur prior to HLT entering its
wait state.
D = interrupts disabled
E = interrupts enabled
P = interrupt pending
:as i would expect, but will not service any normal
:interrupts (serial, lan, hardclock). The sole
:'awake' processor doesn't have any physical interrupts
:routed to it, and the ones that do have the physical
:interrupts have interrupts disabled.
It is unlikely that the emulator is at fault, though I suppose it is
a possibility. It is more likely that there are simply no normal
interrupts being made pending and so your HLT is never waking up.
If inserting a NOP makes things magically work, then the emulator is
broken and needs to be fixed. You can't have a NOP in there for real
because you blow up the interlock.
-Matt
------------------------------
Message: 34
Date: Thu, 17 Jun 2004 16:54:48 -0400
From: Mike Tancsa <mike@sentex.net>
Subject: Re: Re: Realtek RT8139 (onboard) - failed to receive packet
in loopback mode
To: wpaul@FreeBSD.ORG (Bill Paul)
Cc: freebsd-current@FreeBSD.ORG
Message-ID: <6.1.1.1.0.20040617162437.0780a118@64.7.153.2>
Content-Type: text/plain; charset="us-ascii"; format=flowed
At 04:04 PM 17/06/2004, Bill Paul wrote:
>NO! NOT SIMILAR TO WHAT HE SEES!
OK, I am *WRONG*! SORRY!
>I don't know what your problem is, and you have not provided enough
>data to figure it out. (Just how do you know there are many FCS errors
>anyway.
Looking at the switch port statistics. The Nortels/Bays have the following
info per port (this is not the port as it was already cleared..)
Packets: 41910550 Packets:
57623452
Multicasts: 15 Multicasts:
4679890
Broadcasts: 113405 Broadcasts:
2775354
Total Octets: 2935490261 Total
Octets: 142434347
Lost Packets: 0 Lost
Packets: 0
FCS
Errors: 0 Collisions: 0
Frame Errors: 0 Single
Collisions: 0
Undersized Packets: 0 Multiple
Collisions: 0
Oversized Packets: 0 Excessive
Collisions: 0
Packets 64 bytes: 22042474 Packets 64
bytes: 13026195
65-127 bytes 7534680 65-127
bytes 15818483
128-255 bytes 723547 128-255
bytes 4809496
256-511 bytes 551054 256-511
bytes 412113
512-1023 bytes 3792979 512-1023
bytes 248253
1024-1518 bytes 7265825 1024-1518
bytes 23308940
Filtered Packets: 0 Deferred
Packets: 0
Flooded Packets: 1 Late
Collisions: 0
The FCS errors were steadily increasing.... And yes, we tried new cables
and new ports.
> How did you meature them?
Simple ftp http gets... It was quite evident soon as I logged in via ssh
that something was not right. The ftp from a host on a connected network
is slow and bursty.
>Did you test performance too?
Yes, it was crap... About the same sort of performance as one would expect
if there were a duplex mismatch, yet we would see the same performance
where it was auto-auto, 100full-100full 100half-100half... Barely a Mb/s on
a directly connected host off the switch.
>If
>so, how did you do that? What switch do you have?)
Noticed first on a Bay Centillion 100 and repeated on a Baystack 350T.
The units are scheduled to go back to the supplier as we swapped them out
for a slightly more expensive MB with onboard fxps. I can dig one of them
out if you want more information before I send it back.
---Mike
------------------------------
_______________________________________________
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 65, Issue 15
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[37m�� ��源:������� bbs.ustc.edu.cn��[FROM: 210.45.72.234][m