lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130611153326.GK20369@soda.linbit>
Date:	Tue, 11 Jun 2013 17:33:27 +0200
From:	Lars Ellenberg <lars.ellenberg@...bit.com>
To:	Fengguang Wu <fengguang.wu@...el.com>
Cc:	Philipp Reisner <philipp.reisner@...bit.com>,
	drbd-user@...ts.linbit.com, linux-kernel@...r.kernel.org
Subject: Re: [drbd?] Kernel panic - not syncing: Out of memory and no
 killable processes...

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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ