Dot Deb ha scritto:
On 7/22/05, Davide Prina wrote:
penso che la differenza sia cosa viene interpretato come memoria libera
da uno e cosa dall'altro. Probabilmente top considera anche qualche
tabella di memoria di qualche K che è continuamente usata dai vari
processi e per questo che si continua a riempire fino ad essere occupata
tutta o quasi e poi viene liberata per far posto a richieste successive
Ecco, mi piacerebbe capire meglio queste cose.
Hai qualche suggerimento?
leggere i sorgenti! :-)
Sono di sicuro la fonte più aggiornata sull'argomento ;-)
Altrimenti si può cercare con un motore di ricerca ...
Per esempio (ho preso i primi due link che ho trovato):
TOP:
Free: pages without data content, and can be immediately used in
certaincircumstances where cache pages might be ineligible. Free pages
can be reused at interrupt or process state.
10.30. How much free memory is available?
There are a couple of kinds of “free memory”. One kind is the amount of
memory immediately available without paging anything else out. That is
approximately the size of cache queue + size of free queue (with a
derating factor, depending upon system tuning.) Another kind of “free
memory” is the total amount of VM space. That can be complex, but is
dependent upon the amount of swap space and memory. Other kinds of “free
memory” descriptions are also possible, but it is relatively useless to
define these, but rather it is important to make sure that the paging
rate is kept low, and to avoid running out of swap space.
da:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#TOP-MEMORY-STATES
VMSTAT
FREE: The amount of free memory as reported by vmstat , which reports
the combined size of the cache list and free list. Free memory on
Solaris 7 may contain some of the file system cache.
da: http://www.solarisinternals.com/si/tools/vmstat/index.php
Penso che le stesse informazioni le puoi trovare anche nei man/info
Quindi se non ho capito male TOP visualizza solo la free list, mentre
vmstat fa la somma della free list e della chache list
Ciao
Davide
--
Linux User: 302090: http://counter.li.org
Prodotti consigliati:
Sistema operativo: Debian: http://www.it.debian.org
Strumenti per l'ufficio: OpenOffice.org: http://it.openoffice.org
Database: PostgreSQL: http://www.postgres.org
Browser: FireFox: http://texturizer.net/firefox
Client di posta: Thunderbird: http://texturizer.net/thunderbird
--
Non autorizzo la memorizzazione del mio indirizzo di posta a chi usa
outlook: non voglio essere invaso da spam