Hi

I'd just like to comment that I currently have the same problem, quota
are enabled, server can't stay up more than 15 days without hogging
all of its memory. Use case is a torrent server which has more read
than writes and a desktop. Kmemleak does not detect this leak after 10
days and at least 2 GB used.

On my system, only leaks found were from Nvidia and AppArmor (Ubuntu
14.04 kernel 3.13 with Nvidia proprietary driver).

On Sun, Jul 13, 2014 at 9:24 PM, Qu Wenruo <[email protected]> wrote:
>
> -------- Original Message --------
> Subject: Re: btrfs is related to OOM death problems on my 8GB server with
> both 3.15.1 and 3.14?
> From: Marc MERLIN <[email protected]>
> To: Andrew E. Mileski <[email protected]>
> Date: 2014年07月13日 22:29
>>
>> On Sun, Jul 06, 2014 at 07:58:15AM -0700, Marc MERLIN wrote:
>>>>
>>>> As an update, after 1.7 days of scrubbing, the system has started
>>>> getting sluggish, I'm getting synchronization problems/crashes in some
>>>> of
>>>> my tools that talk to serial ports (likely due to mini deadlocks in the
>>>> kernel), and I'm now getting a few btrfs hangs.
>>>
>>> Predictably, it died yesterday afternoon after going into memory death
>>> (it was answering pings, but userspace was dead, and even sysrq-o did
>>> not respond, I had to power cycle the power outlet).
>>>
>>> This happened just before my 3rd scrub finished, so I'm now 2 out of 2:
>>> running scrub on my 3 filesystems kills the system half way through the
>>> 3rd scrub.
>>
>> Ok, I now changed the subject line to confirm that btrfs is to blame.
>>
>> I had my system booted 6 days and it held steady at 6.4GB free.
>> I mounted 2 of my 4 btrfs filesystems (one by one) and waited a few
>> days, and no problems with RAM going down.
>>
>> Then I mounted my 3rd btrfs filesystem, the one that holds many files
>> that has rsync backups running, and I lost 1.4GB of RAM overnight.
>> I've just umounted one of its mountpoints, the one where all the backups
>> happen while leaving its main pool mounted and will see if RAM keeps
>> going down or not (i.e. whether the memory leak is due to rsync activity
>> or some other background btrfs process).
>>
>> But generally, is there a tool to locate which kernel function allocated
>> all that RAM that seems to get allocated and forgotten?
>
> This can be done by kernel memleak detection.
> Location:
> -> Kernel hacking
>     -> Memory Debugging
>         -> Kernel memory leak detector
>
> Then you can check /sys/kernel/debug/memleak to see which function call
> caused the problem.
>
> Thanks,
> Qu
>
>>
>> Is /proc/slabinfo supposed to show anything useful?
>>
>> This is the filesystem in question:
>> gargamel:~# btrfs fi df /mnt/btrfs_pool2/
>> Data, single: total=3.34TiB, used=3.32TiB
>> System, DUP: total=8.00MiB, used=400.00KiB
>> System, single: total=4.00MiB, used=0.00
>> Metadata, DUP: total=77.50GiB, used=59.87GiB
>> Metadata, single: total=8.00MiB, used=0.00
>>
>>
>> Thanks,
>> Marc
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to