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
Post a Comment