All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: Eric Wheeler <bcache@lists.ewheeler.net>
Cc: linux-bcache@vger.kernel.org
Subject: Re: bcache: register_cache() error opening sdh2: cannot allocate memory => BUG NULL pointer
Date: Thu, 25 Feb 2016 16:18:16 -0800	[thread overview]
Message-ID: <20160226001816.GD29543@merlins.org> (raw)
In-Reply-To: <alpine.LRH.2.11.1602252325320.3635@mail.ewheeler.net>

On Thu, Feb 25, 2016 at 11:30:05PM +0000, Eric Wheeler wrote:
> On Thu, 25 Feb 2016, Marc MERLIN wrote:
> 
> > On Thu, Feb 25, 2016 at 07:29:36AM +0000, Eric Wheeler wrote:
> > > Try this patch.  It adds some error handling:
> > 
> > Thanks, applied. I'll report back if I get output from it.
> > 
> > I think one reason I'm having problem on that server is that I run
> > zoneminder which requires a lot of shared memory:
> > kernel.shmall = 234217728
> > kernel.shmmax = 234217728
> > 
> > Is there a chance that's putting memory pressure in the wrong memory
> > pool on the system?
> 
> Perhaps, though I'm thinking your shm values are far too large.  Those are 
> in units of pages, so with 4k pages you have set almost 900GB of shared 
> memory limit.  Does this machine have 1TB of ram?

Indeed, no.

> I like to set vm.min_free_kbytes = 262144 on my machines.  Its <1% on our 
> systems and we never have memory issues, even with high memory pressure 
> and zram for swap.

Very good catch. I'll fix that.
I use zoneminder which requires stupid amounts of shared memory, but not 1TB
:)

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

      reply	other threads:[~2016-02-26  0:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-25  6:18 bcache: register_cache() error opening sdh2: cannot allocate memory => BUG NULL pointer Marc MERLIN
2016-02-25  7:29 ` Eric Wheeler
2016-02-25 16:44   ` Marc MERLIN
2016-02-25 23:30     ` Eric Wheeler
2016-02-26  0:18       ` Marc MERLIN [this message]

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=20160226001816.GD29543@merlins.org \
    --to=marc@merlins.org \
    --cc=bcache@lists.ewheeler.net \
    --cc=linux-bcache@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.