Subject: Re: [vserver] Virtualizsation of /proc/swaps
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Wed, 30 Sep 2009 22:18:56 +0200

On Wed, Sep 30, 2009 at 09:33:41PM +0200, Cryptronic wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Herbert Poetzl wrote:
> > On Wed, Sep 30, 2009 at 07:13:40PM +0200, Cryptronic wrote:
> >> what kind of 'virtualization' would you expect there?
> i thought about the point when VIRT_MEM in cflags is set.
> So if you read /proc/meminfo you get other informations 
> than out of /proc/swaps

personally I would hide /proc/swaps on a guest,
but my inquiry was more about what you would like
to see there, as it doesn't make much sense to
'adapt' the existing data ... let me give you an
example:

# cat /proc/swaps 
Filename				Type		Size	Used	Priority
/dev/sda3                               partition	257039	30132	-1
/dev/sdb3                               partition	257039	0	-2

now let's assume, inside the guests A,B and C, we have 
128M, 384M and 768M of swap defined ... what would the
/proc/swaps entry look like in each of them?

TIA,
Herbert

> >> TIA, Herbert
> >
> >> if you or your company use and like the Linux-VServer project,
> >> why not consider donating hardware or money, or getting a service
> >> contract with the developers to ensure that it will live on and
> >> continue to provide high quality free software?
> >
> > best regards
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.11 (GNU/Linux)
> 
> iEYEARECAAYFAkrDspUACgkQOBdlVlcPuhxBcACePqmqmxRgCc4c/1WLrMlL1mKS
> pjwAoM5nkF82mSA4VsOGz+HNtYENu9vQ
> =71b/
> -----END PGP SIGNATURE-----