[libvirt] [PATCH] Add support for RAM filesystems for LXC

Daniel P. Berrange berrange at redhat.com
Wed Jun 20 16:20:31 UTC 2012


On Wed, Jun 20, 2012 at 06:14:10PM +0200, Guido Günther wrote:
> On Wed, Jun 20, 2012 at 02:41:20PM +0100, Daniel P. Berrange wrote:
> > On Fri, May 11, 2012 at 11:16:42PM +0200, Guido Günther wrote:
> > > On Wed, May 09, 2012 at 10:00:47AM -0600, Eric Blake wrote:
> > > > On 05/09/2012 09:49 AM, Daniel P. Berrange wrote:
> > > > > From: "Daniel P. Berrange" <berrange at redhat.com>
> > > > > 
> > > > > Introduce a new syntax for filesystems to allow use of a RAM
> > > > > filesystem
> > > > > 
> > > > >    <filesystem type='ram'>
> > > > >       <source usage='1024'/>
> > > > >       <target dir='/mnt'/>
> > > > >    </filesystem>
> > > > > 
> > > > > The usasge is in KB to limit consumption of host memory.
> > > > 
> > > > Based on what we learned with <memory>, I think you really want:
> > > > 
> > > > <source unit='KiB' usage='1024'/>
> > > > 
> > > > on output, as well as allowing unit='...' for scaling of input such as
> > > > <source unit='G' usage='1'/> for 2^30 bytes.
> > > 
> > > virParseScaleValue from "Filesystem limits for containers" might help
> > > here.
> > 
> > Yes it would. I noticed Eric had a bunch of comments on your v2
> > posting. Have you got a v3 pending, or shall I take over the
> > merging of the virParseScaleValue method myself ?
> 
> virParseScaledValue is merged (note the extra 'd').

Ah, thanks. I missed that :-)

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list