On Sat, Dec 15, 2007 at 11:04:04PM +0100, Ivan Voras wrote:CF and the flash based SSD drives rotate the flash cells anyway, so it doesn't matter that much if you write the same block or not. I wouldn't worry about wearing out those devices, since todays media survive many writes. I wouldn't do both with them unless required for a specific reason. The problem is how they work. They contain NAND flash chips which have two data areas containing data blocks of typically slightly more than 4 or 8kB these days. One area is 100% error free with high write rate, but small and the other is of much less quality, but large. Devices use the later for the offered data blocks and the good cells for maintening allocation of them. One problem is with the data blocks beeing that big, when writing 512 Byte you effectifly do a read-modify-write of a larger physical block. This can be handled quite well with larger FS block. The much bigger problem is with power loss when writing such a maintenence block. You loose a very large area of logical blocks when this fails, since a 4k maintenence block contains the allocation for several hundert kB of logical data blocks. In other words - you possibly loose data blocks that were not written a long time and the database wouldn't expect a problem with that data. Even for ZIL it is very questionable if you loose a large data area, since the purpose is to have the data that was already sinced readable after a power loss. I'm not sure what happens in case of a device reset in the wrong moment, possibly this depends on the specific media, but I wouldn't be surprised to see read errors after a reset without power loss as well. This is true with all NAND based flash media, SD, MMC, SM, CF, ... There are medias which are less critical because of the way they utulize the maintenance blocks, but those things are usually a secret to the vendor. I do run PostgreSQL on SD media with ARM based FreeBSD systems, but I'm prepared to loose the whole database and to recover it from backup if things go wrong. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
| Jeremy Fitzhardinge | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Mike Galbraith | Re: regression: CD burning (k3b) went broke |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Linus Torvalds | Re: [GIT]: Networking |
| Michael Grollman | Re: 8169 Intermittent ifup Failure Issue With RTL8102E Chipset in Intel's New D945... |
