Process 별 CPU 점유시간에 대한 질문 입니다.

hyper9의 이미지


3대의 System을 비교하고 있습니다.

두 대는 Fedora 7 (Kernel 2.6.19.7)을 사용하고 있고요,
1 대는 Fedora 3 (Kernel 2.6.16.57)을 사용하고 있거든요.

Kernel은 모두 제가 다시 Compile한 거구요.
계속 문제 없이 쓰고 있었는데, 요즘 갑자기 이상한 걸 발견했습니다.
다름이 아니고, CPU 점유시간에 관련된 문제 인데요..

top을 사용해서 확인해 보면, 특히 kjournald, pdflush, kblockd 이 3녀석이
눈에 띕니다.

일단 첫번째로 2.6.16.57 Version의 Kernel을 사용하는 System에서는
이 3녀석의 CPU 점유시간이 거의 늘지않거나, 아주 천천히 증가합니다.

두번째로 2.6.19.7을 사용하는 System에서도 아주 천천히 증가하는데,
유독 한 System에서는 이 3녀석의 CPU점유시간 증가속도가 눈에 띄게 빠릅니다.

조금만 보고 있어도 숫자가 팍팍늘어나는데요,,(확인은 top utility의 TIME+ column을
통해서 하고 있습니다.)

너무 광범위한 질문인지는 모르겠지만,,이게 왜 이럴까 하는 게 질문입니다 ㅜㅜ
딱 답을 가르쳐주시면 당연히 좋지만, 혹시 추측을 위해 다른 정보가 필요하다고
의견을 주시는 것도 너무 감사하겠습니다.

조언 부탁드리고 싶습니다..

hyper9의 이미지


잠시 top의 man page를 보니까요, 'S' : Cumulative Time Mode toggle
이라는 설명을 발견했습니다.

이것이 "-S'를 쓰면 해당 process가 CPU를 점유했던 시간의 총합을 보여주고
"-S"를 쓰지 않으면 process가 Running하면서 CPU를 점유했던 시간을 보여 주는 것인지요?

아래와 같이 시험해봤습니다.

[root@MySystem ~]# top | grep pdflush
83 root 16 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
84 root 15 0 0 0 0 S 0.0 0.0 0:25.02 pdflush
83 root 16 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
84 root 15 0 0 0 0 S 0.0 0.0 0:25.02 pdflush

[root@MySystem ~]# top -S | grep pdflush
83 root 16 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
84 root 15 0 0 0 0 S 0.0 0.0 0:25.02 pdflush
83 root 16 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
84 root 15 0 0 0 0 S 0.0 0.0 0:25.02 pdflush

이렇게 값이 똑 같이 나오면 어떻게 이해를 해야할까요?

hyper9의 이미지


위에 제가 올린 댓글 중 top -S | grep pdflush의 출력 중에서요.
S column은 다 'S'로 나오는데, 그러면 해당 Process가 Sleeping이라는
뜻이잖아요..

그런데..또 Time은 0:25.02로 나오는 건,,sleep이면서 CPU를 사용한다는
의미일까요?

만일 Cumulative time이라면, 그동안 CPU를 사용한 누적합계라고 이해가
되는데, Cumulative가 아닌 경우는 어떻게 이해를 해야하는 걸까요?

조언 부탁 드립니다..

hyper9의 이미지

Kernel 2.6.19.7을 쓰는 System에서는 pdflush가 엄청 나게 자주 호출되는데,
Kernel 2.6.16.57을 쓰는 System에서는 거의 호출되지 않네요.

차이가 10배가 넘는 것 같은데요.
이런 경우에, pdflush가 자주 호출되는 이유는 어떤걸 생각할 수 있을까요?
조언 부탁 드립니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.