All of lore.kernel.org
 help / color / mirror / Atom feed
* Shared Memory Pages for Same Base Device
@ 2014-09-20 15:50 Shao Miller
  2014-09-22 13:08 ` Mike Snitzer
  0 siblings, 1 reply; 4+ messages in thread
From: Shao Miller @ 2014-09-20 15:50 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 955 bytes --]

Good day to all.

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"?

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.

[1] https://www.docker.com/
-- 

Shao Miller
/Network Technician/
/905-836-4442 *ext: 112*/
www.treefrog.ca/shao-miller <http://www.treefrog.ca/shao-miller>
*
* /*Treefrog Inc.*/
905-836-4442
567 Davis Drive, Newmarket, ON
www.treefrog.ca <http://www.treefrog.ca/> - @Treefrog


[-- Attachment #1.2: Type: text/html, Size: 2476 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-22 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-20 15:50 Shared Memory Pages for Same Base Device Shao Miller
2014-09-22 13:08 ` Mike Snitzer
2014-09-22 14:08   ` Shao Miller
2014-09-22 14:26     ` Mike Snitzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.