From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 6 06:45:12 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C43F81065673 for ; Fri, 6 Apr 2012 06:45:12 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 429A18FC12 for ; Fri, 6 Apr 2012 06:45:12 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2359005bkc.13 for ; Thu, 05 Apr 2012 23:45:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=hKAOf0L7jBgNIW3eMfAI8vV/JjjACR7NytZWap13Quc=; b=V4+rWInOkKFTxOaKSe/eNIlQucd4q9EgDTQzfyAGZ3g3quCqfTsg4PjZBmZHrti1/u z8ExgVOObnanbjE0VhR2BntQLamyfjafX5A6E2WxI/KdxAcdm+DhZHE2zs6FitPY4WER UoezpJHieDAHrc/Ybz5Bgm5cM8NfoJzvXUU+aeMY9CEsQPniwK5rg6IM28G88G5sUrg8 SHEiP6MmwAch3EXQpjjQzNjXQOXI5sWFZlnmRoQYdOJIYbf7rJYl5lMo4xqPIr1LXiia E6RT9ysT6CSsEaTTIi0al59HYrlAJIz+/gq6EO0L8pkerAhhMjG+/6rkBArtDIgrvsHk poTQ== Received: by 10.204.156.216 with SMTP id y24mr2596782bkw.60.1333694711180; Thu, 05 Apr 2012 23:45:11 -0700 (PDT) Received: from [10.254.254.77] (ppp95-165-133-149.pppoe.spdop.ru. [95.165.133.149]) by mx.google.com with ESMTPS id iv11sm8603238bkc.16.2012.04.05.23.45.10 (version=SSLv3 cipher=OTHER); Thu, 05 Apr 2012 23:45:10 -0700 (PDT) Message-ID: <4F7E90F4.9050107@zonov.org> Date: Fri, 06 Apr 2012 10:45:08 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Konstantin Belousov 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> In-Reply-To: <4F7DF88D.2050907@zonov.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkdwYdddZrerGoM1+3NLqiJO7BSaMOSClKGRRw0IAmJdGhZKRfb3Lz8wUEJyDU0HjA2Efdc Cc: alc@freebsd.org, freebsd-hackers@freebsd.org, Alan Cox Subject: Re: problems with mmap() and disk caching 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, 06 Apr 2012 06:45:12 -0000 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