From: Milan Broz <mbroz@redhat.com>
To: Alexander Koch <mail@alexanderkoch.net>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Testing TRIM with hdparm on dm-crypt
Date: Wed, 09 Nov 2011 21:58:18 +0100 [thread overview]
Message-ID: <4EBAE96A.3020800@redhat.com> (raw)
In-Reply-To: <4EBAE1B0.2030205@alexanderkoch.net>
On 11/09/2011 09:25 PM, Alexander Koch wrote:
>> You should be also able to trace discard (and other) block requests
>> using blktrace/btrace, this should be really more user friendly :)
>
> I tried blktrace but didn't know which event to track. Supported list
> includes READ, WRITE, BARRIER, SYNC, QUEUE, REQUEUE, ISSUE, COMPLETE, FS
> and PC.
man blkparse and search for "discard", it should be marked 'D'
something like here, here using simulated scsi_debug device
# modprobe scsi_debug dev_size_mb=16 sector_size=512 num_tgts=1 lbpu=1
# btrace /dev/<scsi_debug device> -a issue
...
8,144 1 19 0.002461433 2146 D D 0 + 32768 [mkfs.ext4]
# fstrim <mountpoint>
...
8,144 1 52 8.372211281 2239 D D 162 + 2 [fstrim]
8,144 1 53 8.382095450 2239 D D 168 + 28 [fstrim]
8,144 1 54 8.391463509 2239 D D 1222 + 15164 [fstrim]
8,144 1 55 8.402445119 2239 D D 18564 + 14204 [fstrim]
Milan
prev parent reply other threads:[~2011-11-09 20:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 18:14 [dm-crypt] Testing TRIM with hdparm on dm-crypt Alexander Koch
2011-11-09 18:54 ` Milan Broz
2011-11-09 20:25 ` Alexander Koch
2011-11-09 20:58 ` Milan Broz [this message]
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=4EBAE96A.3020800@redhat.com \
--to=mbroz@redhat.com \
--cc=dm-crypt@saout.de \
--cc=mail@alexanderkoch.net \
/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.