From owner-freebsd-hackers Tue Jan 12 19:46:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA06659 for freebsd-hackers-outgoing; Tue, 12 Jan 1999 19:46:47 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA06647 for ; Tue, 12 Jan 1999 19:46:46 -0800 (PST) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id UAA29985; Tue, 12 Jan 1999 20:46:11 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp04.primenet.com, id smtpd029902; Tue Jan 12 20:46:07 1999 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id UAA07058; Tue, 12 Jan 1999 20:45:55 -0700 (MST) From: Terry Lambert Message-Id: <199901130345.UAA07058@usr06.primenet.com> Subject: Re: limiting per process swap space utilization like Solaris ulimit? To: bad@wireless.net (Bernie Doehner) Date: Wed, 13 Jan 1999 03:45:55 +0000 (GMT) Cc: tlambert@primenet.com, dillon@apollo.backplane.com, hackers@FreeBSD.ORG In-Reply-To: from "Bernie Doehner" at Jan 12, 99 05:06:32 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Why is it that under bash's ulimit -v, the swap space utilization is the > > > sum of the data segment size and the stack size? > > > > Read-only pages don't need to be backed by swap? > > Actualy I already asked the very same question in a different forum. I > assume the text segment is NOT swapped out because it is referenced way > TOO often to be practical/efficient to swap out? No; it's mostly not swapped out because it's referenced sufficiently frequently that it never gets tot he end of the LRU list. If, however, your system is starving for memory, or you have a lot of dirty data being accessed so that it's at the front of the LRU, clean text pages will, in fact, be discarded, and then read back in as needed. [ ... A combination quota on swap and vm ... ] > Actualy I think Solaris does this too.. If you mean "doesn't enforce a quota", yeah. The closest thing you could get would be "memoryuse", but that includes code pages, too. See the csh "limit" command instead of the bash command. ;-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message