Bug 63691 - btrfs memory leak
Summary: btrfs memory leak
Status: RESOLVED INVALID
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: i386 Linux
: P1 normal
Assignee: Josef Bacik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-25 18:25 UTC by disarmer
Modified: 2013-11-06 14:38 UTC (History)
1 user (show)

See Also:
Kernel Version: Linux grey 3.11.4-1-ARCH
Subsystem:
Regression: No
Bisected commit-id:


Attachments
atop view (233.73 KB, image/png)
2013-10-25 18:25 UTC, disarmer
Details

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.

Note You need to log in before you can comment on or make changes to this bug.