[질문] 다중CPU 중에서 하나만 쓰고 있습니다. 어떻게 나머지??

nonots의 이미지

펜티엄4 2G CPU 가 4 개 달린
서버를 사용하고 있습니다.
메모리는 4 기가 입니다.
운영체제는 한컴3.1 서버 정품입니다.
그런데 얼마전

[root@db root]# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 3480705948 0 0 0 IO-APIC-edge timer
1: 126 0 0 0 IO-APIC-edge keyboard
2: 0 0 0 0 XT-PIC cascade
8: 7 0 0 0 IO-APIC-edge rtc
10: 705713322 0 0 0 IO-APIC-level usb-ohci, eth0
11: 11704965 0 0 0 IO-APIC-level aic7xxx, cciss1
12: 6 0 0 0 IO-APIC-edge PS/2 Mouse
14: 2 0 0 0 IO-APIC-edge ide0
15: 13242950 0 0 0 IO-APIC-level aic7xxx, cciss0
NMI: 0 0 0 0
LOC: 3480965375 3480965372 3480965372 3480965373
ERR: 0
MIS: 0
[root@db root]# uname -a
Linux korea.town.com 2.4.21-2smp #1 SMP 2003. 08. 05. (화) 19:29:52 KST i686 i686 i386 GNU/Linux

와 같이보니까 CPU 를 하나만 사용하는거 같습니다.
사용이 직렬이나 병렬방식에 따라서 틀리수 있지만 어쩐지
좀 찜찜합니다.
커널은 분면 smp 를 사용하고 있습니다.
한컴리눅스 고객지원도 이제는 가망없는듯하고
여기 고수분들에게 기대를 할 수 없는 상황입니다.
..
직렬방식인지 병렬방식인지 알수 있는법과..
만약 하나밖에 사용못한다면 어떻게 해야 하는지..
조언바랍니다.
..

offree의 이미지

잘은 모르지만, top 을 보면 알수 있지 않을까요?

사용자가 바꾸어 나가자!!

= about me =
http://wiki.kldp.org/wiki.php/offree , DeVlog , google talk : offree at gmail.com

송효진의 이미지

2.4 는 원래 그렇습니다.
부하를 엄청주어 1개로 감당하기 힘들어지면 배분을 시작하죠.

그것이 맘에 안들어 irqbalance 시키기도 합니다.
2.4 커널에 패치를 해야 할겁니다.

그 후에 irqbalance 대몬을 띄워주면 골고루 분배됩니다.

-------------- 여기부터는 잡설 ----------------

2.6 커널에는 irq balance 옵션이 들어있죠.

아래는 2.6커널에 irq balance 옵션 넣고 irqbalance 대몬은 안띄운 상태입니다.
그러면 실제 cpu 단위를 주로 분배하게 됩니다. 여유로우니까요.
54: 에 보면 CPU1, 3 에 조금 분배한것이 보입니다.
2.6 은 지능적인 balance 를 한다고 되어있어서 irqbalance 대몬을 안띄웠죠.
아마 irqbalance 대몬을 띄우면 가상 cpu 단위로 무조건 분배할겁니다.

# cat /proc/interrupts
           CPU0       CPU1       CPU2       CPU3
  0:      55351          0 1484426008          0    IO-APIC-edge  timer
  8:          4          0          0          0    IO-APIC-edge  rtc
  9:          0          0          0          0   IO-APIC-level  acpi
 15:         13          0          0          0    IO-APIC-edge  ide1
 16:          0          0          0          0   IO-APIC-level  uhci_hcd
 18:          0          0          0          0   IO-APIC-level  uhci_hcd
 19:          0          0          0          0   IO-APIC-level  uhci_hcd
 28:    3918641          0          0          0   IO-APIC-level  aic79xx
 29:         30          0          0          0   IO-APIC-level  aic79xx
 54:   34456331         56   39809272         54   IO-APIC-level  eth0
NMI:          0          0          0          0
LOC: 1484605017 1484605054 1484604953 1484605060
ERR:          0
MIS:          0
mazikonn의 이미지

관련 글이 올라온 김에 질문해 봅니다.

smp 환경에서 하나의 프로세스가 여러개의 cpu를 사용하게 할 수는 없나요? 시뮬레이션 서버로 smp를 구축했는데도 여러명이 동시에 사용하지 않으면 smp가 무색합니다. :(

一切唯心造

nonots의 이미지

답변 감사하고요..
..
그런데.. 2.4 커널이 원래 그런건 CPU 가 4 개 부터 인가요??
..
다른서버 2 개짜리는 /proc/interrupts 를 봐도
정상적으로 2 개를 병렬도 잘 사용하는거 같습니다.
..

[root@www modules]# find /lib/modules | grep irq
[root@www modules]#

한컴리눅스3.1서버 에서
위와 같은 명령어를 쳐 봤는데..
결과가 없다는건 커널 패치가 안되었다고 봐야겠지요??
..


=== 건달의 경지를 꿈꾸며 ===

댓글 달기

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