Description of problem: I tried to perform a btrfs send/receive with a remote system (over ssh). After executing the command, it will consume more and more RAM until being killed by systemd-oomd. The subvolume size is 22.83GiB and the total system memory is 16GiB. Version-Release number of selected component (if applicable): btrfs-progs v5.18 kernel 5.19.9-200.fc36.x86_64 systemd v250.8-1.fc36 openSSH OpenSSH_8.8p1 How reproducible: Steps to Reproduce: 1.The command used is: `sudo btrfs send <local_readonly_snapshot> | ssh -i <path_to_key> <host> "sudo btrfs receive <remote_volume>"` 2.on remote system, `sudo btrfs receive` is configured with NOPASSWD. Actual results: btrfs is killed by systemd-oomd Expected results: snapshot is sent to remote system successfully
I can't reproduce this on either Fedora 36 or Fedora 37. Can you attach logs? journalctl -b > journal.log will show both kernel and systemd messages.
Created attachment 1913052 [details] Content of journalctl -b
I think I found a way to reproduce this bug. Just try with fish shell and the bug occurs whereas it works like a charm with bash.
I was finally able to figure out what was going wrong and it's not a btrfs-progs bug. I finally opened an issue on fish project. You can retrieve it here: https://github.com/fish-shell/fish-shell/issues/9747