The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: Philipp Reisner <philipp.reisner@linbit.com>,
	drbd-user@lists.linbit.com, linux-kernel@vger.kernel.org
Subject: Re: [drbd?] Kernel panic - not syncing: Out of memory and no killable processes...
Date: Tue, 11 Jun 2013 17:33:27 +0200	[thread overview]
Message-ID: <20130611153326.GK20369@soda.linbit> (raw)
In-Reply-To: <20130607023154.GA13344@localhost>

On Fri, Jun 07, 2013 at 10:31:54AM +0800, Fengguang Wu wrote:
> Greetings,
> 
> My "kvm -m 256" reliably goes Out Of Memory after this commit.  It may
> not be the only one that eats up the memory, however I wonder how much
> memory consumption this commit added? Thanks!
> 

Out of curiosity, what exactly is it you are doing there?
What project or appliance or behaviour or product or paper is the goal?


We scale certain mempools and reserves with
DRBD_MAX_BIO_SIZE/PAGE_SIZE * minor_count.

DRBD_MAX_BIO_SIZE has been increased by this patch,
resulting in more memory allocated to those reserved pools.

Please just scale down the "minor_count" parameter.
You can use the module parameter (e.g. modprobe drbd minor_count=8),
or, compiled in, use the kernel command line parameter drbd.minor_count=8.

Though "minor_count" at some point used to be the hard limit for the number of
minor devices (allocation of an array of corresponding size), that has
long since changed, and now it is really only used as scaling factor for
these mempools.

	Lars


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

  reply	other threads:[~2013-06-11 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07  2:31 [drbd?] Kernel panic - not syncing: Out of memory and no killable processes Fengguang Wu
2013-06-11 15:33 ` Lars Ellenberg [this message]
2013-06-12 10:11   ` Fengguang Wu
  -- strict thread matches above, loose matches on Subject: below --
2014-03-18 14:07 [drbd] " Fengguang Wu
2014-03-18 14:30 ` Lars Ellenberg
2014-03-19  1:15   ` Fengguang Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130611153326.GK20369@soda.linbit \
    --to=lars.ellenberg@linbit.com \
    --cc=drbd-user@lists.linbit.com \
    --cc=fengguang.wu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=philipp.reisner@linbit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox