Re: [RFC] ext3 freeze feature

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitri Monakhov
Date: Friday, January 25, 2008 - 5:18 am

On 19:59 Fri 25 Jan     , Takashi Sato wrote:
First of all Linux already have at least one open-source(dm-snap),
and several commercial snapshot solutions. In fact dm-snaps it
not perfect:
a) bit map loading is not supported (this is useful for freezing 
   only used blocks) which causing significant  slowdown even for new writes
b) non patched dm-snap code has significant performance slowdown for all 
   rewrite requests. 
c) IMHO memory footprint is too big.

BUT, it works well for most file-systems.
So you plan to do it from userspace.. well good luck with it :)


You have to realize what delay between 1-3 stages have to be minimal.
for example dm-snap perform it only for explicit journal flushing.
From my experience if delay is more than 4-5 seconds whole system becomes
unstable.
BTW: you have to always remember that while locking ext3 via freeze_bdev
 sb->ext3_write_super_lockfs() will be called wich implemented as "simple"
journal lock. This means what some bio-s still may reach original device
even after file system was locked (i've observed this in real life 
situation).


WOW timeout extending is not supported !?
So you wanna say what caller have to set timer to the maximal possible
timeout from the very beginning.
IMHO it is better to use heart-beat timer approach, for example:
each second caller extend it's timeout for two seconds. in this approach
even after caller was killed by any reason, it's timeout will be expired in
two seconds.
 
		if (inode->i_sb->s_frozen == SB_FROZEN)
			/* extending timeout */
			...... 


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] ext3 freeze feature, Takashi Sato, (Fri Jan 25, 3:59 am)
Re: [RFC] ext3 freeze feature, Pekka Enberg, (Fri Jan 25, 4:17 am)
Re: [RFC] ext3 freeze feature, Dmitri Monakhov, (Fri Jan 25, 5:18 am)
Re: [RFC] ext3 freeze feature, Theodore Tso, (Fri Jan 25, 6:33 am)
Re: [RFC] ext3 freeze feature, Eric Sandeen, (Fri Jan 25, 9:34 am)
Re: [RFC] ext3 freeze feature, Theodore Tso, (Fri Jan 25, 9:42 am)
Re: [RFC] ext3 freeze feature, David Chinner, (Fri Jan 25, 10:35 pm)
Re: [RFC] ext3 freeze feature, David Chinner, (Fri Jan 25, 10:39 pm)
Re: [RFC] ext3 freeze feature, Daniel Phillips, (Thu Jan 31, 1:53 am)
Re: [RFC] ext3 freeze feature, Pavel Machek, (Sat Feb 2, 6:52 am)