[Bug 275594] High CPU usage by arc_prune; analysis and fix

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 Jan 2024 06:31:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275594

--- Comment #41 from Thomas Mueller <thmu7@freenet.de> ---
I added changes from commits
  a57d4914c11f4bc6d5ed33e146f2664315f64701
  4efe36b1428a9956a049fc5fc5f19d4a001d51bf 
from your stable/13-topic-openzfs-arc_prune-regulation-fix branch
to my 13-STABLE kernel and things look much better now.

I have no exact comparable data though, but from observation
 - while poudriere is running, kernel{arc_prune} could not be 
   observed consuming 100% CPU or any other unusually high 
   values for longer amounts of time
 - while poudriere is running, parallel heavy disk I/O 
   (e.g. by periodic daily/weekly) will no longer slow the 
   system down
 - no spurious build failures ("bad file descriptor") observed
   for now
 - after a poudriere run, "pkg upgrade" of large packages,
   (for example texlive-texmf) no longer triggers high
   CPU usage of kernel{arc_prune} and also does no longer
   take unusually long time
 - poudriere pkg/hour went from 5-20 up to 55 (no exact
   comparable builds), just an observation from previous
   samples and one build with ~400 packages on the patched 
   system
 - no negative impact of poudriere (2 jails) running at idle 
   priority on productive work or video playback

-- 
You are receiving this mail because:
You are the assignee for the bug.