44 if (!process->getSubsystem())
48 candidate = pedigree_std::move(process);
50 if (process->getPhysicalPageCount() > candidate->getPhysicalPageCount()) {
51 candidate = pedigree_std::move(process);
59 NOTICE_NOLOCK(
"MemoryPressureProcessKiller will kill pid=" <<
Dec << candidate->
getId() <<
Hex);
60 NOTICE_NOLOCK(
"virt=" <<
Dec << mb(candidate->getVirtualPageCount())
61 <<
"m phys=" << mb(candidate->getPhysicalPageCount())
62 <<
"m shared=" << mb(candidate->getSharedPageCount()) <<
"m" <<
Hex);
66 Subsystem* pSubsystem = candidate->getSubsystem();
68 if (!candidate->
acquireThread(target,
static_cast<size_t>(0))) {
72 Metrics::increment(Metrics::MemoryPressureKill);
74 pSubsystem->
kill(Subsystem::Unknown, target.get());