Understanding how software accumulates memory in system -
lately i've been trying understand , track down nasty memory leak in software. this, started monitor memory usage on long periods of time try figure out if there pattern serve clue understand issue.
in graphic bellow, virtual memory drawn in purple , % of cpu memory in green, x-axis represent time in seconds.
there big spikes occur when video streaming feature activated, doesn't seem issue since software seems able clear these.
around second 7500 there big drop because of stand-by feature of system activated few seconds. after system returns normal, clears memory accumulated before.. far makes sense. thing can't understand that, if amount of stored memory decreases, why doesn't %mem decrease? in case, increasing.
there not clear correlation between %mem , virtual memory usage. can me understand this?
i realized virtual memory not related %mem, since stored in hard-drive , swapped ram when process needs it. memory of process related %mem rss (resident set size), memory stored in ram.
in next graphic monitored rss instead, , correlation obvious.
Comments
Post a Comment