linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Sedat Dilek <sedat.dilek@gmail.com>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Pat Erley <pat-lkml@erley.org>,
	Linux-Next <linux-next@vger.kernel.org>,
	kirill.shutemov@linux.intel.com, linux-mm <linux-mm@kvack.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Michal Hocko <mhocko@suse.cz>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: BUG: non-zero nr_pmds on freeing mm: 1
Date: Mon, 9 Feb 2015 18:50:03 +0100	[thread overview]
Message-ID: <CA+icZUX4SffGGARmmH6ZaYtcwZCYUd0beskeEm-Mi=mmRqW=ew@mail.gmail.com> (raw)
In-Reply-To: <20150209171320.GB29522@node.dhcp.inet.fi>

[-- Attachment #1: Type: text/plain, Size: 3425 bytes --]

On Mon, Feb 9, 2015 at 6:13 PM, Kirill A. Shutemov <kirill@shutemov.name> wrote:
> On Mon, Feb 09, 2015 at 06:06:11PM +0100, Sedat Dilek wrote:
>> On Mon, Feb 9, 2015 at 5:42 PM, Kirill A. Shutemov <kirill@shutemov.name> wrote:
>> > On Sat, Feb 07, 2015 at 08:33:02AM +0100, Sedat Dilek wrote:
>> >> On Sat, Feb 7, 2015 at 6:12 AM, Pat Erley <pat-lkml@erley.org> wrote:
>> >> > I'm seeing the message in $subject on my Xen DOM0 on next-20150204 on
>> >> > x86_64.  I haven't had time to bisect it, but have seen some discussion on
>> >> > similar topics here recently.  I can trigger this pretty reliably by
>> >> > watching Netflix.  At some point (minutes to hours) into it, the netflix
>> >> > video goes black (audio keeps going, so it still thinks it's working) and
>> >> > the error appears in dmesg.  Refreshing the page gets the video going again,
>> >> > and it will continue playing for some indeterminate amount of time.
>> >> >
>> >> > Kirill, I've CC'd you as looking in the logs, you've patched a false
>> >> > positive trigger of this very recently(patch in kernel I'm running).  Am I
>> >> > actually hitting a problem, or is this another false positive case? Any
>> >> > additional details that might help?
>> >> >
>> >> > Dmesg from system attached.
>> >>
>> >> [ CC some mm folks ]
>> >>
>> >> I have seen this, too.
>> >>
>> >> root# grep "BUG: non-zero nr_pmds on freeing mm:" /var/log/kern.log | wc -l
>> >> 21
>> >>
>> >> Checking my logs: On next-20150203 and next-20150204.
>> >>
>> >> I am here not in a VM environment and cannot say what causes these messages.
>> >
>> > Sorry, my fault.
>> >
>> > The patch below should fix that.
>> >
>> > From 11bce596e653302e41f819435912f01ca8cbc27e Mon Sep 17 00:00:00 2001
>> > From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
>> > Date: Mon, 9 Feb 2015 18:34:56 +0200
>> > Subject: [PATCH] mm: fix race on pmd accounting
>> >
>> > Do not account the pmd table to the process if other thread allocated it
>> > under us.
>> >
>> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
>> > Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
>>
>> Still building with the fix...
>>
>> Please feel free to add Pat as a reporter.
>>
>>      Reported-by: Pat Erley <pat-lkml@erley.org>
>>
>> Is that fixing...?
>>
>> commit daa1b0f29cdccae269123e7f8ae0348dbafdc3a7
>> "mm: account pmd page tables to the process"
>>
>> If yes, please add a Fixes-tag [2]...
>>
>>      Fixes: daa1b0f29cdc ("mm: account pmd page tables to the process")
>>
>> I will re-test with LTP/mmap and report.
>
> The commit is not in Linus tree, so the sha1-id is goinging to change.
>

OK, can you add a hint into the commit-message?
Thanks.

Tested-by: Sedat Dilek <sedat.dilek@gmail.com>

It looks like I triggered a new call-trace.

Regards,
- Sedat -

P.S.: List content of attached tarball

# LC_ALL=C ls -lR for-shutemov/
for-shutemov/:
total 452
-rw-r--r-- 1 root root   4312 Feb  9 17:57
3.19.0-rc7-next-20150204.17-iniza-small.patch
-rw-r--r-- 1 root root 125312 Feb  9 18:16
config-3.19.0-rc7-next-20150204.17-iniza-small
-rw-r--r-- 1 root root 120961 Feb  9 18:43
dmesg_3.19.0-rc7-next-20150204.17-iniza-small_after-ltp-mm.txt
-rw-r--r-- 1 root root  55056 Feb  9 18:25
dmesg_3.19.0-rc7-next-20150204.17-iniza-small_before-ltp-mm.txt
-rw-r--r-- 1 root root 141423 Feb  9 18:43
results-ltp_mm-testsuite_3.19.0-rc7-next-20150204.17-iniza-small.txt

- EOT -

[-- Attachment #2: for-shutemov.tar.gz --]
[-- Type: application/x-gzip, Size: 81989 bytes --]

[-- Attachment #3: for-shutemov.tar.gz.sha256sum --]
[-- Type: application/octet-stream, Size: 86 bytes --]

4ed23761a2dff77570425554ba98fc2d5c27ba0c050018f3db12e759cfc1cf14  for-shutemov.tar.gz

      parent reply	other threads:[~2015-02-09 17:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-07  7:33 Sedat Dilek
2015-02-07  8:42 ` Sedat Dilek
2015-02-07  8:56   ` Pat Erley
2015-02-07  9:20     ` Sedat Dilek
2015-02-07  9:30       ` Sedat Dilek
2015-02-07 22:27         ` Pat Erley
2015-02-07 22:33           ` Sedat Dilek
2015-02-08  7:32             ` Pat Erley
2015-02-09 16:42 ` Kirill A. Shutemov
2015-02-09 17:06   ` Sedat Dilek
2015-02-09 17:13     ` Kirill A. Shutemov
2015-02-09 17:45       ` Pat Erley
2015-02-09 17:50       ` Sedat Dilek [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='CA+icZUX4SffGGARmmH6ZaYtcwZCYUd0beskeEm-Mi=mmRqW=ew@mail.gmail.com' \
    --to=sedat.dilek@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=kirill@shutemov.name \
    --cc=linux-mm@kvack.org \
    --cc=linux-next@vger.kernel.org \
    --cc=mhocko@suse.cz \
    --cc=pat-lkml@erley.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