lkml.org 
[lkml]   [2007]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: PS3: trouble with SPARSEMEM_VMEMMAP and kexec
    On Thu, 6 Dec 2007, Yasunori Goto wrote:
    > > I'll try Milton's suggestion to pre-allocate the memory early. It seems
    > > that should work as long as nothing else before the hot-plug mem is added
    > > needs a large chunk.
    >
    > Hello. Geoff-san. Sorry for late response.
    >
    > Could you tell me the value of the following page_size calculation
    > in vmemmap_populate()? I think this page_size may be too big value.
    >
    > ------
    > int __meminit vmemmap_populate(struct page *start_page,
    > unsigned long nr_pages, int node)
    > :
    > :
    > unsigned long page_size = 1 << mmu_psize_defs[mmu_linear_psize].shift;
    > :
    > -------

    24 MiB

    > In addition, I remember that current add_memory() is designed for
    > only 1 section's addition. (See: memory_probe_store() and
    > sparse_mem_map_populate().
    > they require only for 1 section's mem_map by specifing
    > PAGES_PER_SECTION.)
    > The 1 section size for normal powerpc box is only 16MB.
    > (IA64 -> 1GB, x86-64 -> 128MB).
    >
    > But, if my understanding is correct, PS3's add_memory() requires all
    > of total memory. I'm afraid something other problems might be hidden
    > in this issue yet.
    >
    > (However, I think Milton-san's suggestion is very desirable.
    > If preallocation of hotadd works on ia64 too, I'm very glad.)

    PS3 initially starts with 128 MiB.
    Later hotplug is used to add the remaining memory (96 or 112 MIB, IIRC).

    With kind regards,

    Geert Uytterhoeven
    Software Architect

    Sony Network and Software Technology Center Europe
    The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

    Phone: +32 (0)2 700 8453
    Fax: +32 (0)2 700 8622
    E-mail: Geert.Uytterhoeven@sonycom.com
    Internet: http://www.sony-europe.com/

    Sony Network and Software Technology Center Europe
    A division of Sony Service Centre (Europe) N.V.
    Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium
    VAT BE 0413.825.160 · RPR Brussels
    Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
    \
     
     \ /
      Last update: 2007-12-06 11:59    [W:0.022 / U:60.596 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site