From owner-freebsd-hackers Mon Oct 16 19:15:37 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from search.sparks.net (search.sparks.net [208.5.188.60]) by hub.freebsd.org (Postfix) with ESMTP id D0A0337B4C5 for ; Mon, 16 Oct 2000 19:15:35 -0700 (PDT) Received: by search.sparks.net (Postfix, from userid 100) id 5D0D2DC74; Mon, 16 Oct 2000 22:08:57 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by search.sparks.net (Postfix) with ESMTP id 47736DC73 for ; Mon, 16 Oct 2000 22:08:57 -0400 (EDT) Date: Mon, 16 Oct 2000 22:08:57 -0400 (EDT) From: David Miller To: freebsd-hackers@freebsd.org Subject: Swap numbers in systcl? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All:) I'm looking to write a self throttling program which will use all the resources on my system without driving it into oblivion. I can tell when the CPU is used up, or when load average goes too high, or when I'm using more of the network than I want. But I'm not sure what to check to see when I'm using enough virtual memory to start the system swapping. I can't just check to see if swap is used and or growing: it might be normal for another process, like named, to very slowly suck down more and more virtual memory. It's also not always given back as quickly as I'd need to start more processes. Suggestions? Pointers to available docs most welcome:) --- David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message