프로세스 스케줄링 관련 (SMP)

tipntech의 이미지

2개의 옵테론 CPU가 있습니다.

문제는 job이 두 개일 경우에는 각각 하나의 CPU에 잘 물려 돌아가는데

job이 CPU갯수 보다 더 많아질 경우의 경우가 문제입니다.

예를들어 2 CPU에 4개의 작업을 돌리면 2개 작업을 수행할때에 비해 약 절반정도 감소하는것이 맞지 않을 까 생각되는데.

물론 context switching이라던가. 그외 프로세스에 필요한

메모리 관리 측면의 부하를 고려한다고 하더라도..

속도가 너무 느리다고 생각되는데요.

리눅스 엔터프라이즈 AS 3.0를 깔았습니다

[quote]uname -a 결과 
--------------------------------
Linux localhost 2.4.21-15.0.4.ELsmp #1 SMP Sat Jul 31 01:20:42 EDT 2004 x86_64 x86_64 x86_64 GNU/Linux [/quote]

[quote]
/proc/cpuinfo
-------------------------------
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 5
model name      : AMD Opteron(tm) Processor 248
physical id     : 0
siblings        : 1
stepping        : 10
cpu MHz         : 2191.525
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 4364.69
TLB size        : 1088 4K pages
clflush size    : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 5
model name      : AMD Opteron(tm) Processor 248
physical id     : 0
siblings        : 1
stepping        : 10
cpu MHz         : 2191.525
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 4377.80
TLB size        : 1088 4K pages
clflush size    : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp[/quote]

그리고보니.. Top 결과를 올려야 하는데.. 이놈의 txt파일이 어디를 갔는지 안보이는 군요. 젤루 중요한건데..=_=;;

조금 있다가 찾아서 다시 추가해야겠습니다..=_=;;

IsExist의 이미지

2 cpu 이고 연산 중심이라면 1 < x < 3 가 가장 옵티멀 하다고 생각되네요.

4는 아니라고 봅니다.

vmstat 를 이용해서 프로세스 2개를 실행시 idle이 어느정도 인지 보세요.
idle 값이 어느정도 크다면 프로세스를 더 늘려도 연산의 이득을 본다고 생각되지만
그렇지 않다면 프로세스 갯수를 늘린다는건 무의미 합니다.

Quote:

vmstat [레포팅 주기 초]

---------
간디가 말한 우리를 파괴시키는 7가지 요소

첫째, 노동 없는 부(富)/둘째, 양심 없는 쾌락
셋째, 인격 없는 지! 식/넷째, 윤리 없는 비지니스

이익추구를 위해서라면..

다섯째, 인성(人性)없는 과학
여섯째, 희생 없는 종교/일곱째, 신념 없는 정치

tipntech의 이미지

제가 질문한 내용의 해결책은 Kernel 2.6의 O(1) 스케줄러를 써라~! 였습니다. =_=;;;

그동안 여기저기서 kernel 2.6에 대해 무수히 많은 정보들이 있었건만.

무슨 내용인지는 모르고 까막눈이었다가. 이제사 한가지 한가지 부분적으로나마

알게되는군요... (열심히 해야겠습니다..~!!!!)

일단은 kernel 2.6이 적용된 리눅스를 사용하려면

1. 개인적으로 컴파일을 하시던가.
2. 벤더님들 것을 쓰시던가
(수세 엔터프라이즈, 올해 말-12월-에 나오는 레드햇 엔터프라이즈 AS 4,
기타 적용된 국내 배포판님들)하면 되겠군요..

결국 HPC일 경우 SMP의 효율을 위해선 kernel2.6의 O(1)이 필요하다였습니다.

감사합니다.. 이 글을 보아주신 분들 모두...(-_-)(_ _)

=_/~ hum......

댓글 달기

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