Skip to contentSkip to conversation

generic/224 causes OOM and hangs 1G RAM system

BUG Qu Wenruo 1 participant 2 messages Dec 24, 2013 Btrfs file system

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

Hi everyone,

When using testcase generic/224 in xfstests on a 1Gigabytes RAM test machine,
OOM is triggered after about 5 sec and then hangs the system.

This bug can be triggered *all the time* but only on 1Gigabytes or less RAM machine.
If tested on a 2Gigabytes or higher machine, the memory consumption is high, but OOM will not be triggered and after the testcase, memory consumption will
return normal.

So this is not a memory leak but a ridiculous btrfs behavior.

Since systems with 1Gigabytes are not quite old and even very common in VMs or
embedded devices, it would be better to fix the ridiculous memory consuption.

Thanks,
Qu

author
#1 lore raw

It seems that ext4 also has the same problem.
And the problem also happens in 3.11 kernel, seems to be a fs independent things.

Qu

Quoted 27 lines · Qu Wenruo

Hi everyone,

When using testcase generic/224 in xfstests on a 1Gigabytes RAM test machine,
OOM is triggered after about 5 sec and then hangs the system.

This bug can be triggered *all the time* but only on 1Gigabytes or less RAM machine.
If tested on a 2Gigabytes or higher machine, the memory consumption is high, but OOM will not be triggered and after the testcase, memory consumption will
return normal.

So this is not a memory leak but a ridiculous btrfs behavior.

Since systems with 1Gigabytes are not quite old and even very common in VMs or
embedded devices, it would be better to fix the ridiculous memory consuption.

Thanks,
Qu
--
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