* Re: Kernel debugging??
1999-11-17 21:08 ` Geert Uytterhoeven
@ 1999-11-17 23:48 ` Martin Costabel
1999-11-18 9:13 ` Martin Costabel
1999-11-18 0:35 ` Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??] phandel
` (2 subsequent siblings)
3 siblings, 1 reply; 23+ messages in thread
From: Martin Costabel @ 1999-11-17 23:48 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Dev-Linux
Geert Uytterhoeven wrote:
>
> > Just for information: Paul M's 2.3.27 rsync kernel compiles and runs
> > just fine on this Pmac 6400. The machine swaps like crazy and is
> > therefore rather slow, but I am not sure if this is the kernel's fault.
The swapping is now being blamed on BootX.
> Are you sure about the version? I just checked out this tree, and it's 2.3.22,
> according to the Makefile. Perhaps I made a mistake? This is the first time I
> used rsync (`rsync -auvz samba.anu.edu.au::linux-pmac-devel .').
>From BenH's page or some of his messages I learned the new address
linuxcare.com.au. There it's 2.3.27(*). Seems Paul left ANU for good.
(*) Correction. I ran rsync while typing this letter. It's 2.3.28 now. I
am curious to see how this will run.
--
Martin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: Kernel debugging??
1999-11-17 23:48 ` Martin Costabel
@ 1999-11-18 9:13 ` Martin Costabel
0 siblings, 0 replies; 23+ messages in thread
From: Martin Costabel @ 1999-11-18 9:13 UTC (permalink / raw)
To: Geert Uytterhoeven, Dev-Linux
Martin Costabel wrote:
>
> (*) Correction. I ran rsync while typing this letter. It's 2.3.28 now. I
> am curious to see how this will run.
Followup: Paul's 2.3.28 runs very well on my 6400.
One curious thing, though: I played with hdparm for the internal IDE
disk. Turns out that it is faster with DMA turned OFF (I did a PIO
autotune hdparm -p before):
root[90]#hdparm -d0 /dev/hda
/dev/hda:
setting using_dma to 0 (off)
using_dma = 0 (off)
root[91]#hdparm -tT /dev/hda
/dev/hda:
Timing buffer-cache reads: 64 MB in 2.91 seconds =21.99 MB/sec
Timing buffered disk reads: 32 MB in 5.62 seconds = 5.69 MB/sec
root[92]#hdparm -d1 /dev/hda
/dev/hda:
setting using_dma to 1 (on)
using_dma = 1 (on)
root[93]#hdparm -tT /dev/hda
/dev/hda:
Timing buffer-cache reads: 64 MB in 2.91 seconds =21.99 MB/sec
Timing buffered disk reads: 32 MB in 10.21 seconds = 3.13 MB/sec
This is repeatable. And there is still some strange swapping going on
that shouldn't be necessary (no high charge, just some window switching
in X). But now that I went back to BootX-1.1.3, the overall speed is OK.
--
Martin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??]
1999-11-17 21:08 ` Geert Uytterhoeven
1999-11-17 23:48 ` Martin Costabel
@ 1999-11-18 0:35 ` phandel
1999-11-18 10:04 ` Benjamin Herrenschmidt
1999-11-18 2:37 ` Kernel debugging?? Paul Mackerras
1999-11-18 10:02 ` Benjamin Herrenschmidt
3 siblings, 1 reply; 23+ messages in thread
From: phandel @ 1999-11-18 0:35 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Martin Costabel, Dev-Linux
On Wed, 17 Nov 1999, Geert Uytterhoeven wrote:
> On Tue, 16 Nov 1999, Martin Costabel wrote:
> > Just for information: Paul M's 2.3.27 rsync kernel compiles and runs
> > just fine on this Pmac 6400. The machine swaps like crazy and is
> > therefore rather slow, but I am not sure if this is the kernel's fault.
I've noticed the same extreme swapping in 2.3.26, using SCSI disks
(PowerCenter Pro 210) and BootX. Returning to my previous kernel, there
was no swapping. This was using BootX 1.2b1.
> Are you sure about the version? I just checked out this tree, and it's 2.3.22,
> according to the Makefile. Perhaps I made a mistake? This is the first time I
> used rsync (`rsync -auvz samba.anu.edu.au::linux-pmac-devel .').
rsync -auvz linuxcare.com.au::linux-pmac-devel /usr/src/linux-2.3.devel
(from Ben's post a few days ago)
Thanks,
Peter
--
Peter F. Handel "[The anti-Christ] also forced everyone, small and
phandel@cise.ufl.edu great ... to receive a mark [smart card?] on his
www.cise.ufl.edu/~phandel right hand or on his forehead, so that no one could
FAX: (561) 619-8051 buy or sell unless he had the mark"-Revelation13:16
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??]
1999-11-18 0:35 ` Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??] phandel
@ 1999-11-18 10:04 ` Benjamin Herrenschmidt
1999-11-18 10:22 ` phandel
1999-11-19 0:51 ` Martin Costabel
0 siblings, 2 replies; 23+ messages in thread
From: Benjamin Herrenschmidt @ 1999-11-18 10:04 UTC (permalink / raw)
To: phandel, linuxppc-dev
On Wed, Nov 17, 1999, <phandel@cise.ufl.edu> wrote:
>I've noticed the same extreme swapping in 2.3.26, using SCSI disks
>(PowerCenter Pro 210) and BootX. Returning to my previous kernel, there
>was no swapping. This was using BootX 1.2b1.
And I have absolutely no idea about what in BootX can cause this. Could
you check if the amount of available RAM seen by the kenrel is correct ?
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??]
1999-11-18 10:04 ` Benjamin Herrenschmidt
@ 1999-11-18 10:22 ` phandel
1999-11-18 10:40 ` Benjamin Herrenschmidt
1999-11-19 0:51 ` Martin Costabel
1 sibling, 1 reply; 23+ messages in thread
From: phandel @ 1999-11-18 10:22 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
On Thu, 18 Nov 1999, Benjamin Herrenschmidt wrote:
> On Wed, Nov 17, 1999, <phandel@cise.ufl.edu> wrote:
>
> >I've noticed the same extreme swapping in 2.3.26, using SCSI disks
> >(PowerCenter Pro 210) and BootX. Returning to my previous kernel, there
> >was no swapping. This was using BootX 1.2b1.
>
> And I have absolutely no idea about what in BootX can cause this. Could
> you check if the amount of available RAM seen by the kenrel is correct ?
I'm having a hard time blaming BootX - top did reveal an incorrect amount
of memory (total/free/etc.) but I've heard that top is broken in the 2.3
series. I'll grab Paul's new 2.3.28 rsync later tomorrow and look at the
memory.
The same version of BootX works perfectly with the 2.2 series.
Thanks,
Pete
--
Peter F. Handel "[The anti-Christ] also forced everyone, small and
phandel@cise.ufl.edu great ... to receive a mark [smart card?] on his
www.cise.ufl.edu/~phandel right hand or on his forehead, so that no one could
FAX: (561) 619-8051 buy or sell unless he had the mark"-Revelation13:16
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??]
1999-11-18 10:22 ` phandel
@ 1999-11-18 10:40 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 23+ messages in thread
From: Benjamin Herrenschmidt @ 1999-11-18 10:40 UTC (permalink / raw)
To: phandel, linuxppc-dev
On Thu, Nov 18, 1999, <phandel@cise.ufl.edu> wrote:
>I'm having a hard time blaming BootX - top did reveal an incorrect amount
>of memory (total/free/etc.) but I've heard that top is broken in the 2.3
>series. I'll grab Paul's new 2.3.28 rsync later tomorrow and look at the
>memory.
There is a possibility that BootX passed an incorrect device tree size or
something like that that would mess up the kenrel memory management. I
didn't see this happen, but I'll have a second look at the code.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??]
1999-11-18 10:04 ` Benjamin Herrenschmidt
1999-11-18 10:22 ` phandel
@ 1999-11-19 0:51 ` Martin Costabel
1999-11-19 10:25 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 23+ messages in thread
From: Martin Costabel @ 1999-11-19 0:51 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: phandel, linuxppc-dev
Benjamin Herrenschmidt wrote:
>
> On Wed, Nov 17, 1999, <phandel@cise.ufl.edu> wrote:
>
> >I've noticed the same extreme swapping in 2.3.26, using SCSI disks
> >(PowerCenter Pro 210) and BootX. Returning to my previous kernel, there
> >was no swapping. This was using BootX 1.2b1.
>
> And I have absolutely no idea about what in BootX can cause this. Could
> you check if the amount of available RAM seen by the kenrel is correct ?
Comparing boot messages from booting with "good" and "bad" versions of
BootX, I saw that the amount of RAM is OK in both cases, but then I
found one quite incredible thing, and this is essentially the only
difference in the boot messages. Booting with BootX version <= 1.1.3 and
any kernel, I get as usual
kernel: Calibrating delay loop... 133.12 BogoMIPS
Booting with BootX-1.2b2, I get with the same kernels
kernel: Calibrating delay loop... 11.39 BogoMIPS
This is repeatable, but for me quite incomprehensible.
--
Martin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??]
1999-11-19 0:51 ` Martin Costabel
@ 1999-11-19 10:25 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 23+ messages in thread
From: Benjamin Herrenschmidt @ 1999-11-19 10:25 UTC (permalink / raw)
To: Martin Costabel, linuxppc-dev
On Fri, Nov 19, 1999, Martin Costabel <costabel@wanadoo.fr> wrote:
> kernel: Calibrating delay loop... 133.12 BogoMIPS
>
>Booting with BootX-1.2b2, I get with the same kernels
>
> kernel: Calibrating delay loop... 11.39 BogoMIPS
>
>This is repeatable, but for me quite incomprehensible.
Ouch. Could this be a problem with VIA-based calibration in the kernel ?
Paul ? Any clue ? I don't see what in BootX could cause this to happen,
probably MacOS playing tricks with the VIA behind my back... I just
looked at the calibration code, and it looks ok, except if interrupts are
enabled during the calibration (Actually, I don't know if MSR-EE is
enabled at this point, I should really add code to BootX that masks all
interrupts in the controller before launching the kernel anyway).
If I remember correctly, Martin, your machine has a 603. There is a
possibility that, for some reason, MacOS changes the PLL settings in HID1
(but I don't really see why this would happen with BootX 1.2x and not
with previous versions).
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Kernel debugging??
1999-11-17 21:08 ` Geert Uytterhoeven
1999-11-17 23:48 ` Martin Costabel
1999-11-18 0:35 ` Extreme swapping / new location of Paul's kernels [was Re: Kernel debugging??] phandel
@ 1999-11-18 2:37 ` Paul Mackerras
1999-11-18 17:32 ` Michael Fenske
1999-11-18 10:02 ` Benjamin Herrenschmidt
3 siblings, 1 reply; 23+ messages in thread
From: Paul Mackerras @ 1999-11-18 2:37 UTC (permalink / raw)
To: linuxppc-dev, Geert Uytterhoeven
On Thu, 18 Nov 1999, Geert Uytterhoeven wrote:
> Are you sure about the version? I just checked out this tree, and it's 2.3.22,
> according to the Makefile. Perhaps I made a mistake? This is the first time I
> used rsync (`rsync -auvz samba.anu.edu.au::linux-pmac-devel .').
There is a 2.3.28 tree in linuxcare.com.au::linux-pmac-devel, which boots
and runs for me but has some sort of major memory leak. The tree on samba
is old, maybe I should just remove it. I will be putting stuff on
linuxcare.com.au (== ftp.linuxcare.com.au) generally from now on.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Kernel debugging??
1999-11-18 2:37 ` Kernel debugging?? Paul Mackerras
@ 1999-11-18 17:32 ` Michael Fenske
1999-11-18 18:30 ` Benjamin Herrenschmidt
1999-11-18 18:34 ` Kevin Hendricks
0 siblings, 2 replies; 23+ messages in thread
From: Michael Fenske @ 1999-11-18 17:32 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
Paul Mackerras wrote:
> is old, maybe I should just remove it. I will be putting stuff on
> linuxcare.com.au (== ftp.linuxcare.com.au) generally from now on.
Is there something wrong with linuxcare.com.au ? If I do
rsync -arvz linuxcare.com.au::linux-pmac-stable .
I get this:
Welcome to the Linuxcare Australia rsync server
For information about Linuxcare see http://linuxcare.com.au/
receiving file list ... done
./
COPYING
deflate on token returned -2 (700 bytes left)
unexpected EOF in read_timeout
rsync from samba.anu.edu.au works just fine.
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Kernel debugging??
1999-11-18 17:32 ` Michael Fenske
@ 1999-11-18 18:30 ` Benjamin Herrenschmidt
1999-11-19 9:10 ` Michael Fenske
1999-11-18 18:34 ` Kevin Hendricks
1 sibling, 1 reply; 23+ messages in thread
From: Benjamin Herrenschmidt @ 1999-11-18 18:30 UTC (permalink / raw)
To: michael.fenske, linuxppc-dev
On Thu, Nov 18, 1999, Michael Fenske <michael.fenske@arcormail.de> wrote:
>Is there something wrong with linuxcare.com.au ? If I do
>
> rsync -arvz linuxcare.com.au::linux-pmac-stable .
>
>I get this:
>
> Welcome to the Linuxcare Australia rsync server
> For information about Linuxcare see http://linuxcare.com.au/
>
>
> receiving file list ... done
> ./
> COPYING
> deflate on token returned -2 (700 bytes left)
> unexpected EOF in read_timeout
>
>rsync from samba.anu.edu.au works just fine.
I had the same problem today. Just remove the "z" option, it will eat
more bandidth but it works. I beleive it's time to update my rsync or zlib...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Kernel debugging??
1999-11-18 17:32 ` Michael Fenske
1999-11-18 18:30 ` Benjamin Herrenschmidt
@ 1999-11-18 18:34 ` Kevin Hendricks
1999-11-18 23:29 ` Paul Mackerras
1 sibling, 1 reply; 23+ messages in thread
From: Kevin Hendricks @ 1999-11-18 18:34 UTC (permalink / raw)
To: michael.fenske, Michael Fenske, Paul Mackerras; +Cc: linuxppc-dev
Hi,
> Is there something wrong with linuxcare.com.au ? If I do
> receiving file list ... done
> ./
> COPYING
> deflate on token returned -2 (700 bytes left)
> unexpected EOF in read_timeout
I got the same thing. Just drop the compression (the z) and see if that helps.
It did for me.
By the way, I updated from the samba site after the linuxcare site went up (I
didn't know about the linuxcare site). To get a good source tree I had to do
the following:
-arv --delete
The -u update kept thinking my samba version was newer than the linuxcare
version and wouldn't get the new version and there were lots of files that
needed to be deleted.
So the following worked for me
rsync -arv --delete linuxcare.com.au::linux-pmac-stable .
I hope this helps.
Kevin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Kernel debugging??
1999-11-18 18:34 ` Kevin Hendricks
@ 1999-11-18 23:29 ` Paul Mackerras
0 siblings, 0 replies; 23+ messages in thread
From: Paul Mackerras @ 1999-11-18 23:29 UTC (permalink / raw)
To: linuxppc-dev, Kevin Hendricks
On Fri, 19 Nov 1999, Kevin Hendricks wrote:
> By the way, I updated from the samba site after the linuxcare site went up (I
> didn't know about the linuxcare site). To get a good source tree I had to do
> the following:
>
> -arv --delete
>
> The -u update kept thinking my samba version was newer than the linuxcare
> version and wouldn't get the new version and there were lots of files that
> needed to be deleted.
If you have done a compilation in the tree, it may have touched some of
the header files. The way the kernel Makefiles take care of header
dependencies is that if a.h includes b.h, and b.h is newer than a.h, it
will touch a.h.
I usually keep separate trees and only compile in one of them. I use
dirdiff to keep track of the differences between the trees. Dirdiff is a
tool I wrote for seeing the differences between directory trees. It can
handle up to 5 directory trees. It's a tcl/tk script and it's available
at ftp://ftp.linuxcare.com.au/pub/ppclinux/dirdiff.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Kernel debugging??
1999-11-17 21:08 ` Geert Uytterhoeven
` (2 preceding siblings ...)
1999-11-18 2:37 ` Kernel debugging?? Paul Mackerras
@ 1999-11-18 10:02 ` Benjamin Herrenschmidt
1999-11-22 20:00 ` Geert Uytterhoeven
3 siblings, 1 reply; 23+ messages in thread
From: Benjamin Herrenschmidt @ 1999-11-18 10:02 UTC (permalink / raw)
To: Geert Uytterhoeven, linuxppc-dev
On Wed, Nov 17, 1999, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>Are you sure about the version? I just checked out this tree, and it's
2.3.22,
>according to the Makefile. Perhaps I made a mistake? This is the first time I
>used rsync (`rsync -auvz samba.anu.edu.au::linux-pmac-devel .').
To my knowledge, Paul's tree is now at
rsync -auvz linuxcare.com.au::linux-pmac-devel .
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: Kernel debugging??
1999-11-18 10:02 ` Benjamin Herrenschmidt
@ 1999-11-22 20:00 ` Geert Uytterhoeven
0 siblings, 0 replies; 23+ messages in thread
From: Geert Uytterhoeven @ 1999-11-22 20:00 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
On Thu, 18 Nov 1999, Benjamin Herrenschmidt wrote:
> On Wed, Nov 17, 1999, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> >Are you sure about the version? I just checked out this tree, and it's
> 2.3.22,
> >according to the Makefile. Perhaps I made a mistake? This is the first time I
> >used rsync (`rsync -auvz samba.anu.edu.au::linux-pmac-devel .').
>
> To my knowledge, Paul's tree is now at
>
> rsync -auvz linuxcare.com.au::linux-pmac-devel .
Using this, 2.3.28 boots a bit further. It locks up right before the SCSI
device probing. After `scsi : 2 hosts.', I can still toggle the Caps Lock LED
for one second, but after that interrupts no longer seem to come through.
ncr53c8xx: IO region 0x1400 to 0x147f is in use
mesh: assuming 50MHz clock frequency
scsi0 : sym53c8xx - version 1.3c
scsi1 : MESH
scsi : 2 hosts.
HERE ------------------>
Vendor: QUANTUM Model: VIKING II 4.5WLS Rev: 3506
Type: Direct-Access ANSI SCSI revision: 02
Fortunately the kernel gets sufficiently far to resume working on frame buffer
device, cfr. the patch I just posted.
Gr{oetje,eeting}s,
--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 23+ messages in thread