Re: sharing page cache pages between multiple mappings

2016-05-20 Thread Miklos Szeredi
On Fri, May 20, 2016 at 1:48 AM, Dave Chinner wrote: > On Thu, May 19, 2016 at 12:17:14PM +0200, Miklos Szeredi wrote: >> On Thu, May 19, 2016 at 11:05 AM, Michal Hocko wrote: >> > On Thu 19-05-16 10:20:13, Miklos Szeredi wrote: >> >> Has anyone thought about sharing pages between multiple files?

Re: sharing page cache pages between multiple mappings

2016-05-19 Thread Dave Chinner
On Thu, May 19, 2016 at 12:17:14PM +0200, Miklos Szeredi wrote: > On Thu, May 19, 2016 at 11:05 AM, Michal Hocko wrote: > > On Thu 19-05-16 10:20:13, Miklos Szeredi wrote: > >> Has anyone thought about sharing pages between multiple files? > >> > >> The obvious application is for COW filesytems wh

Re: sharing page cache pages between multiple mappings

2016-05-19 Thread Michal Hocko
On Thu 19-05-16 12:17:14, Miklos Szeredi wrote: > On Thu, May 19, 2016 at 11:05 AM, Michal Hocko wrote: > > On Thu 19-05-16 10:20:13, Miklos Szeredi wrote: > >> Has anyone thought about sharing pages between multiple files? > >> > >> The obvious application is for COW filesytems where there are >

Re: sharing page cache pages between multiple mappings

2016-05-19 Thread Miklos Szeredi
On Thu, May 19, 2016 at 11:05 AM, Michal Hocko wrote: > On Thu 19-05-16 10:20:13, Miklos Szeredi wrote: >> Has anyone thought about sharing pages between multiple files? >> >> The obvious application is for COW filesytems where there are >> logically distinct files that physically share data and c

Re: sharing page cache pages between multiple mappings

2016-05-19 Thread Michal Hocko
On Thu 19-05-16 10:20:13, Miklos Szeredi wrote: > Has anyone thought about sharing pages between multiple files? > > The obvious application is for COW filesytems where there are > logically distinct files that physically share data and could easily > share the cache as well if there was infrastru