All of lore.kernel.org
 help / color / mirror / Atom feed
* Aligning file system data
@ 2005-03-30  4:32 John Richard Moser
  2005-03-30  5:37 ` Bernd Eckenfels
  2005-03-30  5:40 ` Barry K. Nathan
  0 siblings, 2 replies; 5+ messages in thread
From: John Richard Moser @ 2005-03-30  4:32 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How likely is it that I can actually align stuff to 31.5KiB on the
physical disk, i.e. have each block be a track?

Rather than leveraging the track cache, would it be less expensive for
me to simply read in blocks totaling about 16 or 32KiB all at once?


Let's say I have two situations...

A)
  My blocks are all 31.5KiB (512 bytes/sector * 63 sectors) and aligned
to tracks.  The track cache on the disk stores the entire block, so
repeted reads to the disk are 0mS seek.  I leverage this to read a
couple sectors at a time and seek as I care within the block while it's
cached, making several requests to the ATA device.

B)
  My blocks are all 32KiB and cross track boundaries.  All of them exist
in part in two separate tracks.  Upon reading a block, I request the
entire block and work with it in main memory.

Which situation has less overhead?

C)
  My blocks are all 31.5KiB and perfectly aligned within tracks.  I read
the entire block as in (B) and work with it in main memory.

How much more latency is involved in (B) than in (C)?  Does crossing a
track boundary incur anything expensive?


- --
All content of all messages exchanged herein are left in the
Public Domain, unless otherwise explicitly stated.

    Creative brains are a valuable, limited resource. They shouldn't be
    wasted on re-inventing the wheel when there are so many fascinating
    new problems waiting out there.
                                                 -- Eric Steven Raymond
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCSivPhDd4aOud5P8RAszeAJ4wPonhpXas8IprMBUq8/NdM57aegCdEBva
24LXB3O+7GEE0XKxPBFr1L0=
=iTEm
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <3ND9P-2LV-1@gated-at.bofh.it>]

end of thread, other threads:[~2005-03-30  5:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30  4:32 Aligning file system data John Richard Moser
2005-03-30  5:37 ` Bernd Eckenfels
2005-03-30  5:40 ` Barry K. Nathan
     [not found] <3ND9P-2LV-1@gated-at.bofh.it>
2005-03-30  4:50 ` Robert Hancock
2005-03-30  5:30   ` John Richard Moser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.