linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel 3.7 + slower snapshot then usual
@ 2012-12-13  4:26 Sylvain Alain
  2012-12-13  8:23 ` Miao Xie
  0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Alain @ 2012-12-13  4:26 UTC (permalink / raw)
  To: linux-btrfs

Hi guys, I noticed that now my snapshot take a long time to process :

sylvain@gentootux ~ $ df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
rootfs             112G    4,0G  103G   4% /
/dev/sda4          112G    4,0G  103G   4% /
tmpfs              7,9G    596K  7,9G   1% /run
udev                10M       0   10M   0% /dev
none               7,9G       0  7,9G   0% /dev/shm
cgroup_root         10M       0   10M   0% /sys/fs/cgroup
tmpfs               12G       0   12G   0% /var/tmp/portage
/dev/sdb2          224G     52G  173G  23% /mnt/win_c
/dev/sdc2          912G    412G  500G  46% /mnt/win_d

sylvain@gentootux ~ $ su -
Mot de passe :

gentootux ~ # mount /dev/sda4 -o
noatime,ssd,discard,compress=lzo,noacl,space_cache,subvolid=0
/mnt/disklayout/

gentootux ~ # cd /mnt/disklayout/

gentootux disklayout # ls
@backup  @racine

gentootux disklayout # time btrfs subvolume delete @backup
Delete subvolume '/mnt/disklayout/@backup'

real 0m0.020s
user 0m0.001s
sys 0m0.002s
gentootux disklayout # ls
@racine

gentootux disklayout # time btrfs subvolume snapshot @racine @backup
Create a snapshot of '@racine' in './@backup'

real 6m9.122s
user 0m0.000s
sys 0m0.523s

more then 6 minutes to snapshot 4 gigs of data, that's twice slower
then kernel 3.6.

Is there any log or something that I look after ?

sylvain@gentootux ~ $ sudo dmesg | grep -i btrfs
[    0.371528] Btrfs loaded
[    0.784593] btrfs: disk space caching is enabled
[    0.788680] Btrfs detected SSD devices, enabling SSD mode
[    0.789757] VFS: Mounted root (btrfs filesystem) readonly on device 0:12.
[    4.881241] btrfs: use ssd allocation scheme
[    4.881244] btrfs: use lzo compression
[    4.881245] btrfs: disk space caching is enabled
[  496.982616] btrfs: unlinked 14 orphans

Thanks !


--
Salut
alp
Sylvain

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Kernel 3.7 + slower snapshot then usual
  2012-12-13  4:26 Kernel 3.7 + slower snapshot then usual Sylvain Alain
@ 2012-12-13  8:23 ` Miao Xie
  0 siblings, 0 replies; 2+ messages in thread
From: Miao Xie @ 2012-12-13  8:23 UTC (permalink / raw)
  To: Sylvain Alain; +Cc: linux-btrfs

On wed, 12 Dec 2012 23:26:02 -0500, Sylvain Alain wrote:
> Hi guys, I noticed that now my snapshot take a long time to process :
> 
> sylvain@gentootux ~ $ df -h
> Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
> rootfs             112G    4,0G  103G   4% /
> /dev/sda4          112G    4,0G  103G   4% /
> tmpfs              7,9G    596K  7,9G   1% /run
> udev                10M       0   10M   0% /dev
> none               7,9G       0  7,9G   0% /dev/shm
> cgroup_root         10M       0   10M   0% /sys/fs/cgroup
> tmpfs               12G       0   12G   0% /var/tmp/portage
> /dev/sdb2          224G     52G  173G  23% /mnt/win_c
> /dev/sdc2          912G    412G  500G  46% /mnt/win_d
> 
> sylvain@gentootux ~ $ su -
> Mot de passe :
> 
> gentootux ~ # mount /dev/sda4 -o
> noatime,ssd,discard,compress=lzo,noacl,space_cache,subvolid=0
> /mnt/disklayout/
> 
> gentootux ~ # cd /mnt/disklayout/
> 
> gentootux disklayout # ls
> @backup  @racine
> 
> gentootux disklayout # time btrfs subvolume delete @backup
> Delete subvolume '/mnt/disklayout/@backup'
> 
> real 0m0.020s
> user 0m0.001s
> sys 0m0.002s
> gentootux disklayout # ls
> @racine
> 
> gentootux disklayout # time btrfs subvolume snapshot @racine @backup
> Create a snapshot of '@racine' in './@backup'
> 
> real 6m9.122s
> user 0m0.000s
> sys 0m0.523s
> 
> more then 6 minutes to snapshot 4 gigs of data, that's twice slower
> then kernel 3.6.
> 
> Is there any log or something that I look after ?
> 
> sylvain@gentootux ~ $ sudo dmesg | grep -i btrfs
> [    0.371528] Btrfs loaded
> [    0.784593] btrfs: disk space caching is enabled
> [    0.788680] Btrfs detected SSD devices, enabling SSD mode
> [    0.789757] VFS: Mounted root (btrfs filesystem) readonly on device 0:12.
> [    4.881241] btrfs: use ssd allocation scheme
> [    4.881244] btrfs: use lzo compression
> [    4.881245] btrfs: disk space caching is enabled
> [  496.982616] btrfs: unlinked 14 orphans

What kind of kernel did you use? mainline kernel?

Thanks
Miao

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-13  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-13  4:26 Kernel 3.7 + slower snapshot then usual Sylvain Alain
2012-12-13  8:23 ` Miao Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).