Re: Very low disk performance on 5.x

From: Steven Hartland (killing_at_multiplay.co.uk)
Date: 05/02/05

  • Next message: Arne : "Re: Very low disk performance on 5.x"
    To: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
    Date: Mon, 2 May 2005 22:56:57 +0100
    
    

    ----- Original Message -----
    From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>

    > On -current and 5.4 you don't have to make partitions if you
    > intend to use the entire disk (and provided you don't want
    > to boot from it). You can simply:
    >
    > newfs /dev/da0
    > mount /dev/da0 /where_ever

    /dev/da0: 1526216.3MB (3125691008 sectors) block size 16384, fragment size 2048
      using 8306 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
    mount /dev/da0 /mnt

    dd if=/dev/zero of=/mnt/testfile bs=64k count=100000
    100000+0 records in
    100000+0 records out
    6553600000 bytes transferred in 44.424588 secs (147521908 bytes/sec)

    /usr/bin/time -h dd of=/dev/null if=/mnt/testfile bs=64k count=100000
    100000+0 records in
    100000+0 records out
    6553600000 bytes transferred in 48.150473 secs (136106658 bytes/sec)
            48.27s real 0.01s user 12.33s sys

    /usr/bin/time -h cat /mnt/testfile > /dev/null
            48.12s real 0.26s user 14.92s sys

    Raw read:
    /usr/bin/time -h dd of=/dev/null if=/dev/da0 bs=64k count=100000
    100000+0 records in
    100000+0 records out
    6553600000 bytes transferred in 32.028544 secs (204617482 bytes/sec)
            32.02s real 0.02s user 2.73s sys

    /usr/bin/time -h dd of=/dev/null if=/dev/da0 bs=1m count=6000
    6000+0 records in
    6000+0 records out
    6291456000 bytes transferred in 31.518195 secs (199613460 bytes/sec)
            31.51s real 0.00s user 1.87s sys

    > One thing you could try is to use a larger block/fragment size
    > on your filesystem. Try:
    >
    > newfs -b 32768 -f 4096 /dev/da0
    /dev/da0: 1526216.3MB (3125691008 sectors) block size 32768, fragment size 4096
            using 2063 cylinder groups of 740.00MB, 23680 blks, 47360 inodes.

    /usr/bin/time -h dd if=/dev/zero of=/mnt/testfile bs=64k count=100000
    100000+0 records in
    100000+0 records out
    6553600000 bytes transferred in 35.237328 secs (185984590 bytes/sec)
            35.34s real 0.07s user 28.81s sys

    /usr/bin/time -h dd of=/dev/null if=/mnt/testfile bs=64k count=100000
    100000+0 records in
    100000+0 records out
    6553600000 bytes transferred in 39.154845 secs (167376477 bytes/sec)
            39.16s real 0.01s user 14.33s sys

    Slower than the default :(

    ================================================
    This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.

    In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
    or return the E.mail to postmaster@multiplay.co.uk.

    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"


  • Next message: Arne : "Re: Very low disk performance on 5.x"

    Relevant Pages

    • Re: cannot mount ext3 partition which is viewable with Linux Rescue boot
      ... So i have a new install on another HD disk and am trying to mount the original disk so that i can retrieve some data from it. ... I can see these files under /mnt/sysimage when i boot with the old disk as primary and "linux rescue". ... Since e2fsck does not work on that disk, I advise copying the device data using "dd" to another disk. ...
      (comp.os.linux.questions)
    • Re: [SLE] rsync procedural thing - OT?
      ... # Just the top level home directory to NFS mount onto ... It copies the partition table as well. ... Set the new disk as the boot disk in BIOS, ...
      (SuSE)
    • Re: Problems booting after new motherboard - label /1 not found
      ... Just to let you know I have fixed this issue, it was because of a missing driver for the disk. ... Boot from the rescue CD ... mount: error 2 mounting ext3 ... I notice it says, "Loading SATA_VIA driver", so I wonder if I need to get that driver onto my existing system? ...
      (Fedora)
    • Re: New FC8 install: How to prevent auto-mounting???
      ... with using mount & umount from the command line as needed. ... I boot to runlevel 3 and start kde via startx as ... mentionned in fstab, I think that if you don't use auto-mount, you will ... The disk has the same, ...
      (Fedora)
    • 2.4/2.6 - ATAPI Zip problem in SCSI mode (DEVFS)
      ... The problem is that when having Linux booted and placing a Zip disk into ... But the drive was found during boot. ... For 2.5 this doesn't work anymore and whenever you want to mount a Zip ... disk you need to boot Linux together with a Disk inside the Drive, ...
      (Linux-Kernel)