-
I observe some short-lived txgs with 0 write on my desktop. The system is mostly idle. I could not figure out what is happening. Environment: root@svr:~# uname -a
Linux svr 5.11.0-17-generic #18-Ubuntu SMP Thu May 6 20:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@svr:~# zfs --version
zfs-2.0.2-1ubuntu5
zfs-kmod-2.0.2-1ubuntu5 root@svr:~# zpool status tank
pool: tank
state: ONLINE
scan: scrub repaired 0B in 03:52:44 with 0 errors on Sun Apr 11 04:16:59 2021
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
wwn-0x50014ee2678f201f ONLINE 0 0 0
special
ata-Crucial_CT275MX300SSD1_16291347CFBB-part1 ONLINE 0 0 0
logs
ata-Samsung_SSD_840_PRO_Series_S1ANNSADC24321M-part5 ONLINE 0 0 0
errors: No known data errors
root@svr:~# cat /proc/spl/kstat/zfs/dmu_tx
12 1 0x01 12 3264 3434216544 70643407317271
name type data
dmu_tx_assigned 4 3809725
dmu_tx_delay 4 0
dmu_tx_error 4 0
dmu_tx_suspended 4 0
dmu_tx_group 4 24
dmu_tx_memory_reserve 4 0
dmu_tx_memory_reclaim 4 2
dmu_tx_dirty_throttle 4 0
dmu_tx_dirty_delay 4 248384
dmu_tx_dirty_over_max 4 0
dmu_tx_dirty_frees_delay 4 392
dmu_tx_quota 4 0
root@svr:~# arcstat
time read miss miss% dmis dm% pmis pm% mmis mm% size c avail
13:22:56 0 0 0 0 0 0 0 0 0 11G 11G 400M root@svr:~# cat /proc/spl/kstat/zfs/tank/txgs
txg birth state ndirty nread nwritten reads writes otime qtime wtime stime
10990882 70580715490152 C 0 0 0 0 0 99323 1307 5100 18556
10990883 70580715589475 C 0 0 0 0 0 7269 899 20010 12188
10990884 70580715596744 C 0 0 0 0 0 38695 830 6400 15608
10990885 70580715635439 C 19067392 0 18137088 0 159 5179379380 2422 41771 231786899
10990886 70585895014819 C 6881280 393216 6852608 3 104 5120004219 4349 40644 111675785
10990887 70591015019038 C 9261568 131072 8560640 1 146 5120073205 3800 51448 136375964
10990888 70596135092243 C 18320384 0 13336576 0 165 5120074678 8525 90105 172042805
10990889 70601255166921 C 35808256 1531904 35000320 12 171 5119898720 3038 20844 385155934
10990890 70606375065641 C 9706496 0 9379840 0 150 5120096612 8385 86580 143184596
10990891 70611495162253 C 23356928 0 22704128 0 163 5120019035 5331 49317 267552210
10990892 70616615181288 C 933888 131072 1359872 1 105 267635444 17260 15505 77436678
10990893 70616882816732 C 0 0 0 0 0 77489005 2861 35985 164641
10990894 70616960305737 C 0 0 0 0 0 212603 1947 12502 144278
10990895 70616960518340 C 0 0 0 0 0 213399 2206 9344 26797
10990896 70616960731739 C 3815424 0 3448832 0 146 5030418913 3932 36336 102442241
10990897 70621991150652 C 8167424 786432 6705152 5 122 5119985383 5273 66254 126856517
10990898 70627111136035 C 1720320 786432 2142208 6 110 126947276 2748 12225 89068133
10990899 70627238083311 C 2307584 655360 2342912 5 126 89095221 2347 9927 77935280
10990900 70627327178532 C 1851392 393216 2162688 3 105 77966404 2491 15729 88709360
10990901 70627405144936 C 1720320 393216 2084864 3 104 88749080 3358 43341 88788879
10990902 70627493894016 C 5662720 0 5271552 0 135 5249307036 8000 90485 139412215
10990903 70632743201052 C 0 0 0 0 0 139527936 2481 25862 178190
10990904 70632882728988 C 0 0 0 0 0 211836 1093 12764 162977
10990905 70632882940824 C 0 0 0 0 0 182258 985 8818 16896
10990906 70632883123082 C 0 0 0 0 0 81118 2340 10899 9304112
10990907 70632883204200 C 0 0 0 0 0 21582122 1544 62643 6303375
10990908 70632904786322 C 0 0 0 0 0 6388607 1576 57752 33283
10990909 70632911174929 C 0 0 0 0 0 101999 1422 40477 33042
10990910 70632911276928 C 0 0 0 0 0 129539 1365 42265 19615
10990911 70632911406467 O 0 0 0 0 0 0 0 0 0 root@svr:/tank/test# tail -n 100 /proc/spl/kstat/zfs/dbgmsg
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136156 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136156 sa.c:369:sa_attr_op(): error 2
1622136156 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136156 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136157 sa.c:369:sa_attr_op(): error 2
1622136157 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136157 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136157 sa.c:369:sa_attr_op(): error 2
1622136157 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136157 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136158 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136158 sa.c:369:sa_attr_op(): error 2
1622136158 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136158 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136158 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136158 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136158 sa.c:369:sa_attr_op(): error 2
1622136158 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136158 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136158 dsl_dir.c:1331:dsl_dir_tempreserve_impl(): error 28
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136158 dmu.c:455:dmu_spill_hold_existing(): error 2
1622136158 sa.c:369:sa_attr_op(): error 2
1622136158 zfs_dir.c:1154:zfs_get_xattrdir(): error 2
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2
1622136158 zap_micro.c:1611:zap_cursor_retrieve(): error 2 |
Beta Was this translation helpful? Give feedback.
Answered by
jxdking
May 29, 2021
Replies: 2 comments
-
Found the answer by myself. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jxdking
-
Attempt to fix #12184 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the answer by myself.
It is related autotrim activities. You can verify it by set autotrim=off.
It seems not to affect performance very much.