named 대몬이 왜 이렇게 많이 떠있는것인가요

kimyh의 이미지

네임서버 동작이 불안정 해서 운용 할수가 없는데 아래 8개나 떠있는 대몬과 무슨 관계가 있는가요?
왜 이렇게 많은 대몬이 떠있는것일까요?
service named restart 할때마다 대몬이 계속 하나씩 떠있는것인가요?
[root@localhost named]# ps -aux|grep named
named 1805 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
named 1807 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
named 1808 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
named 1809 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
named 1810 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
named 1811 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
named 1812 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
named 1813 0.0 0.2 17788 2856 ? S 03:49 0:00 named -u named
root 26876 0.0 0.0 2664 660 pts/0 S 05:18 0:00 grep named

kukuman의 이미지

BIND 9.x이신 것 같네요...

9.x에서는 named 대몬의 갯수를 조절할 수 있습니다...~

Be at a right place at a right time...

kimyh의 이미지

맞습니다.
bind 9.2.0 버젼입니다.
어떻게 데몬의 갯수를 조정할수 있죠?

그리고 데몬이 많이 떠있으면 어떤 영향을 미치는지요.

살며 그리고 사랑하며...
정보는 공유할때 그 가치가 있는것.....
나의 조그만 지식공유는 남에게 엄청난 기쁨을 안겨 준다.

kukuman의 이미지

Quote:
BIND 9 is multithreaded.

Unless you build BIND 9 with

./configure --disable-threads

BIND 9.x부터는 기본적으로 multithread를 사용하도록 되어있습니다...
그런데 Linux의 thread는 Posix Pthread를 완벽하게 구현한 것이 아니어서 ps명령어로 보면 마치 여러개의 프로세스가 띄워져 있는 것으로 보입니다... 하지만 실제로는 thread로 메모리는 공유합니다...

위에서 보시다시피 만약 thread기능을 사용하지 않으시려면 --disable-threads 옵션을 키고 configure후 재설치 해주셔야 합니다...

다음은 BIND 9.x의 소스에 포함되어 있는 FAQ에서 발췌한 내용입니다...

Q: Why do I see 5 (or more) copies of named on Linux?

Quote:
A: Linux threads each show up as a process under ps. The approximate
number of threads running is n+4, where n is the number of CPUs. Note that
the amount of memory used is not cumulative; if each process is using 10M of
memory, only a total of 10M is used.

그리고 아마도 네임서버 관리자이신 것 같은데,,,
ISC의 BIND Mailling List에 가입하시면 많은 질문들이 오가는 것을 보시고 공부하실 수 있을 것 같습니다~ :o

도움이 되었길~ ^^

Be at a right place at a right time...

kimyh의 이미지

답변 정말 감사합니다.
많은 도움이 되겠습니다.
감사합니다.

살며 그리고 사랑하며...
정보는 공유할때 그 가치가 있는것.....
나의 조그만 지식공유는 남에게 엄청난 기쁨을 안겨 준다.

댓글 달기

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