URL: https://linuxfr.org/forums/linux-gentoo/posts/eventuel-probl%C3%A8me-consommation-m%C3%A9moire Title: Eventuel problème consommation mémoire Authors: Michel Pastor Date: 2007年06月02日T00:15:08+02:00 Tags: Score: 0 Bonjour, j'aimerais un conseil à propos de la gentoo sur mon serveur. Je pense, à la vue de la sortie des différents utilitaires permettant de mesurer la consommation mémoire pouvoir dire qu'il ya un problème pourtant rien ne devrait conduire à une telle consommation mémoire. De plus ceci arrive apres tout juste 1 jour d'uptime et cela avec un minimum de service démarré. J'ai pensé à un problème lié au kernel. Ainsi j'ai testé un 2.6.21 car je tournais avec un 2.6.20. La seule différence avec une autre de mes machines est que sur mon serveur j'ai mis en place un RAID5 logiciel. Voici le résultat que me retourne les différents outils de mesure : free -m total used free shared buffers cached Mem: 2011 1994 17 0 425 548 -/+ buffers/cache: 1021 990 Swap: 1907 2 1904 vmstat -s 2059916 total memory 2040676 used memory 204148 active memory 798836 inactive memory 19240 free memory 430712 buffer memory 566696 swap cache 1952992 total swap 2740 used swap 1950252 free swap 772 non-nice user cpu ticks 1066 nice user cpu ticks 8820 system cpu ticks 52375243 idle cpu ticks 96363 IO-wait cpu ticks 11854 IRQ cpu ticks 1374 softirq cpu ticks 0 stolen cpu ticks 5050303 pages paged in 134260 pages paged out 25 pages swapped in 693 pages swapped out 109372847 interrupts 7583823 CPU context switches 1180477139 boot time 14679 forks ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2672 616 ? Ss May30 0:01 init [3] root 2 0.0 0.0 0 0 ? S May30 0:00 [migration/0] root 3 0.0 0.0 0 0 ? SN May30 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S May30 0:00 [migration/1] root 5 0.0 0.0 0 0 ? SN May30 0:00 [ksoftirqd/1] root 6 0.0 0.0 0 0 ? S< May30 0:00 [events/0] root 7 0.0 0.0 0 0 ? S< May30 0:00 [events/1] root 8 0.0 0.0 0 0 ? S< May30 0:00 [khelper] root 9 0.0 0.0 0 0 ? S< May30 0:00 [kthread] root 50 0.0 0.0 0 0 ? S< May30 0:00 [kblockd/0] root 51 0.0 0.0 0 0 ? S< May30 0:00 [kblockd/1] root 52 0.0 0.0 0 0 ? S< May30 0:00 [kacpid] root 181 0.0 0.0 0 0 ? S< May30 0:00 [ata/0] root 182 0.0 0.0 0 0 ? S< May30 0:00 [ata/1] root 183 0.0 0.0 0 0 ? S< May30 0:00 [ata_aux] root 184 0.0 0.0 0 0 ? S< May30 0:00 [kseriod] root 218 0.0 0.0 0 0 ? S May30 0:00 [pdflush] root 219 0.0 0.0 0 0 ? S May30 0:00 [pdflush] root 220 0.0 0.0 0 0 ? S< May30 0:07 [kswapd0] root 221 0.0 0.0 0 0 ? S< May30 0:00 [aio/0] root 222 0.0 0.0 0 0 ? S< May30 0:00 [aio/1] root 888 0.0 0.0 0 0 ? S< May30 0:00 [scsi_eh_0] root 889 0.0 0.0 0 0 ? S< May30 0:00 [scsi_eh_1] root 905 0.0 0.0 0 0 ? S< May30 0:00 [scsi_eh_2] root 906 0.0 0.0 0 0 ? S< May30 0:00 [scsi_eh_3] root 936 0.0 0.0 0 0 ? S< May30 0:00 [kpsmoused] root 943 0.0 0.0 0 0 ? S< May30 0:00 [kedac] root 1258 0.0 0.0 0 0 ? S< May30 0:00 [ksuspend_usbd] root 1261 0.0 0.0 0 0 ? S< May30 0:00 [khubd] root 1556 0.0 0.0 0 0 ? S< May30 0:00 [khpsbpkt] root 1624 0.0 0.0 0 0 ? S< May30 0:00 [knodemgrd_0] root 1884 0.0 0.0 0 0 ? S< May30 0:00 [kmirrord] root 2321 0.0 0.0 0 0 ? S< May30 0:00 [ksnapd] root 2472 0.0 0.0 0 0 ? S< May30 0:00 [kjournald] root 2584 0.0 0.0 7184 804 ? S<s May30 0:00 /sbin/udevd --d root 5075 0.0 0.0 0 0 ? S< May30 0:00 [kjournald] root 7647 0.0 0.0 7196 696 ? Ss May30 0:00 /usr/sbin/syslo root 7709 0.0 0.0 2660 572 ? Ss May30 0:00 /usr/sbin/acpid root 7778 0.0 0.1 32724 2392 ? Ss May30 0:00 /usr/sbin/cupsd distcc 7900 0.0 0.0 7424 300 ? SNs May30 0:00 /usr/bin/distcc distcc 7901 0.0 0.0 7424 220 ? SN May30 0:00 /usr/bin/distcc distcc 8307 0.0 0.0 7424 220 ? SN May30 0:00 /usr/bin/distcc distcc 8308 0.0 0.0 7424 220 ? SN May30 0:00 /usr/bin/distcc distcc 8309 0.0 0.0 7424 220 ? SN May30 0:00 /usr/bin/distcc root 8310 0.0 0.0 2684 416 ? Ss May30 0:00 /sbin/dhcpcd -h rpc 8441 0.0 0.0 9048 752 ? Ss May30 0:00 /sbin/portmap root 8507 0.0 0.0 17652 872 ? Ss May30 0:00 /usr/sbin/rpc.i nobody 8512 0.0 0.0 4808 740 ? Ss May30 0:00 /sbin/rpc.statd root 8525 0.0 0.0 0 0 ? S May30 0:00 [lockd] root 8526 0.0 0.0 0 0 ? S< May30 0:00 [rpciod/0] root 8527 0.0 0.0 0 0 ? S< May30 0:00 [rpciod/1] root 8528 0.0 0.0 0 0 ? S< May30 0:00 [nfsd4] root 8529 0.0 0.0 0 0 ? S May30 0:02 [nfsd] root 8530 0.0 0.0 0 0 ? S May30 0:02 [nfsd] root 8531 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8532 0.0 0.0 0 0 ? S May30 0:02 [nfsd] root 8533 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8534 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8535 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8536 0.0 0.0 0 0 ? S May30 0:02 [nfsd] root 8537 0.0 0.0 0 0 ? S May30 0:02 [nfsd] root 8538 0.0 0.0 0 0 ? S May30 0:02 [nfsd] root 8539 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8540 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8541 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8542 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8543 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8544 0.0 0.0 0 0 ? S May30 0:01 [nfsd] root 8553 0.0 0.0 9176 1068 ? Ss May30 0:00 /usr/sbin/rpc.m root 8613 0.0 0.0 6228 660 ? Ss May30 0:00 /usr/bin/rsync root 8686 0.0 0.0 21356 1252 ? Ss May30 0:00 /usr/sbin/sshd root 8749 0.0 0.0 9080 744 ? Ss May30 0:00 /usr/sbin/cron root 8818 0.0 0.0 3728 692 tty1 Ss+ May30 0:00 /sbin/agetty 38 root 8819 0.0 0.0 3728 696 tty2 Ss+ May30 0:00 /sbin/agetty 38 root 8820 0.0 0.0 3728 692 tty3 Ss+ May30 0:00 /sbin/agetty 38 root 8821 0.0 0.0 3728 696 tty4 Ss+ May30 0:00 /sbin/agetty 38 root 8822 0.0 0.0 3728 696 tty5 Ss+ May30 0:00 /sbin/agetty 38 root 8823 0.0 0.0 3728 696 tty6 Ss+ May30 0:00 /sbin/agetty 38 root 14690 0.0 0.1 33392 2768 ? Ss 01:10 0:00 sshd: root@pts/ root 14697 0.0 0.0 10436 1928 pts/0 Ss 01:10 0:00 -bash root 14793 0.0 0.0 8452 980 pts/0 R+ 02:05 0:00 ps aux