Subject: Re: PM 7500 L2 cache & disk performance questions
To: <>
From: Kevin Diggs <kevdig@rcn.com>
List: port-macppc
Date: 02/20/2002 02:34:44
Jeff,

    I believe the 'L2CR_CONFIG=...' is only to setup the L2 cache register in the
750 (aka G3) and 7400 (aka G4). I don't think it has anything to do with the 604e
or motherboard cache. You bring up an excellent point. How do you enable the
motherboard cache? Do we assume that OF has already done that? I don't think
Linux has to worry about this because it generally boots from underneath MacOS
(at least for machines of this vintage).

                    kevin

Jeff Laughlin wrote:

> Hey All,
>
> BTW things are going better. Network working and it usually boots instead
> although still says DEFAULT Catch sometimes.
>
> I've read back through most of the relevant L2 cache related posts in the
> list and scoured the docs but I still have some lingering questions...
>
> I have a 1 meg L2 cache dimm installed on my 7500's motherboard. My CPU is
> an XLR8 604e card that to the best of my knowledge has no L2 cache on
> board. In OFW I can see the l2-cache device beneath the PowerPC,604 device.
> Should the kernel report it as being present even if it isn't configured?
> Might the kernel be using it and just not telling me? None of the relevant
> Apple tech notes seem to say if it's pipeline burst or what? I have
> compiled the kernel with options
> L2CR_CONFIG="(L2CR_L2E|L2SIZ_1M|L2CLK_20|L2RAM_PIPELINE_BURST)" but don't
> know if that's right. I guess the bottom line is, given my particular
> hardware, what do I have to do to enable the L2 cache?
>
> The other thing I'm curious about is should I be doing anything to optimize
> harddrive performance? I have a Barracuda fast scsi-2 drive and the 7500
> internal bus is also fast scsi-2. Raw throughput is right where it should
> be at 4Mbps, the max async speed the drive supports. But it seems to thrash
> like crazy when dealing with lots of small files. I mean it goes nuts. I
> deleted the kernel source directory tree, it took about 5 minutes and my
> drive made so much noise I thought I could pick out the final movement of
> the 1812 overture in it. Is there anything like hdparm in linux that I
> should run to tweak the settings?
>
> Here is my current dmesg output.
> NetBSD 1.5.2 (POWERCRAP-2) #1: Thu Aug 30 01:08:40 PDT 1956
>      root@powercrap:/usr/src/sys/arch/macppc/compile/POWERCRAP-2
> CPU: 604ev (Revision 204)
> total memory = 32768 KB
> avail memory = 23780 KB
> using 1280 buffers containing 5120 KB of memory
> mainbus0 (root)
> cpu0 at mainbus0bandit0 at mainbus0
> pci0 at bandit0 bus 0
> pci0: i/o space, memory space enabled
> pchb0 at pci0 dev 11 function 0
> pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
> obio0 at pci0 dev 16 function 0: addr 0xf3000000
> 53c94 at obio0 offset 0x10000 not configured
> mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:05:02:c0:03:67
> zsc0 at obio0 offset 0x13000: irq 15,16
> zstty0 at zsc0 channel 0
> zstty1 at zsc0 channel 1
> awacs at obio0 offset 0x14000 not configured
> swim3 at obio0 offset 0x15000 not configured
> adb0 at obio0 offset 0x16000 irq 18: 1 targets
> akbd0 at adb0 addr 2: extended keyboard
> wskbd0 at akbd0: console keyboard
> mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
> scsibus0 at mesh0: 8 targets, 8 luns per target
> nvram0 at obio0 offset 0x1d000
> bandit1 at mainbus0
> pci1 at bandit1 bus 1
> pci1: i/o space, memory space enabled
> ofb0 at pci1 dev 11 function 0: Apple Computer Control
> ofb0: 640 x 480, 8bpp
> wsdisplay0 at ofb0: console (std, vt100 emulation), using wskbd0
> Apple Computer PlanB (undefined subclass 0x00, revision 0x01) at pci1 dev
> 13 function 0 not configured
> scsibus0: waiting 2 seconds for devices to settle...
> sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST15150N, 0023> SCSI1 0/direct fixed
> sd0: 4095 MB, 3712 cyl, 21 head, 107 sec, 512 bytes/sect x 8388315 sectors
> cd0 at scsibus0 target 2 lun 0: <MATSHITA, CD-ROM CR-8005, 2.0h> SCSI2
> 5/cdrom removable
> boot device: sd0
> root on sd0a dumps on sd0b
> root file system type: ffs
>
> Thanks.
> -Jeff