]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid the "Cannot allocate memory" problem that appears on heavily
authordes <des@FreeBSD.org>
Mon, 12 Oct 1998 20:36:33 +0000 (20:36 +0000)
committerdes <des@FreeBSD.org>
Mon, 12 Oct 1998 20:36:33 +0000 (20:36 +0000)
commit8eaab1764cab145597a7e2574f238594639dd9ec
tree30684161ccd9c4d83cf232b015dbdd9fc16691a0
parent016509e2471290bfe1dd1dd32cdf524c7c0f9051
Avoid the "Cannot allocate memory" problem that appears on heavily
loaded systems by retrying the sysctl() with a larger buffer if it
fails with ENOMEM. For good measure, allocate 10% more memory than
sysctl() claims is necessary.

PR: 8275
Reviewed by: David Greenman <dg@freebsd.org>
lib/libkvm/kvm_proc.c