From: Theodore Ts'o <tytso@mit.edu>
To: Julian Andres Klode <jak@jak-linux.org>,
Calvin Walton <calvin.walton@kepstin.ca>,
linux-ext4@vger.kernel.org
Subject: Re: Please help: Is ext4 counting trims as writes, or is something killing my SSD?
Date: Thu, 12 Sep 2013 11:28:45 -0400 [thread overview]
Message-ID: <20130912152845.GG12918@thunk.org> (raw)
In-Reply-To: <20130912151955.GA19285@jak-x230>
Ext4 is getting this information from the block layer. Specifically,
it's calling
part_stat_read(bd_part, sectors[WRITE])
to get the statistics information it uses to caluclate how many kb
have been written.
I'm not a block layer expert, but it may very well be the case that
TRIMS are being counted as requests. Requests are categorized as
either READS or WRITES, and I don't see any special casing for non r/w
requests in block/blk-core.c.
Regards,
- Ted
next prev parent reply other threads:[~2013-09-12 15:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-12 14:18 Please help: Is ext4 counting trims as writes, or is something killing my SSD? Julian Andres Klode
2013-09-12 14:26 ` Julian Andres Klode
2013-09-12 14:54 ` Calvin Walton
2013-09-12 15:03 ` Julian Andres Klode
2013-09-12 15:18 ` Eric Sandeen
2013-09-12 15:29 ` Calvin Walton
2013-09-12 15:33 ` Eric Sandeen
2013-09-12 15:32 ` Julian Andres Klode
2013-09-12 15:52 ` Eric Sandeen
2013-09-12 18:47 ` Theodore Ts'o
2013-09-13 13:41 ` Ric Wheeler
2013-09-13 13:38 ` Ric Wheeler
2013-09-12 15:19 ` Julian Andres Klode
2013-09-12 15:28 ` Theodore Ts'o [this message]
2013-09-12 15:29 ` Lukáš Czerner
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=20130912152845.GG12918@thunk.org \
--to=tytso@mit.edu \
--cc=calvin.walton@kepstin.ca \
--cc=jak@jak-linux.org \
--cc=linux-ext4@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.