RAM-Auslastung sehr hoch - cache regeln?

x-mode

New Member
Howdy,
hab hier einen
Linux debian 2.6.27.4gen-dirty i686 GNU/Linux
der mir ein paar Probleme hinsichtlich Speicherauslastung macht.

Code:
debian:~# top
top - 15:06:17 up 45 days,  5:18,  1 user,  load average: 0.16, 0.14, 0.16
Tasks:  71 total,   1 running,  70 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 97.0%id,  3.0%wa,  0.0%hi,  0.0%si,  0.0%st
[b][color=red]Mem:   1003420k total,   947620k used[/color][/b],    55800k free,    71384k buffers
Swap:  2650684k total,        0k used,  2650684k free,   [b][color=red]767664k cached[/color][/b]

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 7909 root      20   0  2224 1108  852 R  0.7  0.1   0:00.29 top
  664 root      15  -5     0    0    0 S  0.3  0.0  14:31.03 kjournald
    1 root      20   0  1940  644  548 S  0.0  0.1   0:42.98 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:13.70 ksoftirqd/0
    5 root      15  -5     0    0    0 S  0.0  0.0   3:56.31 events/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:00.10 khelper
  130 root      15  -5     0    0    0 S  0.0  0.0   0:17.72 kblockd/0
  131 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
  132 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  190 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0
  191 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata_aux
  192 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksuspend_usbd
  198 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khubd
  201 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  234 root      15  -5     0    0    0 S  0.0  0.0   0:44.64 kswapd0
  235 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
  242 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 nfsiod
  243 root      15  -5     0    0    0 S  0.0  0.0   0:00.65 cifsoplockd
  244 root      15  -5     0    0    0 S  0.0  0.0   0:01.49 cifsdnotifyd
  246 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 xfs_mru_cache
  247 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 xfslogd/0
  248 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 xfsdatad/0
  504 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 iscsi_eh
  543 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0
  545 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_1
  644 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kstriped
  646 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kondemand/0
  654 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 vballoon
  657 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 rpciod/0
 1429 daemon    20   0  1680  364  268 S  0.0  0.0   0:00.00 portmap
 1643 root      20   0  1620  632  508 S  0.0  0.1   1:55.97 syslogd
 1649 root      20   0  1572  372  304 S  0.0  0.0   0:00.00 klogd
 1851 root      20   0  1744  612  512 S  0.0  0.1   1:00.05 inetd
 1926 root      20   0  4924 1088  752 S  0.0  0.1   0:00.03 sshd
 1931 root      20   0  3508  936  720 S  0.0  0.1   0:01.17 vsftpd
 1960 statd     20   0  1752  732  624 S  0.0  0.1   0:00.00 rpc.statd
 1988 daemon    20   0  1824  420  296 S  0.0  0.0   0:00.03 atd
 1996 root      20   0  2188  864  680 S  0.0  0.1   2:04.06 cron
 2058 root      20   0  1568  488  420 S  0.0  0.0   0:00.00 getty
 2060 root      20   0  1568  492  420 S  0.0  0.0   0:00.00 getty
 2062 root      20   0  1568  488  420 S  0.0  0.0   0:00.00 getty
 2063 root      20   0  1568  488  420 S  0.0  0.0   0:00.00 getty
 2064 root      20   0  1568  488  420 S  0.0  0.0   0:00.00 getty
 2065 root      20   0  1568  488  420 S  0.0  0.0   0:00.00 getty
 3238 root      20   0     0    0    0 S  0.0  0.0   0:01.53 pdflush
 3285 root      20   0     0    0    0 S  0.0  0.0   0:00.06 pdflush
 5195 root      20   0  7696 2280 1852 S  0.0  0.2   0:00.05 sshd
 5198 x-mode  20   0  7852 1600 1148 S  0.0  0.2   0:01.32 sshd
 5201 x-mode  20   0  4452 1888 1292 S  0.0  0.2   0:00.01 sh
 5204 root      20   0  3708 1076  868 S  0.0  0.1   0:00.00 su

Jetzt hab ich hier im Forum schon gelesen, dass womöglich der cache dies verursacht um Festplattenzugriffe zu minimieren. Die Tatsache, dass der Swap überhaupt nicht genutzt wird, stützt diese These augenscheinlich. Ich habe ein wenig recherchiert und herausgefunden, dass der zugewiesene Speicher für den Cache zurückgefahren werden sollte, wenn eine Anwendung mehr Speicher anfordert.

Nun ist es aber so, dass mir eine Wordpress-Installation regelmäßig meldet "php - cannot allocate memory" - scheinbar haut das mit der cache-Speicherzuweisung nicht so ganz hin.

Wie kriege ich das Prob in den Griff - cache ist zwar ganz schön, aber doch nicht wenn die Performance darunter leidet.... kann man dem Cache einen max-Wert zuweisen?

Danke schonmal,
x-mode
 
der mir ein paar Probleme hinsichtlich Speicherauslastung macht.
Das ist kein Problem, das gehört so. Sobald ein Prozess mehr Speicher anfordert, wird ein Teil des zum Cachen verwendeten Speichers freigegeben und dem Prozess zur Verfügung gestellt.

Nun ist es aber so, dass mir eine Wordpress-Installation regelmäßig meldet "php - cannot allocate memory" - scheinbar haut das mit der cache-Speicherzuweisung nicht so ganz hin.
Sicher, dass das nicht einfach die PHP-Einstellung memory_limit verursacht?
 
Back
Top