<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Good day to all.<br>
    <br>
    If I've some block device "base" and I've two derived device-mapper
    devices "derived1" and "derived2" that are copy-on-write layers over
    top of that base, and I mount the filesystems on those derived block
    devices and run the same program "foo" from both, does the "foo"
    running from "derived1" share any [read and execute] memory pages
    with the "foo" running from "derived2", since the underlying sectors
    are both from the same position on "base"?<br>
    <br>
    The more general question would be about mmap, but I hope this
    example is clear.  "Docker"[1] uses device-mapper in scenarios like
    the above example and I'm curious if they benefit from shared pages.<br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="https://www.docker.com/">https://www.docker.com/</a><br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <br>
      <span class="Apple-style-span" style="font-size: 13px;
        font-weight: bold;">Shao Miller</span><br>
      <i style="font-weight: normal; font-size: 11px; orphans: 2;
        widows: 2;">Network Technician</i><br>
      <i style="font-style: normal; font-size: medium; font-weight:
        normal;"><span class="Apple-style-span" style="font-style:
          normal;">905-836-4442</span> <span class="Apple-style-span"
          style="font-style: normal;"><b>ext: 112</b></span></i><br>
      <a href="http://www.treefrog.ca/shao-miller" style="font-style:
        normal; font-weight: normal; font-size: 10px;">www.treefrog.ca/shao-miller</a><br>
      <font class="Apple-style-span" color="#659E3F"><b><br>
        </b></font> <i style="font-style: normal; font-weight: normal;
        font-size: 11px;"><span class="Apple-style-span"
          style="font-style: normal;"><b><font class="Apple-style-span"
              color="#659E3F">Treefrog Inc.</font></b></span></i>
      <div> <font class="Apple-style-span" size="2">905-836-4442<br>
          <span class="Apple-style-span" style="color: rgb(95, 94, 95);">567
            Davis Drive, Newmarket, ON</span><br>
          <a href="http://www.treefrog.ca/">www.treefrog.ca</a> -
          @Treefrog</font><br>
        <br>
      </div>
    </div>
  </body>
</html>