unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stan Bischof <stan@worldbadminton.com>
To: help-gnu-emacs@gnu.org
Subject: Re: dd - unequal speed from partition to partition, partition to file, file to partition
Date: 28 Mar 2011 19:37:52 GMT	[thread overview]
Message-ID: <4d90e390$0$10613$742ec2ed@news.sonic.net> (raw)
In-Reply-To: 25819901-c857-405d-8ef6-ee0ac2ee1ea0@18g2000prd.googlegroups.com

In comp.os.linux.misc bolega <gnuist006@gmail.com> wrote:
> dd - unequal speed from partition to partition, partition to file,
> file to partition
> 
> /dev/sda1 to /dev/sda2            around 25Meg/s
> /dev/sda1 to a file_sda1          around 12Meg/s
> file_sda1 to /dev/sda1             around  5Meg/s
> 
> Why ???
> 
> I have played with various block sizes such 1M, 4M, 500M
> 
> In the all three cases, its from the same disk to itself   OR   from
> different disks, eg SATA to USB ... if I recall correctly.
> 
> Please give an explanation why read from a file to disk partition is
> so slow ???
> 

Well, the obvious answer ( maybe even the right one ! ) is that
different disks and interfaces have different speeds available,
different cache sizes and so on.

Transferrring from one SATA disk to another SATA on the same bus 
will definitely be a different speed than transferring from the
same disk to another disk mounted on USB. Transferring from one
disk to another will be different ( likely faster ) than
from one disk to elsewhere on the same disk.

In each case the data goes through a path- and the slowest
link in that path will determine the overall speed. Then
you get into other items like cache size- small files may be very
fast if they fit into cache while big files can be much
slower since they overflow the cache. Lots of variables.

There is absolutely no reason to expect the various paths
to be the same speed , not even taking into account the
software used.

Stan


  reply	other threads:[~2011-03-28 19:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28 19:28 dd - unequal speed from partition to partition, partition to file, file to partition bolega
2011-03-28 19:37 ` Stan Bischof [this message]
2011-03-28 22:29 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4d90e390$0$10613$742ec2ed@news.sonic.net' \
    --to=stan@worldbadminton.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).