Re: [vserver] Virtualizsation of /proc/swaps

From: Cryptronic <mail_at_cryptronic.de>
Date: Thu 08 Oct 2009 - 22:17:19 BST
Message-ID: <4ACE56DF.10208@cryptronic.de>

-----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-----
Received on Thu Oct 8 22:15:10 2009

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 08 Oct 2009 - 22:15:13 BST by hypermail 2.1.8