From owner-freebsd-current@FreeBSD.ORG Thu Aug 23 21:54:24 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88DDF1065672 for ; Thu, 23 Aug 2012 21:54:24 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EB1138FC12 for ; Thu, 23 Aug 2012 21:54:23 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so2304682pbb.13 for ; Thu, 23 Aug 2012 14:54:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=J2a+iKNkuWOyH0hr9G8t9Ley3phi9hs2Tsl4mg/ze5Q=; b=NNPpndmuxFb61+X+6d9tc8+ZItmskZ8f/DkrX7UqDWPrtR3krOsJ9urzfb7iZyHtc2 qs2WRAvbC82kSSOdQNQ/RnUdIszp58Ll6X/MPLpDh5FSub+avtR+jlin9GdKk+rf3SpC 2ptg5Cv0N7KG+b9UHkNW6v78KkkMN031NhrbMq7kg9urLkXBoevn9pwJRMMzJ+uvflWp dcwS+UjJVdQaAubV4xMVsOD6A8Y5HG3f7Ir6qGPPdyeCBwqdxcTTREAMIpV0OWgABcJh ybc0Dgdt8BDv0lHuNAtLLJPZXtqzoNh6d/JGmAn62kNo4c3WsXv7Oyr8e1k1iQ2vA1VD bb/A== Received: by 10.68.200.227 with SMTP id jv3mr7756481pbc.162.1345758863495; Thu, 23 Aug 2012 14:54:23 -0700 (PDT) Received: from [10.30.101.53] ([209.117.142.2]) by mx.google.com with ESMTPS id gf8sm6778315pbc.52.2012.08.23.14.54.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 14:54:23 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20120823174504.GB4820@onelab2.iet.unipi.it> Date: Thu, 23 Aug 2012 15:54:20 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20120822120105.GA63763@onelab2.iet.unipi.it> <20120823163145.GA3999@onelab2.iet.unipi.it> <50366398.2070700@rice.edu> <20120823174504.GB4820@onelab2.iet.unipi.it> To: Luigi Rizzo X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQmQX+qu3EYgWddQgAt7EYl9kLl9BLn1mUV3dNyvgFtlvEFiFSmz/jhSHquZ0Y7wtVkFeRmD Cc: alc@freebsd.org, current@freebsd.org, Alan Cox Subject: Re: less aggressive contigmalloc ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 21:54:24 -0000 On Aug 23, 2012, at 11:45 AM, Luigi Rizzo wrote: > On Thu, Aug 23, 2012 at 12:08:40PM -0500, Alan Cox wrote: > ... >>> yes i do see that. >>>=20 >>> Maybe less aggressive with M_NOWAIT but still kills processes. >>=20 >> Are you compiling world with MALLOC_PRODUCTION? The latest version = of=20 >=20 > whatever the default is. But: The default is OFF, so jemalloc uses oodles and oodles more memory than = before. On any system less than 256MB that I've tried to boot on lately = I've had to define MALLOC_PRODUCTION (which, btw, should be named = WITH_MALLOC_DEBUG instead to conform to our naming scheme for options, = but I digress). With MALLOC_PRODUCTION defined, I boot on 32MB systems = with about 8MB of RAM to spare when I get to the login prompt. Warner >> jemalloc uses significantly more memory when debugging options are=20 >> enabled. This first came up in a thread titled "10-CURRENT and swap=20= >> usage" back in June. >>=20 >> Even at its most aggressive, M_WAITOK, contigmalloc() does not = directly=20 >> kill processes. If process death coincides with the use of=20 >> contigmalloc(), then it is simply the result of earlier, successful=20= >> contigmalloc() calls, or for that matter any other physical memory=20 >> allocation calls, having depleted the pool of free pages to the point=20= >> that the page daemon runs and invokes vm_pageout_oom(). >=20 > does it mean that those previous allocations relied on memory = overbooking ? > Is there a way to avoid that, then ? >=20 > cheers > luigi > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"