From owner-freebsd-questions@FreeBSD.ORG Mon Dec 28 16:27:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D1741065697 for ; Mon, 28 Dec 2009 16:27:18 +0000 (UTC) (envelope-from cronfy@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id D534C8FC12 for ; Mon, 28 Dec 2009 16:27:17 +0000 (UTC) Received: by fxm27 with SMTP id 27so10228242fxm.3 for ; Mon, 28 Dec 2009 08:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=oJOeIlPgpUenmuAJSCzN7QlpxVszyuUEMCriwwBm4Mo=; b=LKYNXd3GHnH0pl575oE0o39x3o7HIs4piPbDvFiyQJGbVEedrtAbXvsIthsLXQqWqu YDj9fC0GbI0FSXrRqaPrZGfSjC2R5kuGOPDFkQFKIaAhYhQjpQQdM8/yBuC958ANBzIH Erdf2/sTrPLqYv0mwi1Snu2ri+OuQcu65FI34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=BkCUdBjLD8tByHbrKg4uOzcS65dGpDmbnhbJCQcYwsLKFxIOIDzs4CZsn4sf/prssy rDDApTus+KTkFNfBGrZsTXCCpIPQeMr/NbdDxb2+HeQ+rmXdgmxH0JmkUEiqJ+ogn729 1mYebDgWhGGlmHc/yT+L9L3g514jSThNmm5Cw= MIME-Version: 1.0 Received: by 10.223.7.21 with SMTP id b21mr9481148fab.104.1262017634123; Mon, 28 Dec 2009 08:27:14 -0800 (PST) In-Reply-To: <44iqbr5ck9.fsf@be-well.ilk.org> References: <44iqbr5ck9.fsf@be-well.ilk.org> From: cronfy Date: Mon, 28 Dec 2009 19:26:54 +0300 Message-ID: To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Max kernel dump size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2009 16:27:18 -0000 > > How can I calculate max kernel dump size? I want to create my swap > partition > > as small as possible, just to fit kernel dump needs. > > I'm not sure you really can. You'll definitely have enough if you allow > a bit more than you have memory, but these days that's going to be > overkill most of the time. > > Yes, at this time I use SWAP = RAM + 1G formula. And yes, this is an overkill especially for expensive SAS drives. I've noticed that my kernel dumps do not exceed 2-3.5G usually. Maybe I can collect stats for amount of Active memory used and assume that kernel dump will not get larger than, say, Active memory + 50%? -- // cronfy