linux-bcache.vger.kernel.org archive mirror
 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 still unstable for me (memory problems)
Date: Wed, 9 Mar 2016 12:55:26 -0800	[thread overview]
Message-ID: <20160309205526.GJ27437@merlins.org> (raw)
In-Reply-To: <alpine.LRH.2.11.1603090337300.15354@mail.ewheeler.net>

On Wed, Mar 09, 2016 at 03:59:30AM +0000, Eric Wheeler wrote:
> > gargamel:/mnt/mnt# cat /proc/sys/vm/min_free_kbytes
> > 19712
> 
> Ours is set to 256mb (256*1024) and I've never had a problem.  
> 
> > Should I change it?
> 
> Could try it, shrug.

Done :)

> > So clearly on this boot too, it got registered late (20h-ish after boot)
> 
> I find it interesting that it re-registered md5 within 5 minutes of 24 
> hours after initial registration: (86242-102)/3600 = 23:55:40
 
Oh, I didn't do the math, but yeah, that looks very suspicous :)

> Is there some kind of cron.daily thing going on?  If you have timestamps 
> for that kernel log, maybe check cron for logs too.

I don't have any cronjobs that do anything with bcache, but I have
cronjobs that scan all drives and save all partitions plus other related
stuff.
That said, if I recall correctly, it died just when I restarted a copy
to that filesystem (but my memory of that event is getting hazy now).

I checked syslog around that time though 
Mar  6 06:29:50 gargamel kernel: [204255.678548] bcache-register: page allocation failure: order:7, mode:0x24080c0
and found nothing related to a cronjob or /dev/sdl disappearing and
coming back.

> Are there any intevening non-bcache lines indicating a disk was removed 
> (eg, bad usb cable) and re-added?  

Good question, none that I can find.
 
> > > Do you have this patch?
> > > https://bitbucket.org/ewheelerinc/linux/commits/a7044848050ac60e178798d20ea8a3ef2be36bc7?at=master
> >  
> > I got the other patches you sent me last time, but didn't end up with
> > this one, sorry if you sent it to me and I dropped it.
> > I'll apply it now, thanks.
> 
> All of the patches related to troubleshooting with you are here:
> 
>   https://bitbucket.org/ewheelerinc/linux/branch/v4.5-rc6-bcache-fixes
> and here:
>   https://bitbucket.org/ewheelerinc/linux/branch/v4.5-rc7-bcache-fixes
> 
> so make sure all 3 are applied.  It might still OOM, but it shouldn't 
> crash if we got it all.

Thanks. I just checked that I have all those paatches now.

I will report back if I get more interesting output :)

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/                         | PGP 1024R/763BE901

  reply	other threads:[~2016-03-09 20:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-07 14:45 Bcache still unstable for me (memory problems) Marc MERLIN
2016-03-07 19:56 ` Eric Wheeler
2016-03-07 20:35   ` [PATCH] " Eric Wheeler
2016-03-08 23:52   ` Marc MERLIN
2016-03-09  3:59     ` Eric Wheeler
2016-03-09 20:55       ` Marc MERLIN [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-08 23:04 Richard Bade
2016-03-09  3:51 ` Eric Wheeler
2016-03-10  1:34   ` Eric Wheeler
2016-03-10  2:15     ` Marc MERLIN
2016-03-10 15:29       ` Marc MERLIN
2016-03-10 15:41         ` Christoph Nelles
2016-03-10 15:47           ` Marc MERLIN
2016-03-24 21:25         ` Marc MERLIN
2016-03-25  3:52           ` Eric Wheeler
2016-03-21  0:05     ` Richard Bade
2016-03-21  0:46       ` Marc MERLIN
2016-03-21  0:52         ` Richard Bade
2016-03-25  3:59       ` Eric Wheeler

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=20160309205526.GJ27437@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).