public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Automatic page sharing/consolidation
@ 2008-04-16  1:30 Enrico Weigelt
  2008-04-16 11:41 ` Avi Kivity
  0 siblings, 1 reply; 3+ messages in thread
From: Enrico Weigelt @ 2008-04-16  1:30 UTC (permalink / raw)
  To: linux kernel list


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/
---------------------------------------------------------------------

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

* Re: Automatic page sharing/consolidation
  2008-04-16  1:30 Automatic page sharing/consolidation Enrico Weigelt
@ 2008-04-16 11:41 ` Avi Kivity
  2008-04-16 12:51   ` Izik Eidus
  0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2008-04-16 11:41 UTC (permalink / raw)
  To: weigelt; +Cc: linux kernel list, kvm-devel, Izik Eidus

Enrico Weigelt wrote:
> 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 ?
>   

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


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

* Re: Automatic page sharing/consolidation
  2008-04-16 11:41 ` Avi Kivity
@ 2008-04-16 12:51   ` Izik Eidus
  0 siblings, 0 replies; 3+ messages in thread
From: Izik Eidus @ 2008-04-16 12:51 UTC (permalink / raw)
  To: Avi Kivity; +Cc: weigelt, linux kernel list, kvm-devel

Avi Kivity wrote:
> Enrico Weigelt wrote:
>> 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 ?
>>   
> 
> Izik (copied) is working on this for kvm.  Results so far are very
> encouraging, but currently merged pages are not swappable.
> 
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.

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

end of thread, other threads:[~2008-04-16 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-16  1:30 Automatic page sharing/consolidation Enrico Weigelt
2008-04-16 11:41 ` Avi Kivity
2008-04-16 12:51   ` Izik Eidus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox