Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]4.14.52-gentoo failing to show correct total ram
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sao98021
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2012
Posts: 144
Location: Michigan

PostPosted: Wed Jul 11, 2018 3:56 am    Post subject: [SOLVED]4.14.52-gentoo failing to show correct total ram Reply with quote

i just noticed something interesting, i dont know if it's because of the way i compiled this kernel but, total ram is showing 6.5gb, at first i thought maybe a stick is failing, cleaned -etc swapped slots, still showing the same.

then i booted up my older 4.9 kernel, and to my relief it shows the total of 8gb.

So, i haven't heard anything about this, and i think in my last kernel build i may have added intel MPX, which if it's the cause - i did not know it would do that, if that's the case disregard this post. I'm going to recompile anyway, but figured i'd mention it incase someone else isn't paying attention to their ram like i was for a while

erg -- i guess it wasn't me adding MPX to it, new build still shows 6.5...

just going to use an older one(4.9.95) till i can figure out what the hell happened :?:

weird, i built 4.17.0 with the same config, and it's showing the correct ram

so now i have no idea at all why 4.14.52 would be reporting almost 2GB less than total memory


Last edited by sao98021 on Wed Jul 11, 2018 6:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1294
Location: Frankfurt, Germany

PostPosted: Wed Jul 11, 2018 9:47 am    Post subject: Reply with quote

Please show us the output of
Code:
dmesg -t | grep -i memory
free

on your machine with kernel 4.14.x and with kernel 4.9.x.
Back to top
View user's profile Send private message
sao98021
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2012
Posts: 144
Location: Michigan

PostPosted: Wed Jul 11, 2018 2:39 pm    Post subject: Reply with quote

mike155 wrote:
Please show us the output of
Code:
dmesg -t | grep -i memory
free

on your machine with kernel 4.14.x and with kernel 4.9.x.


4.17
Code:
@vilehost ~ $ dmesg -t | grep -i memory
Base memory trampoline at [        (ptrval)] 98000 size 24576
Early memory node ranges
Reserving Intel graphics memory at [mem 0xaba00000-0xaf9fffff]
PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
PM: Registered nosave memory: [mem 0x0009e000-0x0009efff]
PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
PM: Registered nosave memory: [mem 0x20000000-0x201fffff]
PM: Registered nosave memory: [mem 0x40000000-0x401fffff]
PM: Registered nosave memory: [mem 0xaabcd000-0xaacf3fff]
PM: Registered nosave memory: [mem 0xaacf6000-0xaade7fff]
PM: Registered nosave memory: [mem 0xaaf19000-0xaafe7fff]
PM: Registered nosave memory: [mem 0xaaffd000-0xaaffffff]
PM: Registered nosave memory: [mem 0xab000000-0xaf9fffff]
PM: Registered nosave memory: [mem 0xafa00000-0xdfffffff]
PM: Registered nosave memory: [mem 0xe0000000-0xe3ffffff]
PM: Registered nosave memory: [mem 0xe4000000-0xfebfffff]
PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
PM: Registered nosave memory: [mem 0xfec01000-0xfed0ffff]
PM: Registered nosave memory: [mem 0xfed10000-0xfed13fff]
PM: Registered nosave memory: [mem 0xfed14000-0xfed17fff]
PM: Registered nosave memory: [mem 0xfed18000-0xfed19fff]
PM: Registered nosave memory: [mem 0xfed1a000-0xfed1bfff]
PM: Registered nosave memory: [mem 0xfed1c000-0xfed1ffff]
PM: Registered nosave memory: [mem 0xfed20000-0xfedfffff]
PM: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
PM: Registered nosave memory: [mem 0xfee01000-0xff97ffff]
PM: Registered nosave memory: [mem 0xff980000-0xffbfffff]
PM: Registered nosave memory: [mem 0xffc00000-0xffd7ffff]
PM: Registered nosave memory: [mem 0xffd80000-0xffffffff]
Memory: 8052636K/8297160K available (10252K kernel code, 1907K rwdata, 3168K rodata, 1252K init, 1540K bss, 244524K reserved, 0K cma-reserved)
Freeing SMP alternatives memory: 28K
x86/mm: Memory block size: 128MB
Freeing initrd memory: 7568K
Freeing unused kernel memory: 1252K
Freeing unused kernel memory: 2012K
Freeing unused kernel memory: 928K



4.14.52
Code:
@vilehost ~ $ dmesg -t | grep -i memory
Base memory trampoline at [ffff880000098000] 98000 size 24576
Early memory node ranges
Reserving Intel graphics memory at 0x00000000aba00000-0x00000000af9fffff
PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
PM: Registered nosave memory: [mem 0x0009e000-0x0009efff]
PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
PM: Registered nosave memory: [mem 0x20000000-0x201fffff]
PM: Registered nosave memory: [mem 0x40000000-0x401fffff]
PM: Registered nosave memory: [mem 0xaabcd000-0xaacf3fff]
PM: Registered nosave memory: [mem 0xaacf6000-0xaade7fff]
PM: Registered nosave memory: [mem 0xaaf19000-0xaafe7fff]
PM: Registered nosave memory: [mem 0xaaffd000-0xaaffffff]
PM: Registered nosave memory: [mem 0xab000000-0xaf9fffff]
PM: Registered nosave memory: [mem 0xafa00000-0xdfffffff]
PM: Registered nosave memory: [mem 0xe0000000-0xe3ffffff]
PM: Registered nosave memory: [mem 0xe4000000-0xfebfffff]
PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
PM: Registered nosave memory: [mem 0xfec01000-0xfed0ffff]
PM: Registered nosave memory: [mem 0xfed10000-0xfed13fff]
PM: Registered nosave memory: [mem 0xfed14000-0xfed17fff]
PM: Registered nosave memory: [mem 0xfed18000-0xfed19fff]
PM: Registered nosave memory: [mem 0xfed1a000-0xfed1bfff]
PM: Registered nosave memory: [mem 0xfed1c000-0xfed1ffff]
PM: Registered nosave memory: [mem 0xfed20000-0xfedfffff]
PM: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
PM: Registered nosave memory: [mem 0xfee01000-0xff97ffff]
PM: Registered nosave memory: [mem 0xff980000-0xffbfffff]
PM: Registered nosave memory: [mem 0xffc00000-0xffd7ffff]
PM: Registered nosave memory: [mem 0xffd80000-0xffffffff]
Memory: 6788876K/8297160K available (12300K kernel code, 5143K rwdata, 5088K rodata, 1476K init, 10732K bss, 1508284K reserved, 0K cma-reserved)
Freeing SMP alternatives memory: 24K
x86/mm: Memory block size: 128MB
Freeing initrd memory: 9864K
Freeing unused kernel memory: 1476K
Freeing unused kernel memory: 2012K
Freeing unused kernel memory: 1056K
[drm] Memory usable by graphics device = 2048M


and finally 4.9.95
Code:
@vilehost ~ $ dmesg -t | grep -i memory
Base memory trampoline at [ffff880000098000] 98000 size 24576
Early memory node ranges
Reserving Intel graphics memory at 0x00000000aba00000-0x00000000af9fffff
PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
PM: Registered nosave memory: [mem 0x0009e000-0x0009efff]
PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
PM: Registered nosave memory: [mem 0x20000000-0x201fffff]
PM: Registered nosave memory: [mem 0x40000000-0x401fffff]
PM: Registered nosave memory: [mem 0xaabcd000-0xaacf3fff]
PM: Registered nosave memory: [mem 0xaacf6000-0xaade7fff]
PM: Registered nosave memory: [mem 0xaaf19000-0xaafe7fff]
PM: Registered nosave memory: [mem 0xaaffd000-0xaaffffff]
PM: Registered nosave memory: [mem 0xab000000-0xaf9fffff]
PM: Registered nosave memory: [mem 0xafa00000-0xdfffffff]
PM: Registered nosave memory: [mem 0xe0000000-0xe3ffffff]
PM: Registered nosave memory: [mem 0xe4000000-0xfebfffff]
PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
PM: Registered nosave memory: [mem 0xfec01000-0xfed0ffff]
PM: Registered nosave memory: [mem 0xfed10000-0xfed13fff]
PM: Registered nosave memory: [mem 0xfed14000-0xfed17fff]
PM: Registered nosave memory: [mem 0xfed18000-0xfed19fff]
PM: Registered nosave memory: [mem 0xfed1a000-0xfed1bfff]
PM: Registered nosave memory: [mem 0xfed1c000-0xfed1ffff]
PM: Registered nosave memory: [mem 0xfed20000-0xfedfffff]
PM: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
PM: Registered nosave memory: [mem 0xfee01000-0xff97ffff]
PM: Registered nosave memory: [mem 0xff980000-0xffbfffff]
PM: Registered nosave memory: [mem 0xffc00000-0xffd7ffff]
PM: Registered nosave memory: [mem 0xffd80000-0xffffffff]
Memory: 8029796K/8297160K available (6561K kernel code, 1292K rwdata, 3076K rodata, 1444K init, 1580K bss, 267364K reserved, 0K cma-reserved)
Freeing SMP alternatives memory: 28K
x86/mm: Memory block size: 128MB
Freeing initrd memory: 38416K
Freeing unused kernel memory: 1444K
Freeing unused kernel memory: 1612K
Freeing unused kernel memory: 1020K
[drm] Memory usable by graphics device = 2048M
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1294
Location: Frankfurt, Germany

PostPosted: Wed Jul 11, 2018 3:03 pm    Post subject: Reply with quote

The most interesting line is:
Quote:
Memory: 6788876K/8297160K available (12300K kernel code, 5143K rwdata, 5088K rodata, 1476K init, 10732K bss, 1508284K reserved, 0K cma-reserved)

Your 4.14 kernel knows that you have 8GB of RAM, but it thinks that 1.5GB are reserved. Let's try to find out why your kernel thinks so much memory is reserved.

Please post your kernel 4.14 ".config" and the full output of 'dmesg -t' using pastebin (or something similar).
Back to top
View user's profile Send private message
sao98021
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2012
Posts: 144
Location: Michigan

PostPosted: Wed Jul 11, 2018 3:08 pm    Post subject: Reply with quote

mike155 wrote:
The most interesting line is:
Quote:
Memory: 6788876K/8297160K available (12300K kernel code, 5143K rwdata, 5088K rodata, 1476K init, 10732K bss, 1508284K reserved, 0K cma-reserved)

Your 4.14 kernel knows that you have 8GB of RAM, but it thinks that 1.5GB are reserved. Let's try to find out why your kernel thinks so much memory is reserved.

Please post your kernel 4.14 ".config" and the full output of 'dmesg -t' using pastebin (or something similar).


I saw that, sure thing give me one moment

here's config, https://pastebin.com/qb3ETMpc

dmesg -t https://pastebin.com/mRa1PzRe

they are all just modified genkernels
Back to top
View user's profile Send private message
tholin
Apprentice
Apprentice


Joined: 04 Oct 2008
Posts: 168

PostPosted: Wed Jul 11, 2018 4:09 pm    Post subject: Reply with quote

sao98021 wrote:
dmesg -t https://pastebin.com/mRa1PzRe
Code:
118. kasan: KernelAddressSanitizer initialized

From the kernel doc:

"Enables kernel address sanitizer - runtime memory debugger, designed to find out-of-bounds accesses and use-after-free bugs. This is strictly a debugging feature and it requires a gcc version of 4.9.2 or later. Detection of out of bounds accesses to stack or global variables requires gcc 5.0 or later.
This feature consumes about 1/8 of available memory and brings about ~x3 performance slowdown."


You don't want that.
Back to top
View user's profile Send private message
sao98021
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2012
Posts: 144
Location: Michigan

PostPosted: Wed Jul 11, 2018 6:52 pm    Post subject: Reply with quote

tholin wrote:
sao98021 wrote:
dmesg -t https://pastebin.com/mRa1PzRe
Code:
118. kasan: KernelAddressSanitizer initialized

From the kernel doc:

"Enables kernel address sanitizer - runtime memory debugger, designed to find out-of-bounds accesses and use-after-free bugs. This is strictly a debugging feature and it requires a gcc version of 4.9.2 or later. Detection of out of bounds accesses to stack or global variables requires gcc 5.0 or later.
This feature consumes about 1/8 of available memory and brings about ~x3 performance slowdown."


You don't want that.


good eye, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum