Bug 63691

Summary: btrfs memory leak
Product: File System Reporter: disarmer (disarmer.mk)
Component: btrfsAssignee: Josef Bacik (josef)
Status: RESOLVED INVALID    
Severity: normal CC: dsterba
Priority: P1    
Hardware: i386   
OS: Linux   
Kernel Version: Linux grey 3.11.4-1-ARCH Subsystem:
Regression: No Bisected commit-id:
Attachments: atop view

Description disarmer 2013-10-25 18:25:59 UTC
Created attachment 112251 [details]
atop view

Hi! 
I'm using up-to-date archlinux with btrfs(on non-root partition) on small home server. Before, when i'm used ext4, all was well.

Sometimes(about two times a week) server hangs and stops responding to any request, except ping. Ports remain opened, but even sshd didn't send banner. Server's casing is hot (i'm assume high cpu usage).

I'm grabbed snapshot with atop (see attach). This looks like server runs out of memory although just several percents used by applications. I see a lot of btrfs processes in list.

$ btrfs --version
Btrfs v0.20-rc1-358-g194aa4a

kernel: 3.11.4-1-ARCH

Mount with: /dev/sda7 /mnt/stor btrfs rw,noatime,compress=lzo,space_cache 0 0

Excuse me for my poor english.
Comment 1 Josef Bacik 2013-10-31 20:56:21 UTC
So it looks like the kernel isn't using much memory, just ~300mb for page cache and ~25mb for slab, so this isn't a btrfs issue, you probably have a misbehaving application that is driving you into swap for some reason.