파일이 자꾸 깨집니다.

익명 사용자의 이미지

커널 컴파일을 하고 있는데 이상하게도 자꾸 segfault를 내면서 죽는 현상이 있더군요.

임시로 생성된 파일을 보면 그 내용이 깨져 있어서 지우고 다시 컴파일 하곤 했는데
이게 랜덤으로 발생하니 파일 시스템이 의심이 들더군요.
그냥 두는게 아니다 싶어서 간단한 테스트를 해봤습니다.

방법은 간단합니다.

cp -ap kernel.orig kernel.copy
diff -ru kernel.orig kernel.copy > copy.diff
lsdiff copy.diff

그러면 희안하게도 어쩔땐 멀쩡하고 어쩔땐 파일 한개정도가 망가져 있습니다. 다음과 같은 식입니다.
- else {
- if (target_pid != -1)
+ else k
+ if (|arget_pqd != -19

reiserfs / ext4 에서 테스트 해봤는데 모두 같은 현상이 있더군요.
파일시스템 specific한 문제가 아닐 것 같아서
Fedora 11에서 업그레이드해서 현재 Fedora 14 쓰고 있고,
Fedora 11에서부터 문제가 쭈욱 있었습니다.

그리고 삼성 HDD 쓰고 있습니다.
ATA-7: SAMSUNG HD642JJ, 1AA01113, max UDMA7

이쯤에서 가장 의심이 드는 것은 HDD의 하드웨어적 결함이네요. (혹은 케이블이 느슨하거나?)

이쪽으로 경험해보신분 계시면 조언 부탁 드립니다~

익명 사용자의 이미지

그리고 ext4 상당히 빠르더군요~ㅎ

익명 사용자의 이미지

일단 다음과 같이 하니 이런 문제가 사라졌습니다.

더 테스트해봐야겠지만.
-------
hdparm -D0 /dev/sda

-D Enable/disable the on-drive defect management feature, whereby the drive firmware tries to automatically
manage defective sectors by relocating them to "spare" sectors reserved by the factory for such. Con-
trol of this feature via the -D flag is not supported for most modern drives since ATA-4; thus this com-
mand may fail.

-------

익명 사용자의 이미지

계속 오류가 나서 메모리 테스트를 해보았더니 메모리 오류가 나는군요. ;;;
구입한지 2년도 안되었는데 이러긴 처음...

댓글 달기

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