diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-25 13:06:26 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-25 13:06:26 +0000 |
commit | df21a4d2ecac6e720d0153105debd13ffdb279b7 (patch) | |
tree | c56301c2385e5bd611960ac491d5ab0ff07b1051 /sys/scsi | |
parent | 4defec669eb4e1c187ac7b36963eb24940140f22 (diff) |
Account for in-flight pages being written to disk when computing page shortage.
Due to its asynchronous design, on MP machines, the page daemon was generally
over swapping memory resulting in a degenerative behavior when OOM.
To prevent swapping more pages than necessary, take the amount of in-flight
pages into account when calculating the page shortage.
Tested by sthen@ and miod@. ok claudio@, tb@
Diffstat (limited to 'sys/scsi')
0 files changed, 0 insertions, 0 deletions