[Pkg-libvirt-maintainers] Bug#757609: Bug#757609: libvirtd internal error: Unable to parse /proc/meminfo

Jamie Heilman jamie at audible.transient.net
Sun Aug 10 08:56:35 UTC 2014


Guido Günther wrote:
> On Sat, Aug 09, 2014 at 06:50:56PM +0000, Jamie Heilman wrote:
> > Package: libvirt-daemon
> > Version: 1.2.7-6
> > Severity: grave
> > 
> > The parsing of /proc/meminfo in the latest versions of the libvirt
> > packages is flawed.  Please remove it until upstream figures out what
> > they're doing.
> > 
> > There have been reports of the parsing failing when running under Xen,
> > but it fails in in other scenarios too; In my case Linux 3.16 (I
> > tested 3.15.8 too) with:
> > 
> > [2]cucamonga<~/>grep -i huge /boot/config-3.1*
> > /boot/config-3.15.8:CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
> > /boot/config-3.15.8:CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
> > /boot/config-3.15.8:CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
> > /boot/config-3.15.8:CONFIG_TRANSPARENT_HUGEPAGE=y
> > /boot/config-3.15.8:CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
> > /boot/config-3.15.8:# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
> > /boot/config-3.15.8:# CONFIG_HUGETLBFS is not set
> > /boot/config-3.15.8:# CONFIG_HUGETLB_PAGE is not set
> > /boot/config-3.16.0:CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
> > /boot/config-3.16.0:CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
> > /boot/config-3.16.0:CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
> > /boot/config-3.16.0:CONFIG_TRANSPARENT_HUGEPAGE=y
> > /boot/config-3.16.0:CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
> > /boot/config-3.16.0:# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
> > /boot/config-3.16.0:# CONFIG_HUGETLBFS is not set
> > /boot/config-3.16.0:# CONFIG_HUGETLB_PAGE is not set
> > 
> > In any case, /proc/meminfo does not always have the items libvirtd
> > assumes it does, and handles that failure poorly.
> > 
> > 2014-08-09 18:32:30.722+0000: 3589: info : libvirt version: 1.2.7, package: 6 (root 2014-08-08-16:09:22 bogon)
> > 2014-08-09 18:32:30.722+0000: 3589: error : virAuditOpen:62 : Unable to initialize audit layer: Protocol not supported
> > 2014-08-09 18:32:31.720+0000: 3712: error : virFileGetDefaultHugepageSize:2958 : internal error: Unable to parse /proc/meminfo
> > 2014-08-09 18:32:31.720+0000: 3712: error : virStateInitialize:749 : Initialization of QEMU state driver failed: internal error: Unable to parse /proc/meminfo
> > 2014-08-09 18:32:31.720+0000: 3712: error : daemonRunStateInit:922 : Driver state initialization failed
> > 
> > Reverting to libvirt-bin 1.2.4 allows libvirtd to work again.
> 
> Please attach your /proc/meminfo as well. 
>  -- Guido

MemTotal:        3981644 kB
MemFree:         1022420 kB
MemAvailable:    1183012 kB
Buffers:               0 kB
Cached:           564648 kB
SwapCached:        38448 kB
Active:          1830420 kB
Inactive:         901504 kB
Active(anon):    1744072 kB
Inactive(anon):   508600 kB
Active(file):      86348 kB
Inactive(file):   392904 kB
Unevictable:       82584 kB
Mlocked:           82584 kB
SwapTotal:       8388172 kB
SwapFree:        8228692 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:       2238356 kB
Mapped:           108016 kB
Shmem:             83528 kB
Slab:              61840 kB
SReclaimable:      38484 kB
SUnreclaim:        23356 kB
KernelStack:        3824 kB
PageTables:        13680 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    10378992 kB
Committed_AS:    2930912 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      338292 kB
VmallocChunk:   34359338248 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1826816 kB
DirectMap4k:      106500 kB
DirectMap2M:     4020224 kB


-- 
Jamie Heilman                     http://audible.transient.net/~jamie/



More information about the Pkg-libvirt-maintainers mailing list