linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Why memory.usage_in_bytes is always increasing after every mmap/dirty/unmap sequence
@ 2012-03-23  8:04 bill4carson
  2012-03-23  8:19 ` KAMEZAWA Hiroyuki
  0 siblings, 1 reply; 8+ messages in thread
From: bill4carson @ 2012-03-23  8:04 UTC (permalink / raw)
  To: linux-mm

Hi, all

I'm playing with memory cgroup, I'm a bit confused why
memory.usage in bytes is steadily increasing at 4K page pace
after every mmap/dirty/unmap sequence.

On linux-3.6.34.10/linux-3.3.0-rc5
A simple test case does following:

a) mmap 128k memory in private anonymous way
b) dirty all 128k to demand physical page
c) print memory.usage_in_bytes  <-- increased at 4K after every loop
d) unmap previous 128 memory
e) goto a) to repeat


And when the test case exit, memory.usage_in_bytes is not *ZERO*, but
the previous increased value.

I'm puzzled about what I saw, can anyone please give me some tips
to understand this?


Thanks in advance.

-- 
Love each day!

--bill

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-27  8:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23  8:04 Why memory.usage_in_bytes is always increasing after every mmap/dirty/unmap sequence bill4carson
2012-03-23  8:19 ` KAMEZAWA Hiroyuki
2012-03-23  8:43   ` bill4carson
2012-03-23  8:59   ` bill4carson
2012-03-23  9:04     ` KAMEZAWA Hiroyuki
2012-03-23  9:15       ` bill4carson
2012-03-23  9:57         ` KAMEZAWA Hiroyuki
2012-03-27  8:26     ` Glauber Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox