opensubscriber
   Find in this group all groups
 
Unknown more information…

f : freebsd-hackers@freebsd.org 6 April 2012 • 2:45PM -0400

Re: problems with mmap() and disk caching
by Andrey Zonov

REPLY TO AUTHOR
 
REPLY TO GROUP




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
_______________________________________________
freebsd-hackers@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@free..."

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.