linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* unconditional discard calls in the swap code
@ 2009-10-30  6:51 Christoph Hellwig
  2009-10-30 17:26 ` Hugh Dickins
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2009-10-30  6:51 UTC (permalink / raw)
  To: hugh.dickins; +Cc: linux-mm

Hi Hugh,

since 6a6ba83175c029c7820765bae44692266b29e67a the swap code
unconditionally calls blkdev_issue_discard when swap clusters get freed.
So far this was harmless because only the mtd driver has discard support
wired up and it's pretty fast there (entirely done in-kernel).

We're now adding support for real UNAP/TRIM support for SCSI arrays and
SSDs, and so far all the real life ones we've dealt with have too many
performance issues to just issue the discard requests on the fly.
Because of that unconditionally enabling this code is a bad idea, it
really needs an option to disable it or even better just leave it
disabled by default for now with an option to enable it.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-31  0:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-30  6:51 unconditional discard calls in the swap code Christoph Hellwig
2009-10-30 17:26 ` Hugh Dickins
2009-11-18 17:12   ` Christoph Hellwig
2009-11-30 17:22     ` [PATCH] mm: don't discard unused swap slots by default Christoph Hellwig
2009-11-30 18:28       ` Hugh Dickins
2009-11-30 18:58         ` Martin K. Petersen
2009-12-31  0:33         ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox