Re: Automatic page sharing/consolidation

Previous thread: [PATCH 2/6] MIPS: ip27-timer: fix unsigned irq < 0 by Roel Kluin on Tuesday, April 15, 2008 - 9:43 pm. (5 messages)

Next thread: [PATCH 3/6] IDE: ide-cd: fix test unsigned var < 0 by Roel Kluin on Tuesday, April 15, 2008 - 10:06 pm. (8 messages)
To: linux kernel list <linux-kernel@...>
Date: Tuesday, April 15, 2008 - 9:30 pm

Hi folks,

I'm using dozens of VE's / jails to separate applications
(even complete webapps w/ their own httpd) for easier maintenance
and better security. But this tends to consume a lot of memory,
since code sharing (.so's) cannot take effect here (each jail/VE
has it's completely own tree).

Now I wonder if it might be possible to let the kernel automatically
find out equal pages and map them together.

A little compasion showed up that at least 50% of the code could be
shared (maybe more with some tuning, and maybe even data). So it's
(IMHO) really worth it.

Would this be possible ? What had to be done for this ?

thx
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------
--

To: <weigelt@...>
Cc: linux kernel list <linux-kernel@...>, kvm-devel <kvm-devel@...>, Izik Eidus <izike@...>
Date: Wednesday, April 16, 2008 - 7:41 am

Izik (copied) is working on this for kvm. Results so far are very
encouraging, but currently merged pages are not swappable.

--
error compiling committee.c: too many arguments to function

--

To: Avi Kivity <avi@...>
Cc: <weigelt@...>, linux kernel list <linux-kernel@...>, kvm-devel <kvm-devel@...>
Date: Wednesday, April 16, 2008 - 8:51 am

we have module that posted with kernel patchs in the mm list, you can actualy run it and play with it
there were some bugs that we fixed with it, but i am still not sending it, beacuse i change there quite alot of things
in order to get swapping possible for the pages that are shared.
--
woof.
--

Previous thread: [PATCH 2/6] MIPS: ip27-timer: fix unsigned irq < 0 by Roel Kluin on Tuesday, April 15, 2008 - 9:43 pm. (5 messages)

Next thread: [PATCH 3/6] IDE: ide-cd: fix test unsigned var < 0 by Roel Kluin on Tuesday, April 15, 2008 - 10:06 pm. (8 messages)