title: How to Interpret this PMAP output?
body: <p>I have a <a href="https://cnds.jacobs-university.de/courses/os-2019/src/cat++/" rel="nofollow noreferrer">cat++</a> program and I am running the following command to check how many memory segments are added to the process when any one of the libraries implementing a transform is loaded.</p>
  
  <p><code>(echo "hello world" ; sleep 100) | ./cat++ -l ./librot13.so -l ./libupper.so -l ./librot13.so &amp; pmap $!</code></p>
  
  <p>I get the following output but I am unable to interpret it. <strong>How many memory segments are being loaded? What's happening when the same library is called twice as in my command?</strong> Is there an alternative pmap command that I should run? </p>
  
  <pre><code>3847:   ./cat++ -l ./librot13.so -l ./libupper.so -l ./librot13.so
  000055ec84326000      8K r-x-- cat++
  000055ec84527000      4K r---- cat++
  000055ec84528000      4K rw--- cat++
  000055ec84ef3000    132K rw---   [ anon ]
  00007f07540d6000      4K r-x-- libupper.so
  00007f07540d7000   2044K ----- libupper.so
  00007f07542d6000      4K r---- libupper.so
  00007f07542d7000      4K rw--- libupper.so
  00007f07542d8000      4K r-x-- librot13.so
  </code></pre>
  
  <p>continued...</p>