All pastes #263637 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-01 18:12 UTC
rendered paste body
http://ktown.kde.org/~seli/memory/

top - 14:37:17 up  2:25,  3 users,  load average: 0.32, 0.18, 0.16
Tasks: 119 total,   6 running, 113 sleeping,   0 stopped,   0 zombie
Cpu(s):  8.2% us,  1.8% sy,  0.4% ni, 84.8% id,  4.4% wa,  0.0% hi,  0.4% si
Mem:   1028976k total,   969940k used,    59036k free,    67940k buffers
Swap:   883564k total,        0k used,   883564k free,   362692k cached


free -m (não é o ideal para ver algo assim)
             total       used       free     shared    buffers     cached
Mem:          1004        947         57          0         66        354
-/+ buffers/cache:        526        478
Swap:          862          0        862





CPU: AMD Sempron 64 2600+
Memory: 1GB



Considere coisa que nenhum usuário final vai usar:
root      3915  0.0  0.9 180336  9928 ?        Ss   12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4161  0.0  0.4 180336  5120 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4162  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4163  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4164  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4165  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
2.9% de memória = ~30MB

Weekalarm.py é um plugin antigo não oficial de despertador para o amarok, essa versão é problemática, mas como tenho memória suficiente, não me faz falta. Acho que não é todo mundo que dorme com o PC ligado e usa ele como despertador... Sem ele teria mais ~15MB livres. Então devemos desconsiderá-lo também.

No caso, sem usar swap e sem rodar as coisas acima teriamos (pelo menos):
                          Used       Free
-/+ buffers/cache:        481        523

Ou seja, eu mexendo como um usuário normal (digo, sem estar mexendo com o site que tou fazendo já que eu fico com vários 'extras' como Firefox (sim, uso ele TAMBÉM pois as extensões de apoio a web designers dele são interessantes), Kdevelop e algum PDF ou outro) posso usar tudo como uso sem nenhum problema de memória, apenas não vou ter a performance ganha pelo cache.




Distribuição: SUSE 10.1 64bits (considere que 64bits gasta mais memória que 32bits por causa do espaço para ponteiros alocados na memória... e isso é sim desculpa pois uma plataforma de 64bits é evolução e memória também evolui ;)




Mais considerações...

Konversation (cliente de IRC) com 12 telas abertas, logando todas as janelas, cada janela pode gastar até 1MB em texto (eu configurei assim porque eu gosto e tenho memória). Sem ele teria mais ~34MB livres.

O amarok consome sim muita memória, mas lembre-se que ele não é um player simples, mas algo bastante complexo [lembre também da plataforma].

Akregator tá consumindo uns 32MB, vale dizer que tenho 1087 feeds para ler nele pois faz quase um mês que não leio...

O MySQL está consumindo uns 20MB de memória, o amarok está o usando, além de eu usá-lo para outras coisas.

henrique  5742  0.2  3.3 142316 33972 ?        S    12:17   0:19 konversation -caption Konversation -icon konversation -miniicon konversation

henrique  4378  0.0  1.5  69592 15796 ?        Sl   12:14   0:00 python /home/henrique/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py

henrique  4233  0.0  1.5  70768 15796 ?        S    12:13   0:00 python /home/henrique/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py -session 10119d4dba60001164822418000000

henrique  4220  0.0  5.0 268972 52328 ?        Sl   12:13   0:03 amarokapp -session 10119d4dba6000116482240600000042070086_1164939017_305158

henrique  4216  0.0  3.2 125664 33316 ?        S    12:13   0:02 akregator -session 10119d4dba6000115769121100000042370159_1164939017_521471

mysql     3368  0.0  1.9 128464 20576 ?        Sl   12:12   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-l






Um ps -aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    780   300 ?        S    12:11   0:00 init [5]
root         2  0.0  0.0      0     0 ?        SN   12:11   0:00 [ksoftirqd/0]
root         3  0.0  0.0      0     0 ?        S<   12:11   0:00 [events/0]
root         4  0.0  0.0      0     0 ?        S<   12:11   0:00 [khelper]
root         5  0.0  0.0      0     0 ?        S<   12:11   0:00 [kthread]
root         7  0.0  0.0      0     0 ?        S<   12:11   0:00 [kblockd/0]
root         8  0.0  0.0      0     0 ?        S<   12:11   0:00 [kacpid]
root       111  0.0  0.0      0     0 ?        S    12:11   0:00 [pdflush]
root       112  0.0  0.0      0     0 ?        S    12:11   0:01 [pdflush]
root       114  0.0  0.0      0     0 ?        S<   12:11   0:00 [aio/0]
root       113  0.0  0.0      0     0 ?        S    12:11   0:00 [kswapd0]
root       321  0.0  0.0      0     0 ?        S<   12:11   0:00 [cqueue/0]
root       322  0.0  0.0      0     0 ?        S<   12:11   0:00 [kseriod]
root       353  0.0  0.0      0     0 ?        S<   12:11   0:00 [kpsmoused]
root       669  0.0  0.0      0     0 ?        S<   12:11   0:00 [ata/0]
root       673  0.0  0.0      0     0 ?        S<   12:11   0:00 [scsi_eh_0]
root       675  0.0  0.0      0     0 ?        S<   12:11   0:00 [scsi_eh_1]
root       734  0.0  0.0      0     0 ?        S<   12:11   0:00 [reiserfs/0]
root       844  0.0  0.0   7188   788 ?        S<s  12:12   0:00 /sbin/udevd --daemon
root      1302  0.0  0.0      0     0 ?        S<   12:12   0:00 [khubd]
root      1458  0.0  0.0      0     0 ?        S    12:12   0:00 [shpchpd_event]
root      2246  0.0  0.0   8292   856 ?        Ss   12:12   0:00 /sbin/syslog-ng
root      2249  0.0  0.0   2884   676 ?        Ss   12:12   0:00 /sbin/klogd -c 1 -x -x
100       2268  0.0  0.1  13164  1076 ?        Ss   12:12   0:00 /usr/bin/dbus-daemon --system
root      2270  0.0  0.0   2616   504 ?        Ss   12:12   0:00 /sbin/acpid
root      2317  0.0  0.0  10088   752 ?        Ss   12:12   0:00 /sbin/resmgrd
root      2536  0.0  0.3  14156  3188 ?        Ss   12:12   0:01 /usr/sbin/hald --daemon=yes --retain-privileges
root      2707  0.0  0.0   6008   732 ?        S    12:12   0:00 hald-addon-acpi
root      2857  0.0  0.0   6004   652 ?        S    12:12   0:00 hald-addon-storage
root      2861  0.0  1.0  44636 10620 ?        Ss   12:12   0:07 /usr/bin/perl -w /usr/sbin/aa-eventd -p /var/run/aa-eventd.pid
root      3070  0.0  0.0  11460   916 ?        S    12:12   0:00 /opt/kde3/bin/kdm
root      3079  0.0  0.0  11500   892 ?        Ss   12:12   0:00 /usr/sbin/smpppd-ifcfg --up --rc -i ifcfg-dsl0
mdnsd     3123  0.0  0.0   7220   976 ?        Ss   12:12   0:00 /usr/sbin/mdnsd -f /etc/nss_mdns.conf -b
root      3136  0.0  0.1  15216  1360 ?        Ss   12:12   0:00 /usr/sbin/pppd logfd 7 call pppoe eth1 mtu 1492 mru 1492 ipcp-accept-local ipcp-accept-remote idle 0 defaultroute r
root      3165  2.2  7.9 124724 82200 tty7     SLs+ 12:12   3:17 /usr/X11R6/bin/Xorg -br -nolisten tcp :0 vt7 -auth /var/lib/xdm/authdir/authfiles/A:0-WCjARw
root      3167  0.0  0.1  32004  1772 ?        S    12:12   0:00 -:0
root      3171  0.0  0.0  12000   624 ?        S<sl 12:12   0:00 /sbin/auditd -n
nobody    3174  0.0  0.0   4704   444 ?        Ss   12:12   0:00 /sbin/portmap
root      3177  0.0  0.0      0     0 ?        S<   12:12   0:00 [kauditd]
lp        3278  0.0  0.4  25172  4528 ?        Ss   12:12   0:00 /usr/sbin/cupsd
root      3308  0.0  0.1   7976  1476 ?        S    12:12   0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/mysql/mysql.sock -
mysql     3368  0.0  1.9 128464 20576 ?        Sl   12:12   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-l
root      3420  0.0  0.1  20292  2004 ?        S    12:12   0:00 /usr/sbin/powersaved -d -f /var/run/acpid.socket -v 3
root      3574  0.0  0.0   5860   272 ?        Ss   12:12   0:00 /sbin/dhcpcd -C -H -D -K -N -t 999999 -h sempron64 -c /etc/sysconfig/network/scripts/dhcpcd-hook eth1
root      3578  0.0  0.1  17516  1260 ?        Ss   12:12   0:00 /usr/sbin/smpppd
root      3694  0.0  0.1  27872  1416 ?        Ss   12:12   0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
ntp       3755  0.0  0.4  11044  4932 ?        SLs  12:12   0:00 /usr/sbin/ntpd -p /var/lib/ntp/var/run/ntp/ntpd.pid -u ntp -i /var/lib/ntp
root      3766  0.0  0.1 134244  1272 ?        Ssl  12:12   0:00 /usr/sbin/nscd
root      3842  0.0  0.2  21308  2156 ?        Ss   12:12   0:00 /usr/lib/postfix/master
postfix   3862  0.0  0.2  21312  2112 ?        S    12:12   0:00 qmgr -l -t fifo -u
root      3878  0.0  0.0   5992   552 ?        Ss   12:12   0:00 /usr/sbin/cron
henrique  3895  0.0  0.1   9364  1684 ?        Ss   12:13   0:00 /bin/sh /usr/X11R6/bin/kde
root      3915  0.0  0.9 180336  9928 ?        Ss   12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root      4084  0.0  0.0   3056   708 tty1     Ss+  12:13   0:00 /sbin/mingetty --noclear tty1
root      4085  0.0  0.0   3056   696 tty2     Ss+  12:13   0:00 /sbin/mingetty tty2
root      4086  0.0  0.0   3060   696 tty3     Ss+  12:13   0:00 /sbin/mingetty tty3
root      4087  0.0  0.0   3060   692 tty4     Ss+  12:13   0:00 /sbin/mingetty tty4
root      4088  0.0  0.0   3060   692 tty5     Ss+  12:13   0:00 /sbin/mingetty tty5
root      4089  0.0  0.0   3060   692 tty6     Ss+  12:13   0:00 /sbin/mingetty tty6
henrique  4090  0.0  0.0   9596   460 ?        Ss   12:13   0:00 /usr/bin/gpg-agent --sh --daemon
henrique  4121  0.0  0.0  22240   880 ?        Ss   12:13   0:00 ssh-agent /bin/bash /etc/X11/xinit/xinitrc
henrique  4125  0.0  0.0   9836   628 ?        Ss   12:13   0:00 dbus-daemon --fork --print-pid 8 --print-address 6 --session
henrique  4126  0.0  0.0   9064   716 ?        S    12:13   0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session /usr/X11R6/bin/kde
wwwrun    4161  0.0  0.4 180336  5120 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4162  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4163  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4164  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4165  0.0  0.4 180336  5108 ?        S    12:13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
henrique  4167  0.0  0.0   2468   148 ?        S    12:13   0:00 start_kdeinit --new-startup +kcminit_startup
henrique  4168  0.0  0.8  69744  8628 ?        Ss   12:13   0:00 kdeinit Running...
henrique  4171  0.0  0.3  67960  3696 ?        S    12:13   0:03 dcopserver [kdeinit] --nosid
henrique  4173  0.0  0.9  72296  9780 ?        S    12:13   0:00 klauncher [kdeinit] --new-startup
henrique  4175  0.5  2.4 144444 25200 ?        S    12:13   0:47 kded [kdeinit] --new-startup
henrique  4180  0.0  0.0   2600   408 ?        S    12:13   0:00 kwrapper ksmserver
henrique  4182  0.0  1.2  84184 13296 ?        S    12:13   0:00 ksmserver [kdeinit]
henrique  4183  0.0  1.7  88332 17788 ?        S    12:13   0:06 kwin [kdeinit] -session 10119d4dba6000115992067000000042750000_1164939033_253691
henrique  4185  0.0  1.9  91988 19656 ?        S    12:13   0:02 kdesktop [kdeinit]
henrique  4187  0.0  2.7 116692 27872 ?        S    12:13   0:05 kicker [kdeinit]
henrique  4188  0.0  0.8  73756  8284 ?        S    12:13   0:00 kio_file [kdeinit] file /tmp/ksocket-henrique/klauncherrpQinc.slave-socket /tmp/ksocket-henrique/kdesktop10gSYb.sla
henrique  4209  0.0  1.9  90784 19676 ?        S    12:13   0:00 kmix [kdeinit] -session 10119d4dba6000114721265100000059620022_1164939017_895299
henrique  4211  0.0  2.0  92984 21324 ?        S    12:13   0:03 yakuake -session 10119d4dba6000115047780300000040560019_1164939017_212102
henrique  4214  0.0  1.8  80156 18768 ?        S    12:13   0:04 kget -session 10119d4dba6000116080405900000041100081_1164939017_736782
henrique  4216  0.0  3.2 125664 33316 ?        S    12:13   0:02 akregator -session 10119d4dba6000115769121100000042370159_1164939017_521471
henrique  4218  0.0  1.5 122776 16344 ?        S    12:13   0:01 knotify [kdeinit]
henrique  4219  0.6  8.4 237108 86932 ?        S    12:13   0:59 kopete -session 10119d4dba6000116336461900000081830113_1164939017_238424
henrique  4220  0.0  5.0 268972 52328 ?        Sl   12:13   0:03 amarokapp -session 10119d4dba6000116482240600000042070086_1164939017_305158
henrique  4231  0.0  0.2  10112  2452 pts/0    Ss   12:13   0:00 /bin/bash
henrique  4233  0.0  1.5  70768 15796 ?        S    12:13   0:00 python /home/henrique/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py -session 10119d4dba60001164822418000000
henrique  4267  0.0  0.8  72204  9212 ?        S    12:13   0:00 kalarmd --autostart
henrique  4277  0.0  1.6  97372 17184 ?        S    12:13   0:00 kpowersave [kdeinit]
henrique  4279  0.0  1.4  84092 14820 ?        S    12:13   0:00 klipper [kdeinit]
henrique  4360  2.2 15.0 268228 155044 ?       S    12:14   3:10 konqueror [kdeinit] --silent
henrique  4376  0.0  0.3   9968  3116 ?        S    12:14   0:00 ruby /opt/kde3/share/apps/amarok/scripts/score_default/score_default.rb
henrique  4377  0.0  0.7  64980  7884 ?        Sl   12:14   0:00 python /home/henrique/.kde/share/apps/amarok/scripts/lastamarok.amarokscript/lastamarok.py
henrique  4378  0.0  1.5  69592 15796 ?        Sl   12:14   0:00 python /home/henrique/.kde/share/apps/amarok/scripts/weekalarm/weekalarm.py
lp        4810  0.0  0.7  18500  7364 ?        S    12:15   0:00 /usr/bin/perl /usr/lib64/cups/filter/foomatic-rip 1 henrique (stdin) 1
lp        4811  0.0  0.1  11844  1132 ?        S    12:15   0:00 usb:/dev/usb/lp0 1 henrique (stdin) 1
lp        4821  0.0  0.6  18500  6320 ?        S    12:15   0:00 /usr/bin/perl /usr/lib64/cups/filter/foomatic-rip 1 henrique (stdin) 1
lp        4822  0.0  0.5  18500  5984 ?        S    12:15   0:00 /usr/bin/perl /usr/lib64/cups/filter/foomatic-rip 1 henrique (stdin) 1
lp        4823  0.0  0.1   8444  1400 ?        S    12:15   0:00 sh -c foomatic-gswrapper -dPARANOIDSAFER -sDEVICE=bitcmyk -r600x600 -dDITHERPPI=100 -sOutputFile=- -dBATCH -q -dNOP
lp        4824  0.0  0.1   8444  1412 ?        S    12:15   0:00 sh -c gs '-dPARANOIDSAFER' '-sDEVICE=bitcmyk' '-r600x600' '-dDITHERPPI=100' '-sOutputFile=| cat >&3' '-dBATCH' '-dN
lp        4825  0.0  0.1   3364  1288 ?        S    12:15   0:00 cZ11
lp        4826  0.0  1.3  50756 13616 ?        S    12:15   0:00 gs -dPARANOIDSAFER -sDEVICE=bitcmyk -r600x600 -dDITHERPPI=100 -sOutputFile=| cat >&3 -dBATCH -dNOPAUSE /dev/fd/0
lp        4848  0.0  0.1   8440  1404 ?        S    12:15   0:00 sh -c  cat >&3
lp        4849  0.0  0.0   2612   496 ?        S    12:15   0:00 cat
henrique  5514  0.0  0.3   8108  3756 ?        S    12:17   0:00 ispell -a -S -C -d american
henrique  5742  0.2  3.3 142316 33972 ?        S    12:17   0:19 konversation -caption Konversation -icon konversation -miniicon konversation
henrique  6056  0.0  0.3   8112  3748 ?        S    12:19   0:00 ispell -a -S -C -d american
henrique  6826  0.0  0.3   8112  3756 ?        S    12:23   0:00 ispell -a -S -C -d american
henrique  8140  0.0  0.3   8108  3756 ?        S    12:30   0:00 ispell -a -S -C -d american
root      3372  0.0  0.0   2464   336 ?        Ss   12:16   0:07 zmd /usr/lib/zmd/zmd.exe --sleep 82199
postfix  24463  0.0  0.2  21280  2088 ?        S    13:51   0:00 pickup -l -t fifo -u
henrique 32293  0.0  1.7  92780 18024 ?        S    14:32   0:00 kio_uiserver [kdeinit]
henrique 32301  0.3  3.0 134564 31544 ?        S    14:32   0:00 konqueror [kdeinit] http://www.vivaolinux.com.br/screenshots/comunidade/wmaker_shot.png
root     32453  0.0  0.1  23616  1484 pts/0    S    14:33   0:00 su
root     32459  0.0  0.2   9848  2464 pts/0    S    14:33   0:00 bash
henrique 32477  0.0  0.7  71972  8124 ?        S    14:33   0:00 kio_file [kdeinit] file /tmp/ksocket-henrique/klauncherrpQinc.slave-socket /tmp/ksocket-henrique/amarokGe4oTa.slave
henrique   455  0.0  0.9 106600  9676 ?        S    14:35   0:00 kio_http [kdeinit] http /tmp/ksocket-henrique/klauncherrpQinc.slave-socket /tmp/ksocket-henrique/konversation9r44mc
henrique   459  0.1  0.9 106600  9664 ?        S    14:35   0:00 kio_http [kdeinit] http /tmp/ksocket-henrique/klauncherrpQinc.slave-socket /tmp/ksocket-henrique/konversation3rtAfb
henrique   466  0.1  0.9 106600  9664 ?        S    14:35   0:00 kio_http [kdeinit] http /tmp/ksocket-henrique/klauncherrpQinc.slave-socket /tmp/ksocket-henrique/konversationCrrWJa
henrique   470  0.0  0.9 106600  9664 ?        S    14:35   0:00 kio_http [kdeinit] http /tmp/ksocket-henrique/klauncherrpQinc.slave-socket /tmp/ksocket-henrique/konversationWmyqRb
henrique   640  0.0  0.5  72792  6076 ?        S    14:36   0:00 kio_about [kdeinit] about /tmp/ksocket-henrique/klauncherrpQinc.slave-socket /tmp/ksocket-henrique/konquerorjXSNja.
root       653  0.0  0.0   3496   892 pts/0    R+   14:36   0:00 ps aux