[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Performance issue
Bah! your partition scheme sucks. Read up on it on the big disk FAQ.
This sounds to me like a bad disk. Try replacing it.
On Tuesday 01 July 2003 10:48 pm, Derick Siddoway wrote:
> Hi. I've just installed the Jun28 snapshot on this leftover computer in
> our office. It has had previous versions of OpenBSD on it, and it
> always seemed a little wonky, but today I'm trying to get it set up as
> a desktop box instead of a server, and I'm noticing the wonkiness
> close-up and in person.
>
> I'll describe the issue and then the dmesg will follow.
>
> On the console, when I log in, I get a few second wait between the
> time that I type my username and the time where the 'password' prompt
> appears. Then, after typing in my password, I get a few more seconds
> after the motd is displayed before I get a prompt.
> If I log in again on another virtual console after logging in on the
> first, everything is quick, as on my other machines. Sometimes just
> a shell command will pause for a few seconds before executing, but
> subsequent calls do not do this. My hypothesis is that the stuff
> that's already in memory or at least buffered doesn't pause, but
> loading stuff into memory from disk is very slow.
>
> At first, I thought that it might be filesystem-related, so I bumped
> up the filesystem buffer cache to 30 and tripled the kern.maxvnodes,
> which initially seemed to help, but later proved to be just placebo.
>
> I was later installing the redhat stuff (to get Opera, of course),
> and the pkg_add for redhat_base-8.0 hung for about 30 minutes. I
> had top running in another xterm, and noticed that was in a wait
> state, waiting on a 'getblk'. So it seems that it might be disk-
> related after all.
>
> Anyway, this isn't a bad machine, overall, if I could just figure
> out what sort of things it's doing with the disk.
>
> dmesg:
>
> derick@valinor:~$ dmesg
> OpenBSD 3.3-current (GENERIC) #80: Sat Jun 28 14:41:53 MDT 2003
> deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class) 598 MHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
>,SIMD real mem = 132423680 (129320K)
> avail mem = 82780160 (80840K)
> using 4278 buffers containing 40353792 bytes (39408K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(00) BIOS, date 01/28/00, BIOS32 rev. 0 @ 0xffe90
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
> pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfbc40/176 (9 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371AB PIIX4 ISA" rev
> 0x00) pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82810E" rev 0x03: rng active, 8Kb/sec
> vga1 at pci0 dev 1 function 0 "Intel 82810E Graphics" rev 0x03: aperture at
> 0xf4000000, size 0x4000000 wsdisplay0 at vga1: console (80x25, vt100
> emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> ppb0 at pci0 dev 30 function 0 "Intel 82801AA Hub-to-PCI" rev 0x02
> pci1 at ppb0 bus 1
> eap0 at pci1 dev 7 function 0 "Ensoniq AudioPCI97" rev 0x06: irq 9
> ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
> audio0 at eap0
> xl0 at pci1 dev 12 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 5
> address 00:b0:d0:4c:2e:67 exphy0 at xl0 phy 24: Broadcom 3C905C internal
> PHY, rev. 7
> pcib0 at pci0 dev 31 function 0 "Intel 82801AA LPC" rev 0x02
> pciide0 at pci0 dev 31 function 1 "Intel 82801AA IDE" rev 0x02: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at
> pciide0 channel 0 drive 0: <Maxtor 51024U2>
> wd0: 16-sector PIO, LBA, 9765MB, 16383 cyl, 16 head, 63 sec, 19999728
> sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> atapiscsi0 at pciide0 channel 1 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2302, 1013> SCSI0
> 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> uhci0 at pci0 dev 31 function 2 "Intel 82801AA USB" rev 0x02: irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> "Intel 82801AA SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> biomask c840 netmask c860 ttymask d8e2
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> dkcsum: wd0 matched BIOS disk 80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
> derick@valinor:~$
>
> Oh, and a disklabel, too:
> derick@valinor:~$ sudo disklabel wd0
> # using MBR partition 3: type A6 off 63 (0x3f) size 19984797 (0x130f19d)
> # /dev/rwd0c:
> type: ESDI
> disk: ESDI/IDE disk
> label: Maxtor 51024U2
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 16
> sectors/cylinder: 1008
> cylinders: 16383
> total sectors: 19999728
> rpm: 7200
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0 # microseconds
> track-to-track seek: 0 # microseconds
> drivedata: 0
>
> 16 partitions:
> # size offset fstype [fsize bsize cpg]
> a: 19737648 262080 4.2BSD 1024 8192 16 # (Cyl. 260 -
> 19840) b: 262017 63 swap # (Cyl. 0*-
> 259) c: 19999728 0 unused 0 0 # (Cyl. 0 -
> 19840) derick@valinor:~$
>
>
>
> Thanks.