Subject: Re: [vserver] Virtualizsation of /proc/swaps
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Fri, 2 Oct 2009 04:26:04 +0200

On Thu, Oct 01, 2009 at 07:51:03PM +0200, Cryptronic wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> Herbert Poetzl wrote:

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

> for example:

> # cat /proc/swaps
> Filename                Type        Size    Used    Priority
> /dev/hdv2                               partition   128000   0     -1

> # cat /proc/swaps
> Filename                Type        Size    Used    Priority
> /dev/hdv2                               partition   256000   0      -1

> # cat /proc/swaps
> Filename                Type        Size    Used    Priority
> /dev/hdv2                               partition   768000    0     -1

> best regards
> >> TIA,

please test the following feature delta in different
scenarios and let me know how it does :)

http://vserver.13thfloor.at/ExperimentalT/delta-swaps-feat01.diff

best,
Herbert

> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.11 (GNU/Linux)
> 
> iEYEARECAAYFAkrE7AcACgkQOBdlVlcPuhyTiwCeNhVSg+YkDM+/CBxXiLkTDlBR
> YiYAoIbe8Vuc0BXJfTlvjGqqGgFc1Kre
> =hQwb
> -----END PGP SIGNATURE-----