돌아가는 서버가 몇개 안되는데 428 메가나 먹는 메모리.

hiseob의 이미지

Quote:
dgnserver root # ps -A
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 events/0
5 ? 00:00:00 khelper
6 ? 00:00:00 kblockd/0
32 ? 00:00:00 pdflush
33 ? 00:00:00 pdflush
35 ? 00:00:00 aio/0
34 ? 00:00:00 kswapd0
275 ? 00:00:00 ata/0
278 ? 00:00:00 kseriod
283 ? 00:00:00 reiserfs/0
412 ? 00:00:00 devfsd
5246 ? 00:00:00 syslog-ng
5489 ? 00:00:00 sshd
5532 ? 00:00:00 cron
5549 tty1 00:00:00 agetty
5551 tty2 00:00:00 agetty
5552 tty3 00:00:00 agetty
5553 tty4 00:00:00 agetty
5554 tty5 00:00:00 agetty
5555 tty6 00:00:00 agetty
5575 ? 00:00:00 screen
5576 pts/1 00:00:00 hlds_run
5583 pts/1 00:00:16 hlds_i686
18167 ? 00:00:00 sshd
18169 pts/2 00:00:00 bash
18175 pts/2 00:00:00 ps

dgnserver root # uptime
08:54:26 up 8:12, 1 user, load average: 0.00, 0.00, 0.00

hlds 는 half life dedicated server 이구요,

젠투 2004.0 커널 2.6.7 입니다 . 파일시스템은 reiserfs 이구요.

왜이럴까요? HLDS 의 문제 말고는 메모리가 저럴 이유가 없나요?

아니면 어떤 특정 명령어를 실행 시키면 저게 해결 되나요?

어제 emerge system 도 했는데 음 뭐가 문젠지 모르겠군요.

File attachments: 
첨부파일 크기
Image icon dgnservertop.PNG28.08 KB
jw0717의 이미지

정상인것처럼 보이는데요..

free = free + buffer +cache

hiseob의 이미지

그러면 버퍼와 캐시 까지 합해서 428 이라는 거군요 ^^;;

그럼 저 버퍼와 캐시는 왜 생기는것이고

어떻게 하면 정리하거나 할수 있나요?

jw0717의 이미지

정리를 하는건 잘몰겠네요.. 그런데 왜 정리를 하죠..

퍼포먼스 향상을 위한게 캐시메모린데... 일반하드에서 읽어오는것보다

메모리에서 읽어오는게 더 빠르니까.. 남는 메모리에다 데이터 올려놓고..

그때 그때 가져다 쓰기위한게 케시메모리 로 알고있는데요.

freezm7의 이미지

디스크에서 미리 파일을 읽어들여 놓음으로써,
IO 성능을 향상 시키는 기술이 caching 인데요,

여기에 쓰이는게, cache 항목이죠.
이 메모리는 단지 성능 향상을 위해 할당되어 있기 때문에,
메모리가 필요하면 언제든지 되돌려주는 것이라,
실제로는 free 와 차이점이 없죠.

생각해 보면, free + cache 의 합이 같다면,
free 보다는 cache 의 용량이 많아야,
메모리를 더 잘 활용하고 있다고 볼 수 있겠죠? :D

즐겁게 살아 볼까나~*

hiseob의 이미지

그렇군요 ^^;;

쓸데없이 먹고 있는건줄 알고 있었거든요 ^^;;

하여간 답변주신분들 감사 합니다.

댓글 달기

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