임베디드 리눅스 멈춤 증상 관련 질문

lemonpiee의 이미지

안녕하세요 현재 리눅스 개발을 진행하고 있는 초보 개발자입니다.

현재 i.mx6 quad CPU에 Kernel, APP이랑 구축해서 운영중인데

운영 중에 불특정한 주기로 아래 메시지가 발생하면서 APP이 멈추고 터미널 입력(putty)도 안먹는 상황이 발생하게 됩니다.

[347274.686948] INFO: rcu_preempt detected stalls on CPUs/tasks:

[347274.692715] 0-...: (1 ticks this GP) idle=943/140000000000001/0 softirq=34286512/34286512 fqs=1

[347274.701674] (detected by 3, t=151567997 jiffies, g=12979956, c=12979955, q=4470230)

[347274.709521] Task dump for CPU 0:

[347274.712837] Test_C_APP R running task 0 363 362 0x00000002

[347274.720008] rcu_preempt kthread starved for 151567995 jiffies! g12979956 c12979955 f0x2 RCU_GP_WAIT_FQS(3) ->state=0x100

[347274.730963] rcu_preempt W 0 7 2 0x00000000

[347274.736560] [<80980f54>] (__schedule) from [<80981450>] (schedule+0x58/0xb8)

[347274.743703] [<80981450>] (schedule) from [<809846a8>] (schedule_timeout+0x1d4/0x480)

[347274.751540] [<809846a8>] (schedule_timeout) from [<80187950>] (rcu_gp_kthread+0x454/0x9b4)

[347274.759898] [<80187950>] (rcu_gp_kthread) from [<8014a900>] (kthread+0x118/0x120)

[347274.767474] [<8014a900>] (kthread) from [<80108338>] (ret_from_fork+0x14/0x3c)

[347337.736947] INFO: rcu_preempt detected stalls on CPUs/tasks:

[347337.742715] 0-...: (1 ticks this GP) idle=943/140000000000001/0 softirq=34286512/34286512 fqs=1

[347337.751674] (detected by 3, t=151574302 jiffies, g=12979956, c=12979955, q=4470230)

[347337.759521] Task dump for CPU 0:

[347337.762836] Test_C_APP R running task 0 363 362 0x00000002

[347337.770007] rcu_preempt kthread starved for 151574300 jiffies! g12979956 c12979955 f0x2 RCU_GP_WAIT_FQS(3) ->state=0x100

[347337.780962] rcu_preempt W 0 7 2 0x00000000

[347337.786558] [<80980f54>] (__schedule) from [<80981450>] (schedule+0x58/0xb8)

[347337.793701] [<80981450>] (schedule) from [<809846a8>] (schedule_timeout+0x1d4/0x480)

[347337.801537] [<809846a8>] (schedule_timeout) from [<80187950>] (rcu_gp_kthread+0x454/0x9b4)

[347337.809895] [<80187950>] (rcu_gp_kthread) from [<8014a900>] (kthread+0x118/0x120)

[347337.817472] [<8014a900>] (kthread) from [<80108338>] (ret_from_fork+0x14/0x3c)

[347400.786948] INFO: rcu_preempt detected stalls on CPUs/tasks:

[347400.792715] 0-...: (1 ticks this GP) idle=943/140000000000001/0 softirq=34286512/34286512 fqs=1

[347400.801674] (detected by 3, t=151580607 jiffies, g=12979956, c=12979955, q=4470230)

[347400.809521] Task dump for CPU 0:

[347400.812837] Test_C_APP R running task 0 363 362 0x00000002

[347400.820007] rcu_preempt kthread starved for 151580605 jiffies! g12979956 c12979955 f0x2 RCU_GP_WAIT_FQS(3) ->state=0x100

[347400.830963] rcu_preempt W 0 7 2 0x00000000

[347400.836560] [<80980f54>] (__schedule) from [<80981450>] (schedule+0x58/0xb8)

[347400.843703] [<80981450>] (schedule) from [<809846a8>] (schedule_timeout+0x1d4/0x480)

[347400.851540] [<809846a8>] (schedule_timeout) from [<80187950>] (rcu_gp_kthread+0x454/0x9b4)

[347400.859898] [<80187950>] (rcu_gp_kthread) from [<8014a900>] (kthread+0x118/0x120)

[347400.867475] [<8014a900>] (kthread) from [<80108338>] (ret_from_fork+0x14/0x3c)

증상 자체도 너무 불특정주기로 발생을해서 디버깅을 하기가 쉽지 않네요.. 혹시 유사 증상이나 로그 관련해서 내용 아시는분 있을까요? 커널 버전은 4.9.67-fslc+g953c6e30c970 사용중입니다.

혹시 해결법을 아시면 도움을 주시면 감사하겠습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.