Executing (for example) the following command to get a list of pages with memory mapping:
pmap -x `pidof bash`
I got this result:
Why are some read-only pages marked as dirty, i.e. Written, requiring writeback? If they are read-only, the process will not be able to write them ... (In the given example, dirty pages are always 4 kB, but I found other cases with different values)
I also checked / proc / pid / smaps and these pages are described as "Private Dirty".
source
share