:
:What would cause more memory to be considered in the active state than
:could be accounted for by running processes?   
:
:My main machine (running -current as of the afternoon of Jan 25) has
:somewhere between 80 and 100 megs of memory listed as used via ps and top
:(which, I presume doesn't take in to account shared executable pages, but
:does include the 16 megs the X server is mapping on the video card), yet
:both top and vmstat show over 170 megs worth of memory being active. 
:
:Furthermore, if I kill off my X session and associated processes, active
:memory usage doesn't decrease, even after 5 or more minutes.  According to
:...

    There are two different things here:

    (1) AVM ( Active Virtual Memory ) and ARM ( Active Real Memory ).

        These might include device mmaps that are not considered real memory
        by the paging subsystem ( though I believe I've fixed the AVM thingy
        where X would mmap /dev/mem and AVM would become insane ).

    (2) VM Paging queue statistics

        wired, active, inactive, cache, free.

        The VM system does not bother moving things from active to inactive
        unless there is some stress on the memory subsystem.  If you are 
        just sitting idle, I wouldn't expect to see active pages moved to
        inactive.

    X consists of quite a few direct maps of code, and less in the way of
    BSS data.  So when you exit the X session, only the BSS data, which has
    no backing store on exit, will have been returned ( active->free queue ).
    The mmap'd code, which is vnode-backed, just stays active until something 
    stresses the memory subsystem.

                                                -Matt


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to