Memory Missing (Not Mapped?)

Hello,
I recently upgraded a VPS that I own which has openSUSE 12.2 64-bit on it from 768MiB of RAM to 1.28GiB, however ‘free’ shows that it only increased from 768MiB to 791MiB. I’ve looked through dmesg and found this:

    0.000000]  Xen: 0000000000000000 - 0000000030800000 (usable)
    0.000000] NX (Execute Disable) protection: active
    0.000000] last_pfn = 0x30800 max_arch_pfn = 0x80000000
    0.000000] initial memory mapped : 0 - 00000000
    0.000000] init_memory_mapping: 0000000000000000-0000000030800000
    0.000000]  0000000000 - 0030800000 page 4k
    0.000000] kernel direct mapping tables up to 30800000 @ 22f8000-247e000

With the second to last last line being key. If my calculations are correct, 0030800000 in 4k blocks is close to 1.28GiB, but for some reason it’s later only being mapped to 791MiB:

    0.000000] Memory: 724216k/794624k available (5168k kernel code, 0k absent, 70408k reserved, 4010k data, 424k init)

Here’s my full dmesg: 0.000000] Initializing cgroup subsys cpuset 0.000000] Initializing cg - Pastebin.com](http://pastebin.com/GPqexJ80)

I’ve searched the forum for help, but I’m not finding any scenarios that match my problem. Any help is appreciated!

Uname -a (redacted):

Linux --- 3.4.11-2.16-xen #1 SMP Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 x86_64 x86_64 GNU/Linux

Just curious, what do cat /proc/meminfo and free -m show?

/proc/meminfo:

MemTotal:         810396 kB
MemFree:          430780 kB
Buffers:           42808 kB
Cached:           218744 kB
SwapCached:            0 kB
Active:           167628 kB
Inactive:         118640 kB
Active(anon):      24768 kB
Inactive(anon):      700 kB
Active(file):     142860 kB
Inactive(file):   117940 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:        524284 kB
SwapFree:         524284 kB
Dirty:              1292 kB
Writeback:             0 kB
AnonPages:         24668 kB
Mapped:            14520 kB
Shmem:               752 kB
Slab:              17316 kB
SReclaimable:       9124 kB
SUnreclaim:         8192 kB
KernelStack:         704 kB
PageTables:            0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      929480 kB
Committed_AS:     178348 kB
VmallocTotal:   34359738367 kB
VmallocUsed:         372 kB
VmallocChunk:   34359737847 kB
HardwareCorrupted:     0 kB
DirectMap4k:      786432 kB
DirectMap2M:           0 kB

free -m:

             total       used       free     shared    buffers     cached
Mem:           791        370        420          0         41        222
-/+ buffers/cache:        106        684
Swap:          511          0        511

Also, I check my VM control panel which shows 1.29GiB is active. I’ve even completely powered it down and manually started back up at which I saw the memory jump slightly.

Pretty weird.
Since this a VPS, I wonder if your issue has something to do with that…

Just spit-ballin’
Could your VPS be configured for a specific value but also expand to a new value (if needed)?

I suppose I could experiment a little with that in KVM but there’s no way to know if the results would be relevant to whatever VPS technology is being used for your VM. To verify, this might be an interesting Q to ask your Provider.

TSU

It turned out to be a VM intricacy: the server must be rebooted (not halted) with the control panel button specifically. No other methods work (probably some script job).

Now at 1.25GiB. Thanks all!

Wow - that’s silly. Glad you got it figured out.