Hi there, I have a local mirror of cvs src, everything works fine, except that
the IO seems to take place in another disk.

I have a very very very very slow udma controller in wd0 (the ultra 5 one):

wd0(pciide0:0:0): using PIO mode 4, DMA mode 2

So I keep my cvs in a faster controller/disk:

wd1(pciide1:2:0): using BIOS timings, Ultra-DMA mode 7

I have this, so you can see, most stuff is on the slow controller. 

/dev/wd0a on / type ffs (local)
/dev/wd0d on /tmp type ffs (local, nodev, nosuid)
/dev/wd0g on /usr type ffs (NFS exported, local, nodev)
/dev/wd0e on /var type ffs (local, nodev, nosuid)
/dev/wd1a on /data/sta type ffs (NFS exported, local, nodev, nosuid)

Here is the weird part, /cvs points to /data/sta/cvs (which is in the fast
controller)

lrwxr-xr-x   1 root  wheel       14 Jul 13 19:55 cvs@ -> /data/sta/cvs/

Now watch what happends when I 'cvs up' from another machine:

== No cvs up, disk mostly idle ==

gandalf:haesbaert: iostat -w 3 
      tty            wd0             cd0             wd1             cpu
 tin tout  KB/t t/s MB/s   KB/t t/s MB/s   KB/t t/s MB/s  us ni sy in id
   0   41 11.68   3 0.03   0.00   0 0.00  49.91   5 0.25   1  0  2  1 96
   0   74  0.00   0 0.00   0.00   0 0.00   0.00   0 0.00   0  0  0  0100
   0   98 13.71   7 0.09   0.00   0 0.00   0.00   0 0.00   0  0  0  0100

== cvs up, wd1 transaction should go up roof ==
gandalf:haesbaert: iostat -w 3 
      tty            wd0             cd0             wd1             cpu
 tin tout  KB/t t/s MB/s   KB/t t/s MB/s   KB/t t/s MB/s  us ni sy in id
   0   41 11.68   3 0.03   0.00   0 0.00  49.91   5 0.25   1  0  2  1 96
   0   98  9.52 263 2.45   0.00   0 0.00   0.00   0 0.00   5  0  9  3 84
   0   25  9.53 277 2.58   0.00   0 0.00   0.00   0 0.00   1  0  5  0 94
   0   49  9.51 282 2.62   0.00   0 0.00   0.00   0 0.00   2  0  7  1 90
   0   49  9.67 258 2.44   0.00   0 0.00  64.00   0 0.02   1  0  5  1 93


But no, IO seems to take place mostly in wd0, I've confirmed swap was not taking
place, I shut down everything, top showed 100mb+ free:

load averages:  2.23,  1.02,  0.65
gandalf.midearth 03:12:25
42 processes:  1 running, 40 idle, 1 on processor
CPU states:  1.6% user,  0.0% nice,  4.9% system,  0.4% interrupt, 93.2% idle
Memory: Real: 19M/64M act/tot  Free: 176M  Swap: 16M/1024M used/tot

The user doing the cvs has a home in /home/ which is in wd0.
I'm also able to hear wd0 (different sound than wd1), so I know fstat is telling
the truth.

What's hapenning ? I'm pretty sure I'm missing something real simple, just to 
have
an insight, a 'cvs up' is taking more than 30min. 

Thanks

gandalf:sta: dmesg                                                              
                                                                                
      
console is /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2011 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.9 (GENERIC) #241: Tue Feb 15 16:08:29 MST 2011
    t...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 268435456 (256MB)
avail mem = 251617280 (239MB)
mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 400MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 9.1) @ 400 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 2048K external (64
    b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-3, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003,
    72f000-72f003
power0 at ebus0 addr 724000-724003 ivec 0x25
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0: console
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: no keyboard
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec 0x22: polled
"fdthree" at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ivec 0x27
    not configured
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f,
    722000-722003 ivec 0x23 ivec 0x24: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address
    00:03:ba:08:72:5a
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
machfb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x5c
machfb0: ATY,GT-C, 1152x900
wsdisplay0 at machfb0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03: DMA, channel
    0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALLlct20 40>
wd0: 8-sector PIO, LBA, 38172MB, 78177792 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRD-8483B, 1.02> ATAPI 5/cdrom
    removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
pci2 at ppb1 bus 2
pciide1 at pci2 dev 1 function 0 "CMD Technology SiI3114 SATA" rev 0x02: DMA
pciide1: using ivec 0x7d0 for native-PCI interrupt
pciide1: port 2: device present, speed: 1.5Gb/s
wd1 at pciide1 channel 2 drive 0: <SAMSUNG HD154UI>
wd1: 16-sector PIO, LBA48, 1430799MB, 2930277168 sectors
wd1(pciide1:2:0): using BIOS timings, Ultra-DMA mode 7
vr0 at pci2 dev 2 function 0 "VIA VT6105 RhineIII" rev 0x8b: ivec 0x7d4, address
    1c:af:f7:70:df:50
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 9: OUI 0x004063,
    model 0x0034
ppb2 at pci2 dev 3 function 0 "Intel 21154AE/BE PCI-PCI" rev 0x00
pci3 at ppb2 bus 3
"Sun PCIO EBus2" rev 0x01 at pci3 dev 0 function 0 not configured
hme1 at pci3 dev 0 function 1 "Sun HME" rev 0x01: ivec 0x7d9, address
    00:03:ba:36:fe:00
luphy0 at hme1 phy 1: LU6612 10/100 PHY, rev. 1
"Sun PCIO EBus2" rev 0x01 at pci3 dev 1 function 0 not configured
hme2 at pci3 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7da, address
    00:03:ba:36:fe:01
luphy1 at hme2 phy 1: LU6612 10/100 PHY, rev. 1
"Sun PCIO EBus2" rev 0x01 at pci3 dev 2 function 0 not configured
hme3 at pci3 dev 2 function 1 "Sun HME" rev 0x01: ivec 0x7db, address
    00:03:ba:36:fe:02
luphy2 at hme3 phy 1: LU6612 10/100 PHY, rev. 1
"Sun PCIO EBus2" rev 0x01 at pci3 dev 3 function 0 not configured
hme4 at pci3 dev 3 function 1 "Sun HME" rev 0x01: ivec 0x7d8, address
    00:03:ba:36:fe:03
luphy3 at hme4 phy 1: LU6612 10/100 PHY, rev. 1
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
bootpath: /pci@1f,0/pci@1,1/ide@3,0/disk@0,0
root on wd0a swap on wd0b dump on wd0b
WARNING: / was not properly unmounted


-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.

Reply via email to