If I perform a btrfs send receive like so:sh -c btrfs send -p /mnt/everything/.snapshots/root.20191230 /mnt/everything/.snapshots/root.20191231 | btrfs receive /mnt/backup/.snapshots/
On Linux 5.4.0, the process completes successfully.Starting with Linux 5.5.0-rc1 up to the current 5.5 rc, 5.5.0-rc5, the result is the OOM killer being invoked which (among other process carnage) kills the btrfs processes stopping the backup.
I'm using the same kernel config, same hardware, etc in the two tests. The system has 16 GB of RAM, CPU is an i5-6500, arch is amd64. /mnt/everything is a btrfs fs on luks (/dev/mapper/sda4) on a 1 TB SATA SSD (/dev/sda4). /mnt/backup is btfs fs on luks (/dev/mapper/backup) on a 2 TB external spinning rust HDD (/dev/sdb).
# df -H /mnt/everything/ /mnt/backup Filesystem Size Used Avail Use% Mounted on /dev/mapper/sda4 949G 698G 247G 74% /mnt/everything /dev/mapper/backup 2.1T 1.1T 948G 53% /mnt/backupI've attached logs and my kernel config to https://bugzilla.kernel.org/show_bug.cgi?id=206031
Thank you, ~Craig
Attachment:
signature.asc
Description: OpenPGP digital signature
