by dan64 » Sun Oct 27, 2013 10:58 am
I have decide to give to the video card only 32M, so I have generated a boot.scr that contains the following memory data:
mem=480M@0M mem=512M@512M nvmem=32M@480M vmalloc=160M
After doing so the Kernel memory map is the following:
$this->bbcode_second_pass_code('', '
<6>Memory: [b]480MB 232MB = 712MB[/b] total
<5>Memory: [b]702580k/702580k[/b] available, [b]313228k[b] reserved, 8192K highmem
<5>Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xee800000 - 0xf8000000 ( 152 MB)
lowmem : 0xc0000000 - 0xee000000 ( 736 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0b4fb48 (11551 kB)
.init : 0xc0b50000 - 0xc0badca0 ( 376 kB)
.data : 0xc0bae000 - 0xc0c40f68 ( 588 kB)
.bss : 0xc0c40f8c - 0xc0d42880 (1031 kB)
')
I have then decided to change the vmalloc parameter to 248M
The memory map changed as follow:
$this->bbcode_second_pass_code('', '
<6>Memory: 480MB 232MB = 712MB total
<5>Memory: 702580k/702580k available, 313228k reserved, 98304K highmem
<5>Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xe9000000 - 0xf8000000 ( 240 MB)
lowmem : 0xc0000000 - 0xe8800000 ( 648 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0b4fb48 (11551 kB)
.init : 0xc0b50000 - 0xc0badca0 ( 376 kB)
.data : 0xc0bae000 - 0xc0c40f68 ( 588 kB)
.bss : 0xc0c40f8c - 0xc0d42880 (1031 kB)
')
My questions are:
1) It's better set vmalloc to 160M or 248M ?
2) I don't understand why is stated that the memory available is only 702580k (about 686M) and that 313228k (about 306M) are reserved. It is possible improve the available memory ?
Thanks,
Danilo