Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Apr 2012 10:45:08 +0400
From:      Andrey Zonov <andrey@zonov.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        alc@freebsd.org, freebsd-hackers@freebsd.org, Alan Cox <alc@rice.edu>
Subject:   Re: problems with mmap() and disk caching
Message-ID:  <4F7E90F4.9050107@zonov.org>
In-Reply-To: <4F7DF88D.2050907@zonov.org>
References:  <4F7B495D.3010402@zonov.org> <20120404071746.GJ2358@deviant.kiev.zoral.com.ua> <4F7DC037.9060803@rice.edu> <4F7DF39A.3000500@zonov.org> <20120405194122.GC2358@deviant.kiev.zoral.com.ua> <4F7DF88D.2050907@zonov.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05.04.2012 23:54, Andrey Zonov wrote:
> On 05.04.2012 23:41, Konstantin Belousov wrote:
>> You do use UFS, right ?
>
> Yes.
>

I've run test on ZFS.

Mem: 2645M Active, 363M Inact, 2042M Wired, 1406M Buf, 42G Free

$ ./mmap /mnt/random

Mem: 3669M Active, 363M Inact, 3067M Wired, 1406M Buf, 40G Free

It eats 2Gb as I understand.

# umount /mnt
# zfs mount -a

Mem: 2645M Active, 363M Inact, 2042M Wired, 1406M Buf, 42G Free

$ cat /mnt/random > /dev/null

Mem: 2645M Active, 363M Inact, 3067M Wired, 1406M Buf, 41G Free

That's correct - 1Gb.

About "Buf" memory.  Is this reasonable to set it to 10% of physical 
memory?  I've lost 10Gb by default on machines with 96Gb.

-- 
Andrey Zonov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F7E90F4.9050107>