On Fri, Apr 23, 2010 at 6:47 AM, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> wrote: > If I understand correctly, SSDs work much more efficiently when > writing 64KB blocks. So much more efficiently in fact that waiting > to collect 16 4KB pages (by first copying them to fill a 64KB buffer) > will be faster than page-at-a-time DMA'ing them. If so, the > frontswap interface, backed by an asynchronous "buffering layer" > which collects 16 pages before writing to the SSD, may work > very nicely. Again this is still just speculation... I was > only pointing out that zero-copy DMA may not always be the best > solution. I guess you are talking about the write amplification issue of SSD. In fact, most of the new generation drives already solved the problem with log like structure. Even with the old drives, the size of the writes depends on the the size of the erase block, which is not necessary 64KB. Jiahua -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href