linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vignesh Raman <vignesh.raman.in@gmail.com>
To: Julia Cartwright <julia@ni.com>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: kernel freeze when running docker
Date: Mon, 27 Aug 2018 19:13:20 +0530	[thread overview]
Message-ID: <b305cd93-7827-c275-dff8-94c030c9fb6b@gmail.com> (raw)
In-Reply-To: <7f76ebbb-956f-1685-6663-1363d3039e78@gmail.com>

Hi Julia,

I enabled Linux Kernel Dump Test Tool (CONFIG_LKDTM=y) and triggered a
hard and soft lockup using,
echo SOFTLOCKUP > /sys/kernel/debug/provoke-crash/DIRECT
echo HARDLOCKUP > /sys/kernel/debug/provoke-crash/DIRECT

With this the kernel panic/oops message is seen in serial console 2 out
of 5 times (for both soft and hard lockup case). In /sys/fs/pstore the
kernel panic messages are not captured at all.

If I try with,
echo PANIC > /sys/kernel/debug/provoke-crash/DIRECT

the kernel panic/oops message is always dumped in serial console and in
/sys/fs/pstore the crash logs are captured always.

It looks like with rt kernel during soft/hard lockup, the dump messages
are not captured sometimes. Not sure if this is related to the issue I'm
seeing (kernel panic logs not seen in serial with docker test case).

I have not performed these tests on non-rt kernel.

Thanks.

Regards,
Vignesh

On Friday 24 August 2018 12:11 PM, Vignesh Raman wrote:
> Hi Julia,
> 
> On Wednesday 22 August 2018 10:12 PM, Julia Cartwright wrote:
>> I never explicitly asked...have you tried a similar test on a non-RT
>> kernel?  Does it exhibit the same behavior?  The linked moby github
>> issue would seem to indicate this isn't RT specific...
> 
> Yes I tried the tests on non-RT kernel and the issue was not reproduced
> with 14 hours of testing with docker running kubernetes. I also tested
> with the test case mentioned in moby github issue and the kernel freeze
> was not seen. Config file is https://paste.debian.net/1039104/
> 
> root@debian:~# uname -a
> Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02)
> x86_64 GNU/Linux
> 
>> Can you send your full config?  If I get some time to try it, I'd like
>> to see if I can reproduce your issue.
> 
> Thanks. Config file is https://paste.debian.net/1039103/ (output of
> 'grep "=[y|m]" config-4.14.59-rt37')
> This issue was reproduced with 4.9.0-6-rt-amd64 kernel also.
> 
> root@debian:~# uname -a
> Linux debian 4.14.59-rt37 #1 SMP PREEMPT RT Fri Aug 24 00:31:29 UTC 2018
> x86_64 GNU/Linux
> 
> Below are the steps to reproduce the issue,
> Install docker using,
> curl
> https://raw.githubusercontent.com/rancher/install-docker/master/17.03.2.sh
> | /bin/bash
> 
> Run
> "for f in $(seq 1 10000);do docker run -it --rm ubuntu echo $f; done"
> consecutively in 3 terminals.
> 
> The freeze/lockup occurs sporadically.
> 
> The other test case is to run docker with kubernetes.
> 
> Regards,
> Vignesh
> 

      reply	other threads:[~2018-08-27 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20  9:35 kernel freeze when running docker Vignesh Raman
     [not found] ` <20180821012731.GB8562@jcartwri.amer.corp.natinst.com>
     [not found]   ` <CAH3OF50F26ywGHZ2Rfa7v-SeoZ6KccSPt+1uNq65eBNTqom=-A@mail.gmail.com>
2018-08-21 13:42     ` Julia Cartwright
2018-08-22  8:08       ` Vignesh Raman
     [not found]         ` <20180822164235.GR1123@jcartwri.amer.corp.natinst.com>
2018-08-24  6:41           ` Vignesh Raman
2018-08-27 13:43             ` Vignesh Raman [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=b305cd93-7827-c275-dff8-94c030c9fb6b@gmail.com \
    --to=vignesh.raman.in@gmail.com \
    --cc=julia@ni.com \
    --cc=linux-rt-users@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).