/proc/net/dev 초기화 방법은..?

taba의 이미지

/proc/net/dev 파일을 살펴보면 eth0 항목의 값이 아래와 같습니다.

eth0:4294967295 970809738 0 0 0 0 0 0 4294967295 960975169 0 0 0 0 0 0

4294967295 라는 수치를 보니 지정된 자료형의 크기를 넘어서는 바람에 더이상 수치가 증가하지 않고 있는것 같습니다.

해당 파일을 삭제해도 초기화 되지는 않고 동일한 값을 가진 파일로 다시 생성되네요..
이 부분을 초기화 시키는 방법이 있는지 알고싶습니다.

Prentice의 이미지

초보지만 혹시나 해서 글 써봅니다.

1. eth0 디바이스를 ifdown후 다시 ifup한다.
2. eth0 디바이스를 ifdown후 eth0 관련 커널 모듈을 내렸다 올리고 ifup한다.

이런 것은 해보셨나요..?

taba의 이미지

답변 감사합니다. ^^

지금 서비스 중인 시스템이라.. 인터페이스를 죽였다 살려보진 못하겠네용..

차후에 시스템 리부팅 할때 한번 테스트 해봐야겠어요. ^^

ctcquatre의 이미지

흠,..제가 알기론 현제 커널 패치를 하지않고는 방법이 없습니다.

시스템을 리스타트 시키던가 아니면 해당 인터페이스를 리스타트 시키는게 유일한 방법입니다.
해외 많은 포럼에 올라왔던 질문이나.. 직접적으로 카운터를 리셋시키는 방법은 없는듯 하군요.

물론 커널 2.4때의 알고 있던거라 2.6에서는 모르겠습니다.
현제 2.6커널을 쓰시나요?

궁금합니다 현제 커널버젼을 꼭 알려주셨으면 합니다.:)

아 추가로

I have made a patch to fix the counter values in /proc/net/dev. The
problem was that the tx_bytes and rx_bytes will reset when ~4GB is
transferred. This patch has been tested to work with linux-2.5.0 but it
should work on all 2.4.* kernels. Also it should work with most of the
interface cards but not all yet.

예전에 이런 글이 있군요.

그때 빈번하게 패치가 나왔으니..아마 2.6에서는 패치가 적용됐나 모르겠습니다..
저도 트래픽 모니터링에 관심이 많은지라.. 현제 커널 버젼이 2.4인지 2.6인지
알려주시면 감사하겠습니다

Chaos to Cosmos,
Chaos to Chaos,
Cosmos to Cosmos,
Cosmos to Chaos.

taba의 이미지

해당 서버의 커널 버전은 2.4대 입니다.

시스템 리부팅만으로도 초기화가 된다는 말씀이시군요..

기회가 될때 테스트 해봐야겠습니다. ^^

그런데 말씀하신 커널 패치는 어디서 받을 수 있을까요?

댓글 달기

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