** Description changed:

+ SRU Justification
+ 
+ [Impact]
+ 
+ * Seeing task txg_sync:696 blocked for > 120 seconds in some instances.
+ Logs included below SRU justification
+ 
+ [Fix]
+ 
+ * Backport 08fd5ccc38c3: "Improve performance for zpool trim on linux"
+ * Backport 370869c56dc8: "vdev_disk: ensure trim errors are returned 
immediately"
+ 
+ [Test Plan]
+ 
+ * Compile tested
+ * Run through autopkgtest regression tests
+ 
+ [Regression potential]
+ 
+ * Changes isolated, minimal regression risk. Changes already in upstream
+ ZFS
+ 
  [43501.152595] INFO: task txg_sync:696 blocked for more than 122 seconds.
  [43501.152613]       Tainted: P          IO       6.8.0-45-generic #45-Ubuntu
  [43501.152616] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [43501.152618] task:txg_sync        state:D stack:0     pid:696   tgid:696   
ppid:2      flags:0x00004000
  [43501.152625] Call Trace:
  [43501.152628]  <TASK>
  [43501.152633]  __schedule+0x27c/0x6b0
  [43501.152644]  schedule+0x33/0x110
  [43501.152649]  schedule_timeout+0x95/0x170
  [43501.152653]  ? __pfx_process_timeout+0x10/0x10
  [43501.152660]  io_schedule_timeout+0x51/0x80
  [43501.152666]  __cv_timedwait_common+0x139/0x180 [spl]
  [43501.152696]  ? __pfx_autoremove_wake_function+0x10/0x10
  [43501.152702]  __cv_timedwait_io+0x19/0x30 [spl]
  [43501.152725]  zio_wait+0x119/0x230 [zfs]
  [43501.153184]  spa_sync_frees+0x3f/0x90 [zfs]
  [43501.153635]  spa_sync_iterate_to_convergence+0x10b/0x220 [zfs]
  [43501.154067]  spa_sync+0x321/0x620 [zfs]
  [43501.154502]  txg_sync_thread+0x1e7/0x250 [zfs]
  [43501.154926]  ? __pfx_txg_sync_thread+0x10/0x10 [zfs]
  [43501.155347]  ? __pfx_thread_generic_wrapper+0x10/0x10 [spl]
  [43501.155386]  thread_generic_wrapper+0x5f/0x70 [spl]
  [43501.155415]  kthread+0xf2/0x120
  [43501.155421]  ? __pfx_kthread+0x10/0x10
  [43501.155425]  ret_from_fork+0x47/0x70
  [43501.155429]  ? __pfx_kthread+0x10/0x10
  [43501.155433]  ret_from_fork_asm+0x1b/0x30
  [43501.155440]  </TASK>
  [43501.155443] INFO: task vdev_autotrim:710 blocked for more than 122 seconds.
  [43501.155447]       Tainted: P          IO       6.8.0-45-generic #45-Ubuntu
  [43501.155449] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [43501.155451] task:vdev_autotrim   state:D stack:0     pid:710   tgid:710   
ppid:2      flags:0x00004000
  [43501.155456] Call Trace:
  [43501.155459]  <TASK>
  [43501.155461]  __schedule+0x27c/0x6b0
  [43501.155468]  schedule+0x33/0x110
  [43501.155472]  cv_wait_common+0x102/0x140 [spl]
  [43501.155494]  ? __pfx_autoremove_wake_function+0x10/0x10
  [43501.155501]  __cv_wait+0x15/0x30 [spl]
  [43501.155522]  vdev_autotrim_wait_kick+0x4d/0xb0 [zfs]
  [43501.155943]  vdev_autotrim_thread+0x44e/0x7b0 [zfs]
  [43501.156373]  ? __pfx_vdev_autotrim_thread+0x10/0x10 [zfs]
  [43501.156793]  ? __pfx_thread_generic_wrapper+0x10/0x10 [spl]
  [43501.156821]  thread_generic_wrapper+0x5f/0x70 [spl]
  [43501.156849]  kthread+0xf2/0x120
  [43501.156853]  ? __pfx_kthread+0x10/0x10
  [43501.156857]  ret_from_fork+0x47/0x70
  [43501.156861]  ? __pfx_kthread+0x10/0x10
  [43501.156864]  ret_from_fork_asm+0x1b/0x30
  [43501.156870]  </TASK>
  [43624.033465] INFO: task txg_sync:696 blocked for more than 245 seconds.
  [43624.033479]       Tainted: P          IO       6.8.0-45-generic #45-Ubuntu
  [43624.033483] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [43624.033486] task:txg_sync        state:D stack:0     pid:696   tgid:696   
ppid:2      flags:0x00004000
  [43624.033494] Call Trace:
  [43624.033498]  <TASK>
  [43624.033504]  __schedule+0x27c/0x6b0
  [43624.033517]  schedule+0x33/0x110
  [43624.033522]  schedule_timeout+0x95/0x170
  [43624.033528]  ? __pfx_process_timeout+0x10/0x10
  [43624.033537]  io_schedule_timeout+0x51/0x80
  [43624.033545]  __cv_timedwait_common+0x139/0x180 [spl]
  [43624.033583]  ? __pfx_autoremove_wake_function+0x10/0x10
  [43624.033588]  __cv_timedwait_io+0x19/0x30 [spl]
  [43624.033612]  zio_wait+0x119/0x230 [zfs]
  [43624.034070]  spa_sync_frees+0x3f/0x90 [zfs]
  [43624.034510]  spa_sync_iterate_to_convergence+0x10b/0x220 [zfs]
  [43624.034939]  spa_sync+0x321/0x620 [zfs]
  [43624.035373]  txg_sync_thread+0x1e7/0x250 [zfs]
  [43624.035796]  ? __pfx_txg_sync_thread+0x10/0x10 [zfs]
  [43624.036224]  ? __pfx_thread_generic_wrapper+0x10/0x10 [spl]
  [43624.036255]  thread_generic_wrapper+0x5f/0x70 [spl]
  [43624.036283]  kthread+0xf2/0x120
  [43624.036289]  ? __pfx_kthread+0x10/0x10
  [43624.036293]  ret_from_fork+0x47/0x70
  [43624.036297]  ? __pfx_kthread+0x10/0x10
  [43624.036301]  ret_from_fork_asm+0x1b/0x30
  [43624.036308]  </TASK>
  [43624.036311] INFO: task vdev_autotrim:710 blocked for more than 245 seconds.
  [43624.036315]       Tainted: P          IO       6.8.0-45-generic #45-Ubuntu
  [43624.036318] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [43624.036321] task:vdev_autotrim   state:D stack:0     pid:710   tgid:710   
ppid:2      flags:0x00004000
  [43624.036326] Call Trace:
  [43624.036327]  <TASK>
  [43624.036330]  __schedule+0x27c/0x6b0
  [43624.036336]  schedule+0x33/0x110
  [43624.036341]  cv_wait_common+0x102/0x140 [spl]
  [43624.036362]  ? __pfx_autoremove_wake_function+0x10/0x10
  [43624.036368]  __cv_wait+0x15/0x30 [spl]
  [43624.036390]  vdev_autotrim_wait_kick+0x4d/0xb0 [zfs]
  [43624.036809]  vdev_autotrim_thread+0x44e/0x7b0 [zfs]
  [43624.037240]  ? __pfx_vdev_autotrim_thread+0x10/0x10 [zfs]
  [43624.037679]  ? __pfx_thread_generic_wrapper+0x10/0x10 [spl]
  [43624.037708]  thread_generic_wrapper+0x5f/0x70 [spl]
  [43624.037736]  kthread+0xf2/0x120
  [43624.037740]  ? __pfx_kthread+0x10/0x10
  [43624.037744]  ret_from_fork+0x47/0x70
  [43624.037748]  ? __pfx_kthread+0x10/0x10
  [43624.037751]  ret_from_fork_asm+0x1b/0x30
  [43624.037757]  </TASK>
  [43746.914305] INFO: task vdev_autotrim:710 blocked for more than 368 seconds.
  [43746.914320]       Tainted: P          IO       6.8.0-45-generic #45-Ubuntu
  [43746.914324] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [43746.914327] task:vdev_autotrim   state:D stack:0     pid:710   tgid:710   
ppid:2      flags:0x00004000
  [43746.914335] Call Trace:
  [43746.914339]  <TASK>
  [43746.914345]  __schedule+0x27c/0x6b0
  [43746.914360]  schedule+0x33/0x110
  [43746.914366]  cv_wait_common+0x102/0x140 [spl]
  [43746.914398]  ? __pfx_autoremove_wake_function+0x10/0x10
  [43746.914405]  __cv_wait+0x15/0x30 [spl]
  [43746.914427]  vdev_autotrim_wait_kick+0x4d/0xb0 [zfs]
  [43746.914928]  vdev_autotrim_thread+0x44e/0x7b0 [zfs]
  [43746.915387]  ? __pfx_vdev_autotrim_thread+0x10/0x10 [zfs]
  [43746.915829]  ? __pfx_thread_generic_wrapper+0x10/0x10 [spl]
  [43746.915862]  thread_generic_wrapper+0x5f/0x70 [spl]
  [43746.915891]  kthread+0xf2/0x120
  [43746.915896]  ? __pfx_kthread+0x10/0x10
  [43746.915900]  ret_from_fork+0x47/0x70
  [43746.915905]  ? __pfx_kthread+0x10/0x10
  [43746.915909]  ret_from_fork_asm+0x1b/0x30
  [43746.915915]  </TASK>
  [43746.916012] INFO: task rsync:37630 blocked for more than 122 seconds.
  [43746.916016]       Tainted: P          IO       6.8.0-45-generic #45-Ubuntu
  [43746.916019] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables 
this message.
  [43746.916021] task:rsync           state:D stack:0     pid:37630 tgid:37630 
ppid:37629  flags:0x00000002
  [43746.916027] Call Trace:
  [43746.916029]  <TASK>
  [43746.916031]  __schedule+0x27c/0x6b0
  [43746.916050]  schedule+0x33/0x110
  [43746.916055]  cv_wait_common+0x102/0x140 [spl]
  [43746.916078]  ? __pfx_autoremove_wake_function+0x10/0x10
  [43746.916084]  __cv_wait+0x15/0x30 [spl]
  [43746.916106]  dmu_tx_wait+0x8b/0x1e0 [zfs]
  [43746.916522]  dmu_tx_assign+0x48/0x80 [zfs]
  [43746.916930]  zfs_write+0x4c6/0xd00 [zfs]
  [43746.917362]  zpl_iter_write+0x10c/0x150 [zfs]
  [43746.917776]  vfs_write+0x2a8/0x480
  [43746.917783]  ksys_write+0x73/0x100
  [43746.917788]  __x64_sys_write+0x19/0x30
  [43746.917791]  x64_sys_call+0x7e/0x25c0
  [43746.917794]  do_syscall_64+0x7f/0x180
  [43746.917800]  ? do_syscall_64+0x8c/0x180
  [43746.917804]  ? do_syscall_64+0x8c/0x180
  [43746.917808]  ? common_interrupt+0x54/0xb0
  [43746.917812]  entry_SYSCALL_64_after_hwframe+0x78/0x80
  [43746.917820] RIP: 0033:0x7d19f991c574
  [43746.917839] RSP: 002b:00007ffc7c30d6a8 EFLAGS: 00000202 ORIG_RAX: 
0000000000000001
  [43746.917843] RAX: ffffffffffffffda RBX: 00006271ac857840 RCX: 
00007d19f991c574
  [43746.917846] RDX: 0000000000040000 RSI: 00006271ac857840 RDI: 
0000000000000001
  [43746.917848] RBP: 00007ffc7c30d6d0 R08: 0000000000008000 R09: 
00006271ac8577b0
  [43746.917850] R10: 00006271ac857970 R11: 0000000000000202 R12: 
0000000000000001
  [43746.917852] R13: 00006271ac84f830 R14: 0000000000000000 R15: 
0000000000008000
  [43746.917857]  </TASK>
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: linux-image-6.8.0-45-generic 6.8.0-45.45
  ProcVersionSignature: Ubuntu 6.8.0-45.45-generic 6.8.12
  Uname: Linux 6.8.0-45-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia zfs
  ApportVersion: 2.28.1-0ubuntu3.1
  Architecture: amd64
  AudioDevicesInUse:
-  USER        PID ACCESS COMMAND
-  /dev/snd/seq:        js1        1865 F.... pipewire
-  /dev/snd/controlC1:  js1        1868 F.... wireplumber
-  /dev/snd/controlC0:  js1        1868 F.... wireplumber
+  USER        PID ACCESS COMMAND
+  /dev/snd/seq:        js1        1865 F.... pipewire
+  /dev/snd/controlC1:  js1        1868 F.... wireplumber
+  /dev/snd/controlC0:  js1        1868 F.... wireplumber
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Mon Sep 23 00:28:22 2024
  HibernationDevice: RESUME=none
  InstallationDate: Installed on 2022-09-23 (730 days ago)
  InstallationMedia: Kubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 
(20220223)
  MachineType: Dell Inc. Precision WorkStation T7500
  ProcFB: 0 simpledrmdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.8.0-45-generic 
root=UUID=8d4e3d24-75d2-481d-a49e-13f00a18f0a3 ro ipv6.disable=1 quiet splash 
vt.handoff=7
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
-  linux-restricted-modules-6.8.0-45-generic N/A
-  linux-backports-modules-6.8.0-45-generic  N/A
-  linux-firmware                            20240318.git3b128b60-0ubuntu2.3
+  linux-restricted-modules-6.8.0-45-generic N/A
+  linux-backports-modules-6.8.0-45-generic  N/A
+  linux-firmware                            20240318.git3b128b60-0ubuntu2.3
  RfKill:
-  0: phy0: Wireless LAN
-       Soft blocked: no
-       Hard blocked: no
+  0: phy0: Wireless LAN
+   Soft blocked: no
+   Hard blocked: no
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 10/15/2018
  dmi.bios.release: 0.0
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A18
  dmi.board.name: 0D881F
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A05
  dmi.chassis.type: 7
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvrA18:bd10/15/2018:br0.0:svnDellInc.:pnPrecisionWorkStationT7500:pvr:rvnDellInc.:rn0D881F:rvrA05:cvnDellInc.:ct7:cvr:sku:
  dmi.product.name: Precision WorkStation T7500
  dmi.sys.vendor: Dell Inc.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2081678

Title:
  task txg_sync:696 blocked

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2081678/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to