linux - Why does dereferencing pointer from mmap cause memory usage reported by top to increase? -


i calling mmap() map_shared , prot_read access file 25 gb in size. have noticed advancing returned pointer has no effect %mem in top application, once start dereferencing pointer @ different locations, memory wildly increases , caps @ 55%. value goes down 0.2% once munmap called.

i don't know if should trust 55% value top reports. doesn't seem using 8 gb of available 16. should worried?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -