Subject: Re: [vserver] Virtualizsation of /proc/swaps
From: Cryptronic <mail@cryptronic.de>
Date: Thu, 08 Oct 2009 23:17:19 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Herbert Poetzl wrote:
>> 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
>
Hi,

much thanks for the patch!

but the patch is not working as expected:

i got the following:

vstest:/# cat /proc/swaps
Filename                                Type            Size
Used    Priority
hdv0                                    partition       512     0       -1
/dev/sda1                               partition       16777204
0       -1

In my opinion /dev/sda2 is wrong there.

Also the value of 512 is strange:

I assigned 2 GB of swap to that guest:

# head /etc/vservers/testswaps/rlimits/rss.*
==> /etc/vservers/testswaps/rlimits/rss.hard <==
786432

==> /etc/vservers/testswaps/rlimits/rss.soft <==
262144


vstest:/# free
             total       used       free     shared    buffers     cached
Mem:       1048576       5704    1042872          0          0          0
- -/+ buffers/cache:       5704    1042872
Swap:      2097152          0    2097152

In my opinion it should say in /proc/swaps

vstest:/# cat /proc/swaps
Filename                                Type            Size
Used    Priority
hdv0                                    partition       2097152 
0       -1

Kernel:
2.6.31.1
Patchsets:
delta-swaps-feat01.diff
<http://vserver.13thfloor.at/Experimental/delta-swaps-feat01.diff>
patch-2.6.31.1-vs2.3.0.36.14-pre9.diff
<http://vserver.13thfloor.at/Experimental/patch-2.6.31.1-vs2.3.0.36.14-pre9.diff>


util-vserver:
0.30.216-pre2849

Best regards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEARECAAYFAkrOVt8ACgkQOBdlVlcPuhxImgCePYrTC/ZXkwAwXWepKwOdUkHV
kHAAni5wWhArjqtoCceTufEMxCdkMNy3
=g5zB
-----END PGP SIGNATURE-----