Hi misc,

I have installed OpenBSD on an USB stick (a Kingston DataTraveler G3).
Nevertheless, the system is quite slow... For example, I recently install
firefox or, more precisely, those packages:

at-spi2-atk-2.8.1.tgz
at-spi2-core-2.8.0.tgz
dbus-glib-0.100.2v0.tgz
dconf-0.16.1.tgz
firefox-22.0.tgz
flac-1.3.0p0.tgz
gconf2-3.2.6p0.tgz
glib2-networking-2.36.2.tgz
gnutls-3.2.1.tgz
gsettings-desktop-schemas-3.8.2.tgz
gstreamer-0.10.36p5.tgz
gstreamer-plugins-base-0.10.36p6.tgz
gstreamer-plugins-good-0.10.31p7v0.tgz
gtk+3-3.8.2p3.tgz
gvfs-1.16.3.tgz
libarchive-3.0.4p0.tgz
libnettle-2.7.1.tgz
libsecret-0.14p0.tgz
libshout-2.2.2p2.tgz
libsoup-2.42.2.tgz
libsoup-gnome-2.42.2.tgz
libtasn1-3.3.tgz
p11-kit-0.18.3p0.tgz
taglib-1.8p5.tgz
tremor-20120410p0.tgz
wavpack-4.60.1p0.tgz

which have a total size of 67Mo and it tooks ~17min to finish. If I compute
correctly, this give me an average of ~67ko/sec which, I think, is quite bad.
I precise that I download and store all the packages on an mfs partition, so
this is really the time consumed to install them. Also, all the partitions are
mounted with the softdep and the noatime options.

Is this normal ? Did I make any mistakes in the organisation of the system on
the stick ? Is there something I can do to improve the performance of the I/O
?

Below, you will find the output of the fdisk, disklabel, usbdevs and dmesg
commands.

Kind regards,

Jérôme

-----------------------------------------------------------------------

# fdisk sd0
Disk: sd0       geometry: 3762/255/63 [60437492 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 0B      0   1   2 -    522  43  33 [          64:     8388608 ] Win95 FAT-32
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
*3: A6    523   0   1 -   3761 254  63 [     8401995:    52034535 ] OpenBSD     


# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: DataTraveler G3 
duid: 5f3fafcf8302435d
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 3762
total sectors: 60437492
boundstart: 8401995
boundend: 60436530
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:          2104501          8401995  4.2BSD   2048 16384    1 # /
  b:          8385944         10506496    swap                   # none
  c:         60437492                0  unused                   
  d:          2104480         18892448  4.2BSD   2048 16384    1 # /var
  e:         12578912         20996928  4.2BSD   2048 16384    1 # /usr
  f:         16771840         33575840  4.2BSD   2048 16384    1 # /home
  i:          8388608               64   MSDOS                   


# usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
NVIDIA(0x10de), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 addr 2: high speed, power 100 mA, config 1, DataTraveler G3(0x1643), 
Kingston(0x0951), rev 1.00, iSerialNumber 001CC07CEB7FFCB129150E30
 port 6 powered
 port 7 powered
 port 8 powered
 port 9 powered
 port 10 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), 
NVIDIA(0x10de), rev 1.00
 port 1 powered
 port 2 powered
 port 3 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical 
Mouse(0xc040), Logitech(0x046d), rev 24.30
 port 4 addr 3: low speed, power 100 mA, config 1, Logitech USB 
Keyboard(0xc316), Logitech(0x046d), rev 28.00
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
 port 9 powered
 port 10 powered


# dmesg
OpenBSD 5.4 (GENERIC.MP) #44: Tue Jul 30 12:13:32 MDT 2013
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: AMD Athlon(tm) II X2 280 Processor ("AuthenticAMD" 686-class, 1024KB L2 
cache) 3.62 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC
real mem  = 1878192128 (1791MB)
avail mem = 1836040192 (1750MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/31/12, BIOS32 rev. 0 @ 0xe8010, SMBIOS 
rev. 2.6 @ 0xfd950 (22 entries)
bios0: vendor American Megatrends Inc. version "P1.40" date 10/31/2012
bios0: ASRock N68C-GS FX
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB SRAT AAFT SSDT
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) SMB0(S4) USB0(S4) USB2(S4) 
NMAC(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD erratum 721 detected and fixed
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) II X2 280 Processor ("AuthenticAMD" 686-class, 1024KB L2 
cache) 3.62 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-127
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 2 (BR10)
acpiprt3 at acpi0: bus 3 (BR11)
acpiprt4 at acpi0: bus 4 (BR12)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xec00
cpu0: 3617 MHz: speeds: 3600 2900 2200 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
vendor "NVIDIA", unknown product 0x03e2 (class memory subclass RAM, rev 0xa1) 
at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2
nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-5300CL5
iic1 at nviic0
"NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 10, 
version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1
pci1 at ppb0 bus 1
azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 2 int 10
azalia0: codecs: VIA/0x4397
audio0 at azalia0
pciide0 at pci0 dev 6 function 0 "NVIDIA MCP61 IDE" rev 0xa2: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PLEXTOR, CD-R PX-W1210A, 1.05> ATAPI 5/cdrom 
removable
atapiscsi1 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <_NEC, DVD_RW ND-1300A, 1.09> ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 2 int 10, 
address bc:5f:f4:b7:48:38
rgephy0 at nfe0 phy 3: RTL8169S/8110S PHY, rev. 2
pciide1 at pci0 dev 8 function 0 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide1: using apic 2 int 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD800JD-08LSA0>
wd0: 16-sector PIO, LBA48, 76324MB, 156312576 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
pciide2 at pci0 dev 8 function 1 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide2: using apic 2 int 5 for native-PCI interrupt
wd1 at pciide2 channel 0 drive 0: <Hitachi HDS721680PLA380>
wd1: 16-sector PIO, LBA48, 76324MB, 156312576 sectors
wd1(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb1 at pci0 dev 9 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci2 at ppb1 bus 2
ppb2 at pci0 dev 11 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 12 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci4 at ppb3 bus 4
vga1 at pci0 dev 13 function 0 "NVIDIA GeForce 7025 nForce 630a" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pchb0 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00
pchb3 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627DHG-P rev 0x73
lm1 at wbsio0 port 0x290/8: W83627DHG
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
umass0 at uhub0 port 5 configuration 1 interface 0 "Kingston DataTraveler G3" 
rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <Kingston, DataTraveler G3, 1.00> SCSI2 0/direct 
removable serial.09511643FCB129150E30
sd0: 29510MB, 512 bytes/sector, 60437492 sectors
uhidev0 at uhub1 port 3 configuration 1 interface 0 "Logitech USB-PS/2 Optical 
Mouse" rev 2.00/24.30 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 8 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub1 port 4 configuration 1 interface 0 "Logitech Logitech USB 
Keyboard" rev 1.10/28.00 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub1 port 4 configuration 1 interface 1 "Logitech Logitech USB 
Keyboard" rev 1.10/28.00 addr 3
uhidev2: iclass 3/0, 2 report ids
uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (5f3fafcf8302435d.a) swap on sd0b dump on sd0b
cpu1: AMD erratum 721 detected and fixed

Reply via email to