From owner-freebsd-questions@FreeBSD.ORG Tue Oct 30 21:03:56 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C9400BAF for ; Tue, 30 Oct 2012 21:03:56 +0000 (UTC) (envelope-from vagner@bsdway.ru) Received: from bsdway.ru (bsdway.ru [62.109.17.46]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4F18FC14 for ; Tue, 30 Oct 2012 21:03:55 +0000 (UTC) Received: from localhost ([188.134.95.3]) (authenticated bits=0) by bsdway.ru (8.14.4/8.14.4) with ESMTP id q9UL3mjB033328 for ; Wed, 31 Oct 2012 00:03:48 +0300 (MSK) (envelope-from vagner@bsdway.ru) Date: Wed, 31 Oct 2012 01:03:41 +0400 From: Vagner To: FreeBSD questions Mail List Subject: management for VM objects Message-ID: <20121030210341.GA11756@vagner-wrk.bsdway.ru> Mail-Followup-To: FreeBSD questions Mail List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bsdway.ru [62.109.17.46]); Wed, 31 Oct 2012 00:03:48 +0300 (MSK) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 21:03:56 -0000 Hi! This questions about Inactive queue and Swap layer in VM management system at FreeBSD. For test, i running dd (for put ufs cache to Inactive), and i get this: 1132580 wire 896796 act 5583964 inact 281852 cache 112252 free 836960 buf in swap: 20M It is good. Lets start run programm like: typedef char * pchar; pchar a[1024*1024*4]; for(size_t i = 0; i < 1024*1024*2; i++) { a[i] = (pchar)malloc(1024); if(a[i]) *(a[i]) = 'F'; } Get this: 1156420 wire 3070196 act 3465316 inact 206352 cache 109160 free 836960 buf in swap: 20M After i call free() pages put to free. But, why condition is not satisfied from this page: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vm-design/freeing-pages.html? My durty pages don't written to their backing store before being reusable. I don't understeand this:( -- Respectfully, Stanislav Putrya System administrator FotoStrana.Ru Ltd. ICQ IM: 328585847 Jabber-GoogleTalk: root.vagner mob.phone SPB: +79215788755 mob.phone RND: +79525600664 email: vagner@bsdway.ru email: putrya@playform.ru email: root.vagner@gmail.com site: bsdway.ru site: fotostrana.ru ---------------------------------------- ( ) ASCII ribbon campaign X - against HTML, vCards and / \ - proprietary attachments in e-mail