mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-15 11:33:57 +00:00
query KSM page sharing
bump version to 1.0-45
This commit is contained in:
parent
d2e14098f7
commit
a01c54654f
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
RELEASE=2.3
|
||||
|
||||
VERSION=1.0
|
||||
PKGREL=44
|
||||
PKGREL=45
|
||||
|
||||
PACKAGE=libpve-common-perl
|
||||
|
||||
|
@ -175,6 +175,7 @@ sub read_meminfo {
|
||||
memtotal => 0,
|
||||
memfree => 0,
|
||||
memused => 0,
|
||||
memshared => 0,
|
||||
swaptotal => 0,
|
||||
swapfree => 0,
|
||||
swapused => 0,
|
||||
@ -199,6 +200,9 @@ sub read_meminfo {
|
||||
$res->{swapfree} = $d->{swapfree};
|
||||
$res->{swapused} = $res->{swaptotal} - $res->{swapfree};
|
||||
|
||||
my $spages = PVE::Tools::file_read_firstline("/sys/kernel/mm/ksm/pages_sharing");
|
||||
$res->{memshared} = int($spages) * 4096;
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
libpve-common-perl (1.0-45) unstable; urgency=low
|
||||
|
||||
* read_meminfo: query KSM page sharing
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Fri, 01 Feb 2013 09:04:27 +0100
|
||||
|
||||
libpve-common-perl (1.0-44) unstable; urgency=low
|
||||
|
||||
* vlan changes: use ip command instead of old vconfig, activate gvrp
|
||||
|
Loading…
Reference in New Issue
Block a user