Open naota opened 3 years ago
The filling script
#!/bin/bash
DEV=/dev/sda
MNT=/mnt/test
set -e
findmnt ${MNT} && umount ${MNT}
mkfs.btrfs -d single -m single -f ${DEV}
mount ${DEV} ${MNT}
cd ${MNT}
x=0
maxx=$(ls | sed -e 's/file//' | sort -rn | head -n 1)
if [[ -n "${maxx}" ]]; then
x=${maxx}
fi
while : ; do
while [[ $(jobs | wc -l) -gt 30 ]]; do
wait -n
done
if [[ $((x % 100)) == 0 ]]; then
echo $(date) file $x / $(blkzone report ${DEV}|grep em|wc -l) empty zones left
fi
dd if=/dev/zero of=file${x} oflag=direct bs=256M count=1 >/dev/null 2>/dev/null &
x=$((x+1))
done
umount ${DEV}
This one is caused by memory pressure introduced by page leak. The page leak issue is fixed with commit d9cf3bd53184 ("bio: fix page leak bio_add_hw_page failure").
But, we might be still suffering the hung with memory pressure situation...?
While I'm filling an FS to test #57, I got hung_task issue.