Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2012 01:03:41 +0400
From:      Vagner <vagner@bsdway.ru>
To:        FreeBSD questions Mail List <freebsd-questions@freebsd.org>
Subject:   management for VM objects 
Message-ID:  <20121030210341.GA11756@vagner-wrk.bsdway.ru>

Next in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20121030210341.GA11756>