l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2005 May 18 17:24

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Raid 1 - Fresh Install - Drives seem slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Raid 1 - Fresh Install - Drives seem slow



Bill Broadley wrote:

Linux by default does not saturate the disk during rebuilds so that
users aren't overly impacted.

If you want to speed it up tweak the parameters under /proc/sys/dev/raid.

You should be able to get close to whatever the hardware is capable of,
at the cost of higher loads and more lag.
Thanks Bill, yep I know it will rebuild slowly in the background. I hadn't filled in the new info I have since no one had responded, and figured the thread was dead.

Here's the deal

I just installed a simple raid-1. I have a single HD on each controller. ie. 2 controllers 2 HDs. That's it, no CD players or DVD drives...

I did a fresh install of Sarge. After reboot I unplugged the CD drive, and let the array sync overnight. It took 10hrs to sync 160GiB, which seemed pretty long, so I executed the "dd if=/dev/hda of=/dev/null bs=64k count=10000" command I've seen posted on the raid list.

It took about a minute and change to complete, which is long. So out of curiosity I plugged in a CD player and booted Knoppix. When I ran the same command it took only 30 seconds (which is still not as quick as some of the numbers on that list, but it's an old celeron 466MHz).

So Knoppix is configuring something different, I'm searching for the difference

I compared the result hdparm under both OSs
Sarge:~# hdparm /dev/hda

/dev/hda:
multcount = 0 (off)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 19457/255/63, sectors = 312581808, start = 0

knoppix:~# hdparm /dev/hda

/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 19457/255/63, sectors = 312581808, start = 0

so I did a "hdparm -m 16 /dev/hda" while under Sarge, but it had no effect

Now I'm looking thru the differences in dmesg, nothing is sticking out at me, but I'm not sure I'd be able to find the culprit even if was listed.

Below is the diff of my 2 dmesg commands if you have an interest in looking at them:

Thanks
Jay

1c1
< Linux version 2.6.8-2-686 (dilinger@toaster.hq.voxel.net) (gcc version 3.3.5 (Debian 1:3.3.5-6)) #1 Mon Jan 24 03:58:38 EST 2005
---
> Linux version 2.4.27 (root@Koffer) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 SMP Mo Aug 9 00:39:37 CEST 2004
12,15c12,14
< DMA zone: 4096 pages, LIFO batch:1
< Normal zone: 10240 pages, LIFO batch:2
< HighMem zone: 0 pages, LIFO batch:1
< DMI 2.2 present.
---
> zone(0): 4096 pages.
> zone(1): 10240 pages.
> zone(2): 0 pages.
18,19c17
< Built 1 zonelists
< Kernel command line: root=/dev/hda1 ro
---
> Kernel command line: ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce quiet BOOT_IMAGE=knoppix BOOT_IMAGE=linux24 desktop=twm
23,35c21,29
< PID hash table entries: 256 (order 8: 2048 bytes)
< Detected 467.789 MHz processor.
< Using tsc for high-res timesource
< Console: colour VGA+ 80x25
< Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
< Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
< Memory: 49220k/57344k available (1550k kernel code, 7668k reserved, 688k data, 148k init, 0k highmem)
< Checking if this processor honours the WP bit even in supervisor mode... Ok.
< Calibrating delay loop... 919.55 BogoMIPS
< Security Scaffold v1.0.0 initialized
< Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
< CPU: After generic identify, caps: 0183fbff 00000000 00000000 00000000
< CPU: After vendor identify, caps: 0183fbff 00000000 00000000 00000000
---
> Detected 467.722 MHz processor.
> Console: colour dummy device 80x25
> Calibrating delay loop... 930.61 BogoMIPS
> Memory: 52904k/57344k available (1406k kernel code, 4052k reserved, 574k data, 144k init, 0k highmem)
> Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
> Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
> Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
38,41c32,33
< CPU: After all inits, caps: 0183fbff 00000000 00000000 00000040
< Intel machine check architecture supported.
< Intel machine check reporting enabled on CPU#0.
< CPU: Intel Celeron (Mendocino) stepping 05
---
> CPU: After generic, caps: 0183fbff 00000000 00000000 00000000
> CPU: Common caps: 0183fbff 00000000 00000000 00000000
43a36,46
> Checking for popad bug... OK.
> POSIX conformance testing by UNIFIX
> mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
> mtrr: detected mtrr type: Intel
> CPU: L1 I cache: 16K, L1 D cache: 16K
> CPU: L2 cache: 128K
> CPU: After generic, caps: 0183fbff 00000000 00000000 00000000
> CPU: Common caps: 0183fbff 00000000 00000000 00000000
> CPU0: Intel Celeron (Mendocino) stepping 05
> per-CPU timeslice cutoff: 365.67 usecs.
> SMP motherboard not detected.
49,56c52,57
< ..... CPU clock speed is 467.0630 MHz.
< ..... host bus clock speed is 66.0804 MHz.
< checking if image is initramfs...it isn't (ungzip failed); looks like an initrd
< Freeing initrd memory: 4544k freed
< NET: Registered protocol family 16
< PCI: PCI BIOS revision 2.10 entry at 0xfdb81, last bus=1
< PCI: Using configuration type 1
< mtrr: v2.0 (20020519)
---
> ..... CPU clock speed is 467.7528 MHz.
> ..... host bus clock speed is 66.8216 MHz.
> cpu: 0, clocks: 668216, slice: 334108
> CPU0<T0:668208,T1:334096,D:4,S:334108,C:668216>
> Waiting on wait_init_idle (map = 0x0)
> All processors have done init_idle
59,63c60,61
< Linux Plug and Play Support v0.97 (c) Adam Belay
< PnPBIOS: Scanning system for PnP BIOS support...
< PnPBIOS: Found PnP BIOS installation structure at 0xc00f7030
< PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0x6584, dseg 0xf0000
< PnPBIOS: 13 nodes reported by PnP BIOS; 13 recorded by driver
---
> PCI: PCI BIOS revision 2.10 entry at 0xfdb81, last bus=1
> PCI: Using configuration type 1
66,71c64
< PCI: Using IRQ router SIS [1039/0008] at 0000:00:01.0
< VFS: Disk quotas dquot_6.5.1
< Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
< devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
< devfs: boot_options: 0x0
< Initializing Cryptographic API
---
> PCI: Using IRQ router SIS5595 [1039/0008] at 00:01.0
74,91c67,83
< Serial: 8250/16550 driver $Revision: 1.90 $ 48 ports, IRQ sharing enabled
< ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
< RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
< serio: i8042 AUX port at 0x60,0x64 irq 12
< serio: i8042 KBD port at 0x60,0x64 irq 1
< input: AT Translated Set 2 keyboard on isa0060/serio0
< NET: Registered protocol family 2
< IP: routing cache hash table of 512 buckets, 4Kbytes
< TCP: Hash tables configured (established 4096 bind 8192)
< NET: Registered protocol family 8
< NET: Registered protocol family 20
< RAMDISK: cramfs filesystem found at block 0
< RAMDISK: Loading 4544 blocks [1 disk] into ram disk... |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\done.
< VFS: Mounted root (cramfs filesystem) readonly.
< Freeing unused kernel memory: 148k freed
< vesafb: probe of vesafb0 failed with error -6
< NET: Registered protocol family 1
< Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
---
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> VFS: Disk quotas vdquot_6.5.1
> vesafb: framebuffer at 0xe7000000, mapped to 0xc400d000, size 3072k
> vesafb: mode is 1024x768x16, linelength=2048, pages=4
> vesafb: protected mode interface info at c7c3:0000
> vesafb: scrolling: redraw
> vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
> Console: switching to colour frame buffer device 128x48
> fb0: VESA VGA frame buffer device
> pty: 256 Unix98 ptys configured
> Floppy drive(s): fd0 is 1.44M
> FDC 0 is a post-1991 82077
> RAMDISK driver initialized: 16 RAM disks of 100000K size 1024 blocksize
> Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
93c85
< SIS5513: IDE controller at PCI slot 0000:00:00.1
---
> SIS5513: IDE controller at PCI slot 00:00.1
100,104d91
< Using anticipatory io scheduler
< ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
< hda: max request size: 1024KiB
< hda: 312581808 sectors (160041 MB) w/2048KiB Cache, CHS=19457/255/63, UDMA(66)
< /dev/ide/host0/bus0/target0/lun0: p1 p2
105a93
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
107,118c95,168
< kjournald starting. Commit interval 5 seconds
< EXT3-fs: mounted filesystem with ordered data mode.
< Adding 979956k swap on /dev/hda2. Priority:-1 extents:1
< EXT3 FS on hda1, internal journal
< Generic RTC Driver v1.07
< hdc: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)
< Uniform CD-ROM driver Revision: 3.20
< input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
< Capability LSM initialized
< mice: PS/2 mouse device common for all mice
< ts: Compaq touchscreen protocol output
< Linux agpgart interface v0.100 (c) Dave Jones
---
> hda: attached ide-disk driver.
> hda: host protected area => 1
> hda: 312581808 sectors (160042 MB) w/2048KiB Cache, CHS=19457/255/63
> Partition check:
> hda: hda1 hda2
> ide: late registration of driver.
> SCSI subsystem driver Revision: 1.00
> libata version 1.02 loaded.
> kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
> kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
> Initializing Cryptographic API
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 4096 bind 4096)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> RAMDISK: Compressed image found at block 0
> Freeing initrd memory: 781k freed
> EXT2-fs warning: checktime reached, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem).
> hdc: attached ide-scsi driver.
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Vendor: BCD Model: E520C Rev: 0.40
> Type: CD-ROM ANSI SCSI revision: 02
> Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
> sr0: scsi3-mmc drive: 40x/40x cd/rw xa/form2 cdda tray
> Uniform CD-ROM driver Revision: 3.12
> NCR53c406a: no available ports found
> aec671x_detect:
> scsi: <fdomain> Detection failed (no card)
> GDT: Storage RAID Controller Driver. Version: 2.05
> GDT: Found 0 PCI Storage RAID Controllers
> megaraid: v1.18k (Release Date: Thu Aug 28 10:05:11 EDT 2003)
> megaraid: no BIOS enabled.
> DC390: 0 adapters found
> Failed initialization of WD-7000 SCSI card!
> Guestimating sector 312560384 for superblock
> driver for Silicon Image(tm) Medley(tm) hardware version 0.0.1: No raid array found
> Medley RAID: No usable RAID sets found
> Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found
> usb.c: registered new driver usbdevfs
> usb.c: registered new driver hub
> usb-uhci.c: $Revision: 1.275 $ time 00:50:50 Aug 9 2004
> usb-uhci.c: High bandwidth mode enabled
> usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
> usb-ohci.c: USB OHCI at membase 0xc432d000, IRQ 3
> usb-ohci.c: usb-00:01.2, Silicon Integrated Systems [SiS] USB 1.0 Controller
> usb.c: new USB bus registered, assigned bus number 1
> hub.c: USB hub found
> hub.c: 2 ports detected
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> USB Mass Storage support registered.
> blk: queue c03661a0, I/O limit 4095Mb (mask 0xffffffff)
> ISO 9660 Extensions: Microsoft Joliet Level 3
> ISO 9660 Extensions: RRIP_1991A
> cloop: Initializing cloop v2.01
> cloop: loaded (max 8 devices)
> cloop: /cdrom/KNOPPIX/KNOPPIX: 30369 blocks, 65536 bytes/block, largest block is 65552 bytes.
> ISO 9660 Extensions: RRIP_1991A
> Freeing unused kernel memory: 144k freed
> Real Time Clock Driver v1.10f
> apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
> Linux Kernel Card Services 3.1.22
> options: [pci] [cardbus] [pm]
> Intel ISA PCIC probe: not found.
> Databook TCIC-2 PCMCIA probe: not found.
> usb-uhci.c: $Revision: 1.275 $ time 00:50:50 Aug 9 2004
> usb-uhci.c: High bandwidth mode enabled
> usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
> usbdevfs: remount parameter error
> Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> parport0: PC-style at 0x378 [PCSPP,TRISTATE]
120,124c170,173
< PCI: Found IRQ 10 for device 0000:00:0b.0
< eth0: Davicom DM9102 at pci0000:00:0b.0, 00:d0:09:1e:b2:08, irq 10.
< cmpci: version $Revision: 6.82 $ time 04:15:48 Jan 24 2005
< PCI: Found IRQ 9 for device 0000:00:0f.0
< cmpci:
---
> PCI: Found IRQ 10 for device 00:0b.0
> eth0: Davicom DM9102 at pci00:0b.0, 00:d0:09:1e:b2:08, irq 10.
> cmpci: version $Revision: 6.16 $ time 00:49:29 Aug 9 2004
> PCI: Found IRQ 9 for device 00:0f.0
127,136c176
< usbcore: registered new driver usbfs
< usbcore: registered new driver hub
< ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
< ohci_hcd: block sizes: ed 64 td 64
< ohci_hcd 0000:00:01.2: Silicon Integrated Systems [SiS] USB 1.0 Controller
< ohci_hcd 0000:00:01.2: irq 3, pci mem c4032000
< ohci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
< hub 1-0:1.0: USB hub found
< hub 1-0:1.0: 2 ports detected
< agpgart: Detected SiS 620 chipset
---
> Linux agpgart interface v0.99 (c) Jeff Hartmann
137a178
> agpgart: Detected SiS 620 chipset
139,154c180
< cpci_hotplug: CompactPCI Hot Plug Core version: 0.2
< pci_hotplug: PCI Hot Plug PCI Core version: 0.5
< pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x1001
< shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001
< Linux Tulip driver version 1.1.13 (May 11, 2002)
< input: PC Speaker
< parport: PnPBIOS parport detected.
< parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
< inserting floppy driver for 2.6.8-2-686
< Floppy drive(s): fd0 is 1.44M
< FDC 0 is a post-1991 82077
< NET: Registered protocol family 17
< NET: Registered protocol family 10
< Disabled Privacy Extensions on device c02ff020(lo)
< IPv6 over IPv4 tunneling driver
< eth0: no IPv6 routers present
---
> Adding Swap: 979956k swap-space (priority -1)


_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.