Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756249Ab2FDSaL (ORCPT ); Mon, 4 Jun 2012 14:30:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:49470 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756126Ab2FDSaF (ORCPT ); Mon, 4 Jun 2012 14:30:05 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Lutz Vieweg Subject: Improving SD/SDHC/SDXC write performance by using a discard/TRIM like operation Date: Mon, 04 Jun 2012 20:27:01 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: barriere.frankfurter-softwarefabrik.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1298 Lines: 22 When I read reports from (non-expert) users who claimed that they were able to restore the initial write performance of their SDXC cards by using a "special formatter tool" (while normal "formatting" did not improve performance), I was very sceptical, as I also had read that there is no way to discard/TRIM blocks on SD/SDHC/SDXC cards. But then I noticed that this "special formatter" tool was actually offered (for free) by the SD Association: https://www.sdcard.org/downloads/formatter_3/ ... and its documentation clearly states that this tool is capable of using "flash erase" operations on SD cards, which are said to be different from ordinary "overwrites", see https://www.sdcard.org/downloads/formatter_3/SDFormatter_3.1e.pdf pages 7 ("Format type Erase" vs. "Format type Overwrite") and the screen shot on page 9. Now I wonder: Is there really such a thing as a command to erase NAND flashes in SD cards like there is for SSDs? If so, it would certainly be a good thing to support it with Linux block discard... Regards, Lutz Vieweg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/