Discard issue
Hi Chao,
I'm hitting segment.c:1065 when running longer fsstress (1000s) with error injection. Do you have any issue from your side?
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Jaegeuk,
Quoted 3 lines · Jaegeuk Kim
Hi Chao,
I'm hitting segment.c:1065 when running longer fsstress (1000s) with error
(1000s) do you mean time in single round or total time of multi rounds?
Quoted 1 line
injection. Do you have any issue from your side?
I haven't hit that before, in my test, in single round, fsstress won't last long time (normally about 10s+ for each round).
Below is por_fsstress() implementation in my code base:
por_fsstress()
{
_fs_opts
while true; do
ltp/fsstress -x "echo 3 > /proc/sys/vm/drop_caches" -X 10 -r -f fsync=8 -f sync=0 -f write=4 -f dwrite=2 -f truncate=6 -f allocsp=0 -f bulkstat=0 -f bulkstat1=0 -f freesp=0 -f zero=1 -f collapse=1 -f insert=1 -f resvsp=0 -f unresvsp=0 -S t -p 20 -n 200000 -d $TESTDIR/test &
sleep 10
src/godown $TESTDIR
killall fsstress
sleep 5
umount $TESTDIR
if [ $? -ne 0 ]; then
for i in `seq 1 50`
do
umount $TESTDIR
if [ $? -eq 0]; then
break
fi
sleep 5
done
fi
echo 3 > /proc/sys/vm/drop_caches
_fsck
_mount f2fs
rm $TESTDIR/testfile
touch $TESTDIR/testfile
umount $TESTDIR
_fsck
_mount f2fs
_rm_50
done
}Did you update this code?
Could you share more test configuration, like mkfs option, device size, mount option, new por_fsstress() implementation if it exists? I can try to reproduce this issue in my env.
Thanks,
Quoted 4 lines
Thanks,
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 49 lines · Chao Yu
Hi Jaegeuk,
Quoted 3 lines · Jaegeuk Kim
Hi Chao,
I'm hitting segment.c:1065 when running longer fsstress (1000s) with error
(1000s) do you mean time in single round or total time of multi rounds?
Quoted 1 line
injection. Do you have any issue from your side?
I haven't hit that before, in my test, in single round, fsstress won't last long time (normally about 10s+ for each round).
Below is
por_fsstress()implementation in my code base:
por_fsstress(){ _fs_opts while true; do ltp/fsstress -x "echo 3 > /proc/sys/vm/drop_caches" -X 10 -r -f fsync=8 -f sync=0 -f write=4 -f dwrite=2 -f truncate=6 -f allocsp=0 -f bulkstat=0 -f bulkstat1=0 -f freesp=0 -f zero=1 -f collapse=1 -f insert=1 -f resvsp=0 -f unresvsp=0 -S t -p 20 -n 200000 -d $TESTDIR/test & sleep 10 src/godown $TESTDIR killall fsstress sleep 5 umount $TESTDIR if [ $? -ne 0 ]; then for i in `seq 1 50` do umount $TESTDIR if [ $? -eq 0]; then break fi sleep 5 done fi echo 3 > /proc/sys/vm/drop_caches _fsck _mount f2fs rm $TESTDIR/testfile touch $TESTDIR/testfile umount $TESTDIR _fsck _mount f2fs _rm_50 done }
Quoted 5 lines
Did you update this code?
Could you share more test configuration, like mkfs option, device size, mount option, new
por_fsstress()implementation if it exists? I can try to reproduce this issue in my env.
I just changed, in __run_godown_fsstress(), sleep 1000 instead of 10.
https://github.com/jaegeuk/xfstests-f2fs/blob/f2fs/run.sh#L249
./run.sh por_fsstress
Quoted 7 lines
Thanks,
Quoted 4 lines
Thanks,
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 56 lines · Jaegeuk Kim
Quoted 49 lines · Chao Yu
Hi Jaegeuk,
Quoted 3 lines · Jaegeuk Kim
Hi Chao,
I'm hitting segment.c:1065 when running longer fsstress (1000s) with error
(1000s) do you mean time in single round or total time of multi rounds?
Quoted 1 line
injection. Do you have any issue from your side?
I haven't hit that before, in my test, in single round, fsstress won't last long time (normally about 10s+ for each round).
Below is
por_fsstress()implementation in my code base:
por_fsstress(){ _fs_opts while true; do ltp/fsstress -x "echo 3 > /proc/sys/vm/drop_caches" -X 10 -r -f fsync=8 -f sync=0 -f write=4 -f dwrite=2 -f truncate=6 -f allocsp=0 -f bulkstat=0 -f bulkstat1=0 -f freesp=0 -f zero=1 -f collapse=1 -f insert=1 -f resvsp=0 -f unresvsp=0 -S t -p 20 -n 200000 -d $TESTDIR/test & sleep 10 src/godown $TESTDIR killall fsstress sleep 5 umount $TESTDIR if [ $? -ne 0 ]; then for i in `seq 1 50` do umount $TESTDIR if [ $? -eq 0]; then break fi sleep 5 done fi echo 3 > /proc/sys/vm/drop_caches _fsck _mount f2fs rm $TESTDIR/testfile touch $TESTDIR/testfile umount $TESTDIR _fsck _mount f2fs _rm_50 done }Quoted 5 lines
Did you update this code?
Could you share more test configuration, like mkfs option, device size, mount option, new
por_fsstress()implementation if it exists? I can try to reproduce this issue in my env.
Quoted 5 lines
I just changed, in
__run_godown_fsstress(), sleep 1000 instead of 10.https://github.com/jaegeuk/xfstests-f2fs/blob/f2fs/run.sh#L249
./run.sh
por_fsstress
Reproducing...
Thanks,
Quoted 10 lines
Quoted 8 lines
Thanks,
Quoted 4 lines
Thanks,
..
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 57 lines · Chao Yu
Quoted 56 lines · Jaegeuk Kim
Quoted 54 lines · Chao Yu
Hi Jaegeuk,
Quoted 3 lines · Jaegeuk Kim
Hi Chao,
I'm hitting segment.c:1065 when running longer fsstress (1000s) with error
(1000s) do you mean time in single round or total time of multi rounds?
Quoted 1 line
injection. Do you have any issue from your side?
I haven't hit that before, in my test, in single round, fsstress won't last long time (normally about 10s+ for each round).
Below is
por_fsstress()implementation in my code base:
por_fsstress(){ _fs_opts while true; do ltp/fsstress -x "echo 3 > /proc/sys/vm/drop_caches" -X 10 -r -f fsync=8 -f sync=0 -f write=4 -f dwrite=2 -f truncate=6 -f allocsp=0 -f bulkstat=0 -f bulkstat1=0 -f freesp=0 -f zero=1 -f collapse=1 -f insert=1 -f resvsp=0 -f unresvsp=0 -S t -p 20 -n 200000 -d $TESTDIR/test & sleep 10 src/godown $TESTDIR killall fsstress sleep 5 umount $TESTDIR if [ $? -ne 0 ]; then for i in `seq 1 50` do umount $TESTDIR if [ $? -eq 0]; then break fi sleep 5 done fi echo 3 > /proc/sys/vm/drop_caches _fsck _mount f2fs rm $TESTDIR/testfile touch $TESTDIR/testfile umount $TESTDIR _fsck _mount f2fs _rm_50 done }Did you update this code?
Could you share more test configuration, like mkfs option, device size, mount option, new
por_fsstress()implementation if it exists? I can try to reproduce this issue in my env.
Quoted 7 lines
Quoted 5 lines
I just changed, in
__run_godown_fsstress(), sleep 1000 instead of 10.https://github.com/jaegeuk/xfstests-f2fs/blob/f2fs/run.sh#L249
./run.sh
por_fsstressReproducing...
After one night reproducing, the issue still not occur..
BTW, I enabled below features in image:
extra_attr project_quota inode_checksum flexible_inline_xattr inode_crtime compression
and tagged compression flag on root inode.
Quoted 15 lines
Thanks,
Quoted 10 lines
Quoted 8 lines
Thanks,
Quoted 4 lines
Thanks,
..
Quoted 6 lines
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 66 lines · Chao Yu
Quoted 57 lines · Chao Yu
Quoted 56 lines · Jaegeuk Kim
Quoted 54 lines · Chao Yu
Hi Jaegeuk,
Quoted 3 lines · Jaegeuk Kim
Hi Chao,
I'm hitting segment.c:1065 when running longer fsstress (1000s) with error
(1000s) do you mean time in single round or total time of multi rounds?
Quoted 1 line
injection. Do you have any issue from your side?
I haven't hit that before, in my test, in single round, fsstress won't last long time (normally about 10s+ for each round).
Below is
por_fsstress()implementation in my code base:
por_fsstress(){ _fs_opts while true; do ltp/fsstress -x "echo 3 > /proc/sys/vm/drop_caches" -X 10 -r -f fsync=8 -f sync=0 -f write=4 -f dwrite=2 -f truncate=6 -f allocsp=0 -f bulkstat=0 -f bulkstat1=0 -f freesp=0 -f zero=1 -f collapse=1 -f insert=1 -f resvsp=0 -f unresvsp=0 -S t -p 20 -n 200000 -d $TESTDIR/test & sleep 10 src/godown $TESTDIR killall fsstress sleep 5 umount $TESTDIR if [ $? -ne 0 ]; then for i in `seq 1 50` do umount $TESTDIR if [ $? -eq 0]; then break fi sleep 5 done fi echo 3 > /proc/sys/vm/drop_caches _fsck _mount f2fs rm $TESTDIR/testfile touch $TESTDIR/testfile umount $TESTDIR _fsck _mount f2fs _rm_50 done }Did you update this code?
Could you share more test configuration, like mkfs option, device size, mount option, new
por_fsstress()implementation if it exists? I can try to reproduce this issue in my env.Quoted 7 lines
Quoted 5 lines
I just changed, in
__run_godown_fsstress(), sleep 1000 instead of 10.https://github.com/jaegeuk/xfstests-f2fs/blob/f2fs/run.sh#L249
./run.sh
por_fsstressReproducing...
Quoted 7 lines
After one night reproducing, the issue still not occur..
BTW, I enabled below features in image:
extra_attrproject_quotainode_checksumflexible_inline_xattrinode_crtimecompressionand tagged compression flag on root inode.
Could you check disk supports discard? I didn't set compression to the root inode.
I set _mkfs with "f2fs":
mkfs.f2fs -f -O encrypt -O extra_attr -O quota -O inode_checksum /dev/$DEV;;
# run.sh reload # run.sh por_fsstress
Quoted 16 lines
Quoted 16 lines
Thanks,
Quoted 10 lines
Quoted 8 lines
Thanks,
Quoted 4 lines
Thanks,
..
Quoted 6 lines
Quoted 6 lines
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 69 lines · Jaegeuk Kim
Quoted 68 lines · Chao Yu
Quoted 57 lines · Chao Yu
Quoted 56 lines · Jaegeuk Kim
Quoted 54 lines · Chao Yu
Hi Jaegeuk,
Quoted 3 lines · Jaegeuk Kim
Hi Chao,
I'm hitting segment.c:1065 when running longer fsstress (1000s) with error
(1000s) do you mean time in single round or total time of multi rounds?
Quoted 1 line
injection. Do you have any issue from your side?
I haven't hit that before, in my test, in single round, fsstress won't last long time (normally about 10s+ for each round).
Below is
por_fsstress()implementation in my code base:
por_fsstress(){ _fs_opts while true; do ltp/fsstress -x "echo 3 > /proc/sys/vm/drop_caches" -X 10 -r -f fsync=8 -f sync=0 -f write=4 -f dwrite=2 -f truncate=6 -f allocsp=0 -f bulkstat=0 -f bulkstat1=0 -f freesp=0 -f zero=1 -f collapse=1 -f insert=1 -f resvsp=0 -f unresvsp=0 -S t -p 20 -n 200000 -d $TESTDIR/test & sleep 10 src/godown $TESTDIR killall fsstress sleep 5 umount $TESTDIR if [ $? -ne 0 ]; then for i in `seq 1 50` do umount $TESTDIR if [ $? -eq 0]; then break fi sleep 5 done fi echo 3 > /proc/sys/vm/drop_caches _fsck _mount f2fs rm $TESTDIR/testfile touch $TESTDIR/testfile umount $TESTDIR _fsck _mount f2fs _rm_50 done }Did you update this code?
Could you share more test configuration, like mkfs option, device size, mount option, new
por_fsstress()implementation if it exists? I can try to reproduce this issue in my env.Quoted 7 lines
Quoted 5 lines
I just changed, in
__run_godown_fsstress(), sleep 1000 instead of 10.https://github.com/jaegeuk/xfstests-f2fs/blob/f2fs/run.sh#L249
./run.sh
por_fsstressReproducing...
After one night reproducing, the issue still not occur..
Quoted 8 lines
Quoted 5 lines
BTW, I enabled below features in image:
extra_attrproject_quotainode_checksumflexible_inline_xattrinode_crtimecompressionand tagged compression flag on root inode.
Could you check disk supports discard? I didn't set compression to the root inode.
I start to review discard support codes from yesterday, however I have not found anything suspectable yet.
Quoted 3 lines
I set
_mkfswith "f2fs":
mkfs.f2fs -f -O encrypt -Oextra_attr-O quota -Oinode_checksum/dev/$DEV;;
Let me update test configs.
Thanks,
Quoted 20 lines
# run.sh reload # run.sh por_fsstressQuoted 16 lines
Quoted 16 lines
Thanks,
Quoted 10 lines
Quoted 8 lines
Thanks,
Quoted 4 lines
Thanks,
..
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
..
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel