lkml.org 
[lkml]   [2009]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/kcore has a unreasonable size(281474974617600) in x86_64 2.6.30-rc8.
Tao Ma wrote:
>
> Yinghai Lu wrote:
>> Tao Ma wrote:
>>>
>>> Amerigo Wang wrote:
>>>> On Fri, Jun 05, 2009 at 05:30:49PM +0800, Tao Ma wrote:
>>>>>> Please send the boot logs: dmesg -s 1000000 > foo
>>>>> attached.
>>>>> #######high memory 18446612137615818752, size_t 18446612137615818752
>>>>> #######kcore size 5301604352, PAGE_OFFSET 0, PAGE_SIZE 4096
>>>>
>>>> These two lines must be added by yourself...
>>>>
>>>> What?!
>>>> How can PAGE_OFFSET be 0??
>>>> Can you show us these two printk() you just added?
>>>>
>>>> And, the size of kcore is not the crazy number in the subject...
>>>> This one is much saner..
>>> Sorry, I used the wrong printk. the correct one is:
>>> #######high memory 18446612137615818752, size_t 18446612137615818752
>>> #######kcore size 5301604352, PAGE_OFFSET 18446612132314218496,
>>> PAGE_SIZE 4096
>>>
>>
>> %lx should be used.
>>
>> also you compiler doesn't like
>>
>> high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1;
>>
>> in setup.c?
> Sorry fo my poor English, bug what do you mean?
>
> I just printk in the setup.c and the result is
>
> @@@@high_momory ffff88013c000000

so that value print out is right.

YH


\
 
 \ /
  Last update: 2009-06-07 00:25    [W:0.147 / U:1.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site