Score:0

txg_sync doing lots of reads on my ZFS pool

ee flag

I ran iotop today for a few hours on my storage server which has a few ZFS datasets that are mounted elsewhere as NFS volumes. After a few hours, the accumulated read/write statistics showed that txg_sync is doing the majority of read activity on the server but ZERO write activity.

I was surprised by this because I thought txg_sync is responsible for flushing async WRITES from RAM to the pool every 5 seconds. I would have therefore expected it to do a lot of WRITE activity... but somehow it only does READS and quite a lot of those (6.8 TB over ~4 hours). The command with the highest WRITE activity is nfsd with ~350GB after 4 hours.

Only thing I can imagine that could be causing these reads is the snapshotting that is going on every 15 minutes by sanoid (which often does a zfs list -t snapshot, which takes ~10 minutes each time to complete on this server). Could that cause those massive reads? Would that even be done by txg_sync??

heeeresjohnny avatar
ee flag
Okay, after watching iotop intensely while those `zfs list -t snapshot`s occured, I can confirm: The high read activity comes from there... every invocation adds a massive 80GB to `txg_sync`'s READ column and it is invoked quite frequently.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.