2.6.4 리모트 커널 컴파일 성공 T_T

jellypo의 이미지

집에서 쓰는 PC에서 커널 컴파일을 하면 부팅은 되지만 네트워크는 안되는 커널을 많이 컴파일 해봤기 때문에 만반의 준비를 했습니다. 그 중 하나가 일정 시간 뒤 리붓...입니다. lilo -R 이랑 같이 물려놓으면 안전하리라 생각됩니다.

IDC에서 돌아가는거라 네트워크 기능만 제대로 들어가면 되는데 네트워크쪽 설정이 너무 많아서 대충 다 때려넣고(...),

커널 컴파일 뒤, lilo에 2.6.4 커널 추가. lilo 실행해서 등록.

lilo -R linux-2.6.4 panic=4
한 뒤,

/etc/crontab에
분 시 일 월 연 root reboot
을 추가, 분 시 일 월 연은 리붓은 성공했으나 네트워크가 안 될 때 원래 커널로 리붓하도록 적당히 시간을 맞춰주세요. 리붓 성공 뒤에 지우는거 잊지 마시고..;
/etc/init.d/crond restart

혹시 몰라서 initrd 이미지를 만들었습니다.
mkinitrd -f /boot/initrd-2.6.4 2.6.4
이렇게 하니 잘 만들어지더군요. 파일 시스템을 커널에 내장했기 때문이 불필요하다고 생각되지만 없어서 낭패보느니 낫다고 생각했습니다.

이정도면 제가 아는 한 안전장치를 다 했다고 생각하고 리붓했습니다.

ping -t i-i.st 를 때려놓고 조마조마하게 퐁이 오길 기다렸습니다. 피말리는 수초가 지나고 리붓 성공..! T_T

혹시 참고가 될까 하여 설정을 같이 올립니다. IDC에서 서버만 돌아가는거라 기능을 적게 넣었고, 네트워크쪽은 잘 몰라서 원래 있던 설정입니다 :oops:

더 최적화가 가능하면 지적해주시면 감사하겠습니다.

File attachments: 
첨부파일 크기
Plain text icon config.txt21.53 KB
jellypo의 이미지

ab -n 2000 -c 100 sleepnot.i-i.st/zoralboard/zboard.php?id=et_freeboard

Kernel 2.6.4
Finished 2000 requests
Server Software:        Apache/1.3.29
Server Hostname:        sleepnot.i-i.st
Server Port:            80

Document Path:          /zoralboard/zboard.php?id=et_freeboard
Document Length:        53160 bytes

Concurrency Level:      100
Time taken for tests:   200.858 seconds
Complete requests:      2000
Failed requests:        682
   (Connect: 0, Length: 682, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      83056139 bytes
HTML transferred:       82264559 bytes
Requests per second:    9.96 [#/sec] (mean)
Time per request:       10042.90 [ms] (mean)
Time per request:       100.43 [ms] (mean, across all concurrent requests)
Transfer rate:          413.51 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   143  802.9      0  9010
Processing:   212  9588 6679.4   9585 45107
Waiting:      211  9587 6679.6   9584 45107
Total:        212  9731 6719.7   9862 45107

Percentage of the requests served within a certain time (ms)
  50%   9862
  66%  10778
  75%  11541
  80%  12659
  90%  16521
  95%  23004
  98%  28015
  99%  35708
 100%  45107 (last request)
=========================
Kernel 2.4.18
Server Software:        Apache/1.3.29
Server Hostname:        sleepnot.i-i.st
Server Port:            80

Document Path:          /zoralboard/zboard.php?id=et_freeboard
Document Length:        53263 bytes

Concurrency Level:      100
Time taken for tests:   166.603 seconds
Complete requests:      2000
Failed requests:        841
   (Connect: 0, Length: 841, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      76482211 bytes
HTML transferred:       75692211 bytes
Requests per second:    12.00 [#/sec] (mean)
Time per request:       8330.15 [ms] (mean)
Time per request:       83.30 [ms] (mean, across all concurrent requests)
Transfer rate:          459.07 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    55  170.4      0  1432
Processing:    36  7937 4583.7   4829 92323
Waiting:       35  7932 4583.9   4827 92322
Total:         36  7992 4723.4   4832 92714

Percentage of the requests served within a certain time (ms)
  50%   4832
  66%   7075
  75%   8571
  80%   9656
  90%  11929
  95%  16722
  98%  81602
  99%  85061
 100%  92714 (last request)

...어느쪽이 좋은건지 못 알아보겠어요 :oops:
제가 설정해서 컴파일한 2.6.4 커널에 다소 문제가 있는거 같습니다.
----
갑자기 생각난건데, 이전 커널에서 컴파일된 아파치가 새 커널에서 제 성능을 못내는게 아닐까 하는 생각이 드네요. 새 커널에서 아파치도 다시 컴파일하고 하면 괜찮을까요...

sunyzero의 이미지

아파치 1.3.x 는 기본적으로 fork 방식이므로 아무리 커널을 높여도 성능향상에는 별로 큰 도움이 안됩니다. 정 도움을 보고 싶다면 아파치를 2.x 로 높여서 커널 2.6의 도움을 받으시는게 성능향상이 될거라 생각됩니다.

해당 애플리케이션과이 컴파일한 커널의 버전은 심각하게 버전이 차이나지 않는한 그렇게 큰 차이가 없습니다. 컴파일은 커널이 해주는게 아니라 컴파일러가 하고 실행시에 라이브러리에 의해서 영향을 받습니다.

========================================
* The truth will set you free.

댓글 달기

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