[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1436899703-31966-1-git-send-email-axboe@fb.com>
Date: Tue, 14 Jul 2015 12:48:20 -0600
From: Jens Axboe <axboe@...com>
To: <linux-kernel@...r.kernel.org>
CC: <snitzer@...hat.com>, <hch@....de>
Subject: [PATCH 0/3 v2] Configurable max discard size
Hi,
Most drivers use UINT_MAX (or some variant thereof) for max discard
size, since they don't have a real limit for a non-data transferring
command. This is fine from a throughput point of view, but for a lot
of devices (all?), it truly sucks on latency. We've seen cases of
hundreds of msec in latencies for reads/writes when deleting files
on an fs with discard enabled. For the problematic devices that we
have tested, artificially limiting the size of the discards issued
brings it down to a more manageable 1-2ms max latencies.
Changes since v1:
- Keep separate sysfs files for hw and sw max discard values.
- Add patch 3, defaulting to 64MB discard sizes.
--
Jens Axboe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists