lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 12 Feb 2007 14:08:04 -0800
From:	Jeff Davis <linux@...avis.com>
To:	linux-kernel@...r.kernel.org
Subject: shared memory is over-counted N times when calculating badness()

In oom_kill.c, badness() counts half the total_vm of all the children
against the parent.

The problem with this calculation is that, if the parent and children
share memory, the shared memory is over-counted N/2 times where N is the
number of children.

There's already a hard limit on the amount of shared memory, so it's
unlikely that process is runaway due to shared memory consumption, and
shouldn't add to a process's badness() score.

Shouldn't it just use (total_vm - shared_vm) instead, and never even
count shared memory?

Regards,
	Jeff Davis

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ