On Thu, Oct 24, 2013 at 11:52:01PM +0300, Timofey Titovets wrote: > Hello, i suggest temporary solution to use swap file under btrfs. > I test it, and it work good. > > I invent simple the way, how create and using swap file, just see > following sh code: > > swapfile=$(losetup -f) #free loop device > truncate -s 8G /swap #create 8G sparse swap file I'd suggest to do full dd on that file and make it NOCOW first. That way it should minimize attempts to actually allocate the file blocks at the time they're needed for swap out. Also a bit of stress testing that this actually works is needed. > losetup $swapfile /swap #mount file to loop > mkswap $swapfile > swapon $swapfile david -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
