From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 29 13:08:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 155CA16A442 for ; Fri, 29 Jul 2005 13:08:13 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (ll-227.216.82.212.sovam.net.ua [212.82.216.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A06343D45 for ; Fri, 29 Jul 2005 13:08:11 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.zoral.local (root@kostik.zoral.local [10.1.1.38]) by fw.zoral.com.ua (8.13.3/8.13.1) with ESMTP id j6TD84CD093299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 29 Jul 2005 16:08:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.zoral.local (kostik@localhost [127.0.0.1]) by deviant.zoral.local (8.13.3/8.13.3) with ESMTP id j6TD8woE061884 for ; Fri, 29 Jul 2005 16:08:58 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.zoral.local (8.13.3/8.13.3/Submit) id j6TD8wX6061883 for freebsd-hackers@freebsd.org; Fri, 29 Jul 2005 16:08:58 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.zoral.local: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 29 Jul 2005 16:08:58 +0300 From: Kostik Belousov To: freebsd-hackers@freebsd.org Message-ID: <20050729130858.GD905@deviant.zoral.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.4 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on fw.zoral.com.ua Subject: swap reservation accounting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2005 13:08:13 -0000 Hello everyone, I developed the patch for 7-CURRENT (also should apply cleanly to 6) that implements swap reservation accounting and allows to cap the allocation of anonymous memory to the available swap. Effectively, this allows to optionally turn off overcommit feature of the VM. Besides this, per-user swap reservation limits could be enforced. Corresponding capability is added to the login.conf database. For some description of the implementation, TODO list and patch itself, please see http://kostikbel.narod.ru This is my first touch of the FreeBSD code, you valuable comments and reviews would be greatly appreciated. Best regards, Kostik Belousov