Re: [PATCH 2/3] btrfs: implement 'async-snapshot' command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 30 Oct 2010, Goffredo Baroncelli wrote:
> On Saturday, 30 October, 2010, Sage Weil wrote:
> > This is identical to 'snapshot', but uses the new async snapshot creation
> > ioctl, and prints out the transid the new snapshot will be committed
> > with.
> 
> Only for curiosity, how long may take snapshot a tree ? It should be only a 
> copy and update of few pages on the disk (the head of the trees), so the time 
> should be O(1)...

In theory, yes, but there is still a fair bit of disk io that goes on 
while preparing the commit in the current code.  Also, I found that even 
when the transaction does unblock, most operations end up waiting for the 
btree inode pages anyway, so there is definitely room for improvement.  
Still, this avoids waiting for the new superblocks to commit, and gets the 
interface in place to take advantage of future improvements in this area.

sage
--
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


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux