From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 24 12:23:19 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 671D3C20 for ; Wed, 24 Dec 2014 12:23:19 +0000 (UTC) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D6B9D66E95 for ; Wed, 24 Dec 2014 12:23:18 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id z11so6602341lbi.24 for ; Wed, 24 Dec 2014 04:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=I24td0hcsw3wcxxxU8BKRSsmTFtRpeqCKbxOut9tvg8=; b=YAr+mwcgTRAPxWrv5k1XnynLMAkQScZIscB3Ezsy82CYYHQUZx8YIxTReM3duxEKFC ZPTBRf9TwpX/QGCImHuw1hjxJI4qlBb6izhI6obtLEhAc7rKmgHv0yRuGSLjHCDvSGTE 5CKDeuR8Rzkl5YdoGwqIdUsKg8Yih7Rpc9K6Orinz2JMfoPdZ8gQ0eLwQLQzbxWwB1z4 Gqy33c0hFsOo3LNuWd+wsbBrWUJCzYGn33f/7ymUzaefLYJcnDczzXIgoV6dveJE+PGQ bS8MW1hICuLHmM8K4ctwQLRNVLpW7u5QCqMLAYgAUyEdK4DVlbPqbCs2mQN3kYTqF29b tYcQ== X-Received: by 10.152.207.37 with SMTP id lt5mr33668983lac.66.1419423797063; Wed, 24 Dec 2014 04:23:17 -0800 (PST) Received: from ?IPv6:2a02:6b8::408:bcc5:e03b:4a46:f865? ([2a02:6b8:0:408:bcc5:e03b:4a46:f865]) by mx.google.com with ESMTPSA id fb6sm6611578lbc.46.2014.12.24.04.23.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Dec 2014 04:23:15 -0800 (PST) Content-Type: text/plain; charset=koi8-r Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: mmap() question From: Dmitry Sivachenko In-Reply-To: <20141008170152.GG2153@kib.kiev.ua> Date: Wed, 24 Dec 2014 15:23:14 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <48AF6092-DD43-470B-A89A-93EA8A38CDC1@gmail.com> References: <95E0B821-BF9B-4EBF-A1E5-1DDCBB1C3D1B@gmail.com> <20131011051702.GE41229@kib.kiev.ua> <20131012095919.GI41229@kib.kiev.ua> <5C10922E-7030-4C89-9FD3-DA770E462067@gmail.com> <20141008170152.GG2153@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.1993) Cc: "hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2014 12:23:19 -0000 > On 8 =CF=CB=D4. 2014 =C7., at 21:01, Konstantin Belousov = wrote: >>=20 >=20 > I wrote something different after discussion with Alan, it instead = measures > the pagedaemon progress. Unfortunately, I have some issues with = auto-tuning > the detection. Could you try the patch below. Possibly, you would = need > to change vm.pageout_oom_miss (either lower or raise, depending on the > load) to get the tuning. Bigger the value, more the time pagedaemon = tries > to make any progress before declaring OOM. Sorry for the delay. I tried your patch and I was unable to reproduce = test program crash with OOM error. Thanks!=