View Issue Details

IDProjectCategoryView StatusLast Update
0016468CentOS-8kernelpublic2019-10-09 18:05
Reporterbinnie 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version8.0.1905 
Target VersionFixed in Version 
Summary0016468: CentOS 8 kernel wrong allocated memory under KVM virtual machine
DescriptionSeems as the wrong amount of ram is allocated by a KVM virtual machine.
Using the default upstream kernel of CentOS 8.

This bug has been verified by the Linode team.
I have been asked to report a bug.
Steps To ReproduceCreate a virtual machine (KVM) based on CentOS 8 and review the allocated memory.

The memory that is displayed does not match with the memory that is allocated.

Solution: Replace the upstream kernel with an additional kernel, like the one provided by Linode or Oracle.
Problem solved.
Additional Information

Upstream

free -m
total used free shared buff/cache available
Mem: 821 141 390 5 288 546
Swap: 511 0 511

cat /proc/meminfo

MemTotal: 840980 kB
MemFree: 400352 kB
MemAvailable: 559596 kB
Buffers: 18804 kB
Cached: 243560 kB
SwapCached: 0 kB
Active: 188324 kB
Inactive: 151552 kB
Active(anon): 77660 kB
Inactive(anon): 5484 kB
Active(file): 110664 kB
Inactive(file): 146068 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 524284 kB
SwapFree: 524284 kB
Dirty: 84 kB
Writeback: 0 kB
AnonPages: 77548 kB
Mapped: 76080 kB
Shmem: 5636 kB
Slab: 76584 kB
SReclaimable: 33368 kB
SUnreclaim: 43216 kB
KernelStack: 1644 kB
PageTables: 6084 kB
NFSUnstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 944772 kB
CommittedAS: 340044 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 14336 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
HugePagesTotal: 0
HugePagesFree: 0
HugePagesRsvd: 0
HugePagesSurp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 79736 kB
DirectMap2M: 968704 kB
DirectMap1G: 0 kB

vmstat 1 10

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
3 0 0 400144 18832 276992 0 0 35 28 26 48 1 0 99 0 0
1 0 0 400084 18832 276980 0 0 0 0 17 31 0 0 100 0 0
3 0 0 400084 18832 276980 0 0 0 0 17 29 0 0 100 0 0
1 0 0 400084 18832 276980 0 0 0 0 18 33 0 0 100 0 0
1 0 0 400084 18832 276980 0 0 0 0 17 28 0 0 100 0 0
1 0 0 400084 18832 276980 0 0 0 0 19 35 0 1 99 0 0
1 0 0 400084 18840 276972 0 0 0 16 22 47 0 0 99 1 0
0 0 0 400116 18840 276980 0 0 0 0 20 40 0 0 100 0 0
0 0 0 400116 18840 276980 0 0 0 0 15 24 0 1 99 0 0
0 0 0 400116 18840 276980 0 0 0 0 16 32 0 0 100 0 0

Linode provided kernel

free -m
total used free shared buff/cache available
Mem: 968 133 683 6 151 691
Swap: 511 0 511

cat /proc/meminfo

MemTotal: 991648 kB
MemFree: 701872 kB
MemAvailable: 709668 kB
Buffers: 9932 kB
Cached: 119736 kB
SwapCached: 0 kB
Active: 82660 kB
Inactive: 89700 kB
Active(anon): 43044 kB
Inactive(anon): 6420 kB
Active(file): 39616 kB
Inactive(file): 83280 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 524284 kB
SwapFree: 524284 kB
Dirty: 32 kB
Writeback: 0 kB
AnonPages: 42732 kB
Mapped: 73316 kB
Shmem: 6772 kB
KReclaimable: 25124 kB
Slab: 47292 kB
SReclaimable: 25124 kB
SUnreclaim: 22168 kB
KernelStack: 2268 kB
PageTables: 5016 kB
NFSUnstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1020108 kB
CommittedAS: 267620 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
Percpu: 392 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
HugePagesTotal: 0
HugePagesFree: 0
HugePagesRsvd: 0
HugePagesSurp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 38776 kB
DirectMap2M: 1009664 kB
DirectMap1G: 0 kB

vmstat 1 10

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 700904 9960 144916 0 0 811 222 84 323 3 6 90 0 0
0 0 0 700652 9960 144908 0 0 0 0 19 37 1 0 99 0 0
0 0 0 700652 9960 144908 0 0 0 0 20 43 0 0 100 0 0
0 0 0 700652 9960 144908 0 0 0 0 18 40 0 0 100 0 0
0 0 0 700652 9960 144908 0 0 0 0 20 45 0 1 98 0 1
0 0 0 700652 9960 144908 0 0 0 0 22 46 0 0 100 0 0
0 0 0 700652 9960 144908 0 0 0 0 22 49 0 0 100 0 0
0 0 0 700652 9960 144908 0 0 0 0 20 44 0 0 100 0 0
1 0 0 700652 9960 144908 0 0 0 0 30 75 0 0 100 0 0
0 0 0 700652 9960 144908 0 0 0 0 17 36 0 0 100 0 0
TagsNo tags attached.

Activities

binnie

binnie

2019-09-26 16:04

reporter   ~0035234

Problem was Kdump.
Disabling Kdump as services, is apparently not enough.

Removing the "crashkernel=auto" parameter from the "GRUB_CMDLINE_LINUX" line in /etc/default/grub
Fixed the job.
binnie

binnie

2019-09-26 16:21

reporter   ~0035236

How to close this bug?
TrevorH

TrevorH

2019-10-09 18:05

manager   ~0035401

As per feedback

Issue History

Date Modified Username Field Change
2019-09-26 14:30 binnie New Issue
2019-09-26 16:04 binnie Note Added: 0035234
2019-09-26 16:21 binnie Note Added: 0035236
2019-10-09 18:05 TrevorH Status new => closed
2019-10-09 18:05 TrevorH Resolution open => fixed
2019-10-09 18:05 TrevorH Note Added: 0035401