All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Greg Freemyer <greg.freemyer@gmail.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
	Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Intel Updates SSDs, Supports TRIM, Faster Writes
Date: Thu, 12 Nov 2009 00:50:19 -0500	[thread overview]
Message-ID: <yq1tyx0l2as.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <87f94c370911110900h776286d9xba8d7f696dec18c1@mail.gmail.com> (Greg Freemyer's message of "Wed, 11 Nov 2009 12:00:15 -0500")

>>>>> "Greg" == Greg Freemyer <greg.freemyer@gmail.com> writes:

Greg> So for a workload mostly composed of small files residing on a MD
Greg> raid 4/5/6 setup, how is this supposed to work.  (ie. Tiffs, small
Greg> word docs, pdfs, individual emails, etc.)

The intent of thin provisioning is not to free up 4KB of space when you
delete an email.  The intent is to free 4GB when you delete a database
or a virtual machine disk image.

In the RAID array space, allocation units bigger than a single stripe
are common.  I'm not aware of any arrays that track sectors or
filesystem block sized chunks.

We're exposing as much information about the mapping granularity as the
hardware is willing to share.  This is done so that filesystems have the
option of laying out data accordingly.  For instance a filesystem can
choose to reuse recently freed blocks and to pack data tightly together
instead of the traditional approach of spreading things out over the
entire LBA range.


Greg> Most of the individual files will be less than one stripe wide, so
Greg> when they are deleted I gather the discard range will be less than
Greg> a stripe and therefore MD would ignore it in the simplest of
Greg> implementations.  ie. Without coalescence at some point, MD will
Greg> never forward discards to the hardware.

Greg> Thus I would think for that workload, the nightly full freespace
Greg> scan and discard would be the best solution.

Well that's certainly possible to implement for small setups.  And less
tedious than tracking individual sector mapping in MD.

-- 
Martin K. Petersen	Oracle Linux Engineering

  reply	other threads:[~2009-11-12  5:50 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-08 17:57 Intel Updates SSDs, Supports TRIM, Faster Writes Bill Davidsen
2009-11-08 22:30 ` Thomas Fjellstrom
2009-11-09  1:13 ` Majed B.
2009-11-09 16:37   ` Chris Worley
2009-11-09 16:42     ` Majed B.
2009-11-09 16:59       ` Chris Worley
2009-11-10  9:42         ` Kasper Sandberg
2009-11-10 15:39           ` Chris Worley
2009-11-10 15:43             ` Majed B.
2009-11-10 15:58               ` Chris Worley
2009-11-10 16:01                 ` Majed B.
2009-11-10 16:15                   ` Robin Hill
2009-11-10 16:31                     ` Chris Worley
2009-11-10 16:18                   ` Chris Worley
2009-11-10 18:31                     ` Majed B.
2009-11-10 23:03                       ` Mathieu Chouquet-Stringer
2009-11-11  2:52                         ` Majed B.
2009-11-10 18:40                     ` Kasper Sandberg
2009-11-10 15:48             ` Asdo
2009-11-10 16:04               ` Chris Worley
2009-11-11 18:02                 ` Default User
2009-11-10 18:38             ` Kasper Sandberg
2009-11-10 16:36         ` Martin K. Petersen
2009-11-10 17:22           ` Chris Worley
2009-11-10 20:11             ` Martin K. Petersen
2009-11-10 20:45               ` Chris Worley
2009-11-10 22:35                 ` Martin K. Petersen
2009-11-11 18:17                   ` Chris Worley
2009-11-10 21:01               ` Greg Freemyer
2009-11-10 21:17                 ` Chris Worley
2009-11-10 22:56                 ` Martin K. Petersen
2009-11-11 17:00                   ` Greg Freemyer
2009-11-12  5:50                     ` Martin K. Petersen [this message]
2009-11-09 18:42   ` Greg Freemyer

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

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

  git send-email \
    --in-reply-to=yq1tyx0l2as.fsf@sermon.lab.mkp.net \
    --to=martin.petersen@oracle.com \
    --cc=greg.freemyer@gmail.com \
    --cc=linux-raid@vger.kernel.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 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.