[질문]커널 2.6.11.4 에서 시스템 시간이 자꾸 느려 집니다...--

ani1974의 이미지

잘돌아 가던 서버(커널 2.6.6 사용)가 갑자기

Mar 14 17:53:22 db kernel: Losing too many ticks!
Mar 14 17:53:22 db kernel: TSC cannot be used as a timesource.
Mar 14 17:53:22 db kernel: Possible reasons for this are:
Mar 14 17:53:22 db kernel: You're running with Speedstep,
Mar 14 17:53:22 db kernel: You don't have DMA enabled for your hard disk (see hdparm),
Mar 14 17:53:22 db kernel: Incorrect TSC synchronization on an SMP system (see dmesg).
Mar 14 17:53:22 db kernel: Falling back to a sane timesource now.

와 같은 에러를 남기며 서버의 시간이 느려 지더니 결국은 cpu가 멈춰 버리면서 다운이 됐습니다. 무려 시간이 4시간이나 느려 지더군요... 이로 인해 데이터의 손실이 있었습니다..--;;;

그래서 커널 2.6.11.4 로 업데이트를 했습니다.(make old_config) 사용

설치후 하루종일 모니터링 결과 별 문제가 안보이더니

다시 시스템 시간이 느려 집니다...이게 디비 서버라 시스템 시간이 느려지면서 엄청난 부하가 걸리더군요...원격으로 ssh 접속도 안되고 접속이 되도 명령어 및 기타 입력시 키보드를 두번을 쳐야 입력이 됩니다. 엔터도 두번을 눌러야 넘어 가구요...

콘솔에서는 괜찮더군요...그래서 콘솔에서 rdate 를 이용을 해서 time.bora.net 으로 연결을 해서 시간을 맞춰주니 다시 서버 속도가 정상으로 돌아 옵니다.

크론으로 10분 간격으로 rdate 를 실행을 해주니 괜찮기는 한데요...피크 타임때는 10분 간격 사이에도 시스템 시간이 다시 느려 지면서(10분정도) 부하가 걸리내요...--;;;

디비 서버라 시간이 느려지면 치명적인데...--;;;

우연인지는 몰라도 시간이 느려 지면서 부하가 많이 걸릴때 콘솔을 연결을 해서 보면

atkbd.c; Spurious ACK on isa0060/serio0. Some program, like XFREE86, might be trying access hardware directly

와 같은 메세지가 남아 있습니다.
위의 메세지하고 시간이 느려지는거하고 관계가 있나요?

해결 방법은 없는지요?

codebank의 이미지

혹시 사용하는 DB가 oracle인가요?

http://database.sarang.net/database/oracle/oracle-805/server.805/a66585/ch3_opt.htm

위 문서에서 그와 관련된 부분이 보이더군요. 결론은 swap을 충분히 잡아주어야한다는거지만요.

Quote:
free utility는 스왑 공간 이용률에 관해 알려준다. 스왑공간이 모자랄 경우 시스템이 중단되던지 응답시간이 느려지게 된다.

------------------------------
좋은 하루 되세요.

ani1974의 이미지

사용중인 디비는 mysql 입니다.
idc 직원분의 도움으로 ntp 와 clockspeed 로 시스템 및 커널의 시간을 주기적으로 표준화를 해주니 현재 까지는 그런 현상이 없내요...

피크타임 임에도 서버의 느림 현상은 없구요...

이걸로 해결이 된다면 서버 시간의 표준화를 절실히 느끼게 되는 계기가 될듯 합니다...--;;;

말씀 해주신 스왑도 한번 점검 해봐야 겠내요...^^

감사합니다...^^

댓글 달기

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