Re: Very low disk performance on 5.x

From: Jonathan Noack (noackjr_at_alumni.rice.edu)
Date: 05/03/05

  • Next message: Jim C. Nasby: "Re: 64bit CPUs"
    Date: Mon, 02 May 2005 17:16:44 -0500
    To: Steven Hartland <killing@multiplay.co.uk>
    
    
    

    On 5/2/2005 4:56 PM, Steven Hartland wrote:
    > ----- 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

    Look at the difference in sys times for raw vs. filesystem reads. With
    raw we're at 2.73s while reading from the filesystem requires 12.33s!
     From my position of complete ignorance that seems like a lot...

    -- 
    Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195
    
    



  • Next message: Jim C. Nasby: "Re: 64bit CPUs"

    Relevant Pages

    • RE: Raw device VS cooked file - any benchmark recently done?
      ... have a number of systems that are running with acceptable performance on raw ... But from almost 20 years of working with this disk architecture and with ... But will that continue when the UNIX file system gets more ... recent advances in I/O caching for cooked writes can provide ...
      (comp.databases.informix)
    • RE: Raw device VS cooked file - any benchmark recently done?
      ... Subject: Re: Raw device VS cooked file - any benchmark recently done? ... it might be actually true that there are disk devices able to achieve "I/O ... The IBM IDS 10 Server Administrator ...
      (comp.databases.informix)
    • Re: DiskEdit
      ... I'd use dd to create a copy of the relevant disk blocks to a file, ... I've been using ghex2 for editing, and then dd to copy the data back to ... the raw disk if needs be. ... toggle between little endian and big endian modes. ...
      (comp.os.linux.hardware)
    • Re: Calling all Canon DSLR photographers that use a Mac...
      ... I'm using windows (waitng for the new 27''quad core imac and ... then migrating to mac), and with a codec, windows gives a small thumbnail of ... Do macs also show RAWs as small thumbnails for Canon's Cr2 RAW format? ... plus plan on lots of disk and processor grunt. ...
      (uk.comp.sys.mac)
    • Re: Raw Disk still preferred for 11.5? - File system type for SDS
      ... Laurie Gustin wrote: ... Also - I have been reading the manuals, and blogs, and whitepapers, etc., about seeting up SDS servers and it really doesnt talk much about how the shared disk is accesed/referenced on the SDS servers. ... What you call "laziness" is in my view a perfectly good reason to not use RAW. ...
      (comp.databases.informix)