Re: some issues with lots of snapshots

2010-10-30 Thread Pat Regan
On Fri, 29 Oct 2010 08:31:05 +0200
Roman Kapusta roman.kapu...@gmail.com wrote:

 On Fri, Oct 29, 2010 at 00:03, Pat Regan theh...@patshead.com wrote:
  On Wed, 27 Oct 2010 10:39:48 +0200
  Xavier Nicollet nicol...@jeru.org wrote:
 
  Le 26 octobre 2010 à 15:15, Pat Regan a écrit:
   I turned off the 5-minute snapshots and I'm now just keeping 4
   weekly, 7 daily, and 24 hourly snapshots alive.
 
  I have just rebooted and I am going with /15 minutes interval.
 
 
  I'm just replying so this is documented somewhere.
 
  After I read your message I decided to turn on snaphots at 15 minute
  intervals yesterday.  This morning I had snapshot processing
  filling up my process list again.
 
 I think there is no problem with snapshot creation every 5 or 15
 minutes, but problem is with deleting old snapshots every 5 or 15
 minutes. Can you try to run cleanup of old snapshots only once per day
 to check if it will improve?

Reducing the frequency of snapshot removal sure did work.  I started
with a pretty large amount of time between snapshot removal jobs and I
have been decreasing that number.  I have been running with a 1 hour
delay between snapshot removals for almost 24 hours so far with no
problems.

Pat
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: some issues with lots of snapshots

2010-10-28 Thread Pat Regan
On Wed, 27 Oct 2010 10:39:48 +0200
Xavier Nicollet nicol...@jeru.org wrote:

 Le 26 octobre 2010 à 15:15, Pat Regan a écrit:
  I turned off the 5-minute snapshots and I'm now just keeping 4
  weekly, 7 daily, and 24 hourly snapshots alive.
 
 I have just rebooted and I am going with /15 minutes interval.
 

I'm just replying so this is documented somewhere.

After I read your message I decided to turn on snaphots at 15 minute
intervals yesterday.  This morning I had snapshot processing filling up
my process list again.

My laptop is a quad core i7 and the btrfs file system is on an Intel
X25-M 80 gig.  I don't know if a fast drives increases or decreases the
likelihood of having this problem or not.

Pat
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: some issues with lots of snapshots

2010-10-26 Thread Pat Regan
On Tue, 26 Oct 2010 12:28:53 +0200
Xavier Nicollet nicol...@jeru.org wrote:

 I can't reproduce this right know, but it seems that creating lots of
 snapshots, one per minute (keeping only a dozens of them) may block
 the system. Every btrfs snap processes stay idle and the load
 skyrockets to 900.
 
 I use an old version: 2.6.34.5 kernel, and the system is still very
 responsive (web and mysql server).

I had the same thing happen with a 2.6.36-rc6 kernel on my laptop.  My
cron jobs were creating snapshots and 5 minute intervals and keeping 12
of them active.

I turned off the 5-minute snapshots and I'm now just keeping 4 weekly, 7
daily, and 24 hourly snapshots alive.

Pat
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html