Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Memory needed for hibernation too much
@ 2011-02-25  3:56 Jacky Lam
  2011-02-25  8:12 ` Geert Uytterhoeven
  0 siblings, 1 reply; 7+ messages in thread
From: Jacky Lam @ 2011-02-25  3:56 UTC (permalink / raw)
  To: linux-mips

Hi all,

     I try the hibernation feature with my MIPS box which has 128MB RAM. 
After boot up, it remains to have 110MB something. Then I mount ramfs on 
a directory, create a file 100MB from /dev/urandom and enter 
hibernation. The process failed because of no memory. Then, I continue 
to cut the data file size and not success until 20MB.

     I want to make sure if it is an expected behavior or I am doing 
some wrong?

     Thanks.

BR,
Jacky

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Memory needed for hibernation too much
  2011-02-25  3:56 Memory needed for hibernation too much Jacky Lam
@ 2011-02-25  8:12 ` Geert Uytterhoeven
  2011-02-28  1:03   ` Jacky Lam
  0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2011-02-25  8:12 UTC (permalink / raw)
  To: Jacky Lam; +Cc: linux-mips

On Fri, Feb 25, 2011 at 04:56, Jacky Lam <lamshuyin@gmail.com> wrote:
>    I try the hibernation feature with my MIPS box which has 128MB RAM. After
> boot up, it remains to have 110MB something. Then I mount ramfs on a
> directory, create a file 100MB from /dev/urandom and enter hibernation. The
> process failed because of no memory. Then, I continue to cut the data file
> size and not success until 20MB.
>
>    I want to make sure if it is an expected behavior or I am doing some
> wrong?

How large is your swapspace? Hibernation needs space on swap to store
the contents
of RAM (that cannot be loaded again from somewhere else).

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Memory needed for hibernation too much
  2011-02-25  8:12 ` Geert Uytterhoeven
@ 2011-02-28  1:03   ` Jacky Lam
  2011-02-28  1:55     ` 胡洪兵
  2011-02-28  8:04     ` Geert Uytterhoeven
  0 siblings, 2 replies; 7+ messages in thread
From: Jacky Lam @ 2011-02-28  1:03 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-mips

     I create a 300GB swap space (just use up the remaining space in 
disk, no special reason). Is that a problem?

Jacky

On 2/25/2011 4:12 PM, Geert Uytterhoeven wrote:
> On Fri, Feb 25, 2011 at 04:56, Jacky Lam<lamshuyin@gmail.com>  wrote:
>>     I try the hibernation feature with my MIPS box which has 128MB RAM. After
>> boot up, it remains to have 110MB something. Then I mount ramfs on a
>> directory, create a file 100MB from /dev/urandom and enter hibernation. The
>> process failed because of no memory. Then, I continue to cut the data file
>> size and not success until 20MB.
>>
>>     I want to make sure if it is an expected behavior or I am doing some
>> wrong?
> How large is your swapspace? Hibernation needs space on swap to store
> the contents
> of RAM (that cannot be loaded again from somewhere else).
>
> Gr{oetje,eeting}s,
>
>                          Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                  -- Linus Torvalds
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Memory needed for hibernation too much
  2011-02-28  1:03   ` Jacky Lam
@ 2011-02-28  1:55     ` 胡洪兵
  2011-02-28  3:04       ` Jacky Lam
  2011-02-28  8:04     ` Geert Uytterhoeven
  1 sibling, 1 reply; 7+ messages in thread
From: 胡洪兵 @ 2011-02-28  1:55 UTC (permalink / raw)
  To: Jacky Lam; +Cc: Geert Uytterhoeven, linux-mips

于 11/02/28 9:03, Jacky Lam 写道:
> I create a 300GB swap space (just use up the remaining space in disk, no
> special reason). Is that a problem?
>

You could try to change the memory model to "Sparese Memory".

Kernel type --->
  Memory model (Sparse Memory)  --->

> Jacky
>
> On 2/25/2011 4:12 PM, Geert Uytterhoeven wrote:
>> On Fri, Feb 25, 2011 at 04:56, Jacky Lam<lamshuyin@gmail.com> wrote:
>>> I try the hibernation feature with my MIPS box which has 128MB RAM.
>>> After
>>> boot up, it remains to have 110MB something. Then I mount ramfs on a
>>> directory, create a file 100MB from /dev/urandom and enter
>>> hibernation. The
>>> process failed because of no memory. Then, I continue to cut the data
>>> file
>>> size and not success until 20MB.
>>>
>>> I want to make sure if it is an expected behavior or I am doing some
>>> wrong?
>> How large is your swapspace? Hibernation needs space on swap to store
>> the contents
>> of RAM (that cannot be loaded again from somewhere else).
>>
>> Gr{oetje,eeting}s,
>>
>> Geert
>>
>> --
>> Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
>> geert@linux-m68k.org
>>
>> In personal conversations with technical people, I call myself a
>> hacker. But
>> when I'm talking to journalists I just say "programmer" or something
>> like that.
>> -- Linus Torvalds
>>
>
>
>


-- 
---------------------------------------------------------
HuHongbing (Software Department)
Tel	: 0512-52308631
E-mail	: huhb@lemote.com
MSN	: [huhb04@gmail.com]
WEB	: www.lemote.com
JiangSu Lemote Corp. Ltd.
MengLan, Yushan, Changshu, JiangSu Province, China
---------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Memory needed for hibernation too much
  2011-02-28  1:55     ` 胡洪兵
@ 2011-02-28  3:04       ` Jacky Lam
  2011-02-28  3:40         ` 胡洪兵
  0 siblings, 1 reply; 7+ messages in thread
From: Jacky Lam @ 2011-02-28  3:04 UTC (permalink / raw)
  To: 胡洪兵; +Cc: Geert Uytterhoeven, linux-mips

On 2/28/2011 9:55 AM, 胡洪兵 wrote:
> 于 11/02/28 9:03, Jacky Lam 写道:
>> I create a 300GB swap space (just use up the remaining space in disk, no
>> special reason). Is that a problem?
>>
>
> You could try to change the memory model to "Sparese Memory".
>
> Kernel type --->
>  Memory model (Sparse Memory)  --->

     My system memory only has 1 node of continuous memory. Any reason 
for that?

Jacky

>
>> Jacky
>>
>> On 2/25/2011 4:12 PM, Geert Uytterhoeven wrote:
>>> On Fri, Feb 25, 2011 at 04:56, Jacky Lam<lamshuyin@gmail.com> wrote:
>>>> I try the hibernation feature with my MIPS box which has 128MB RAM.
>>>> After
>>>> boot up, it remains to have 110MB something. Then I mount ramfs on a
>>>> directory, create a file 100MB from /dev/urandom and enter
>>>> hibernation. The
>>>> process failed because of no memory. Then, I continue to cut the data
>>>> file
>>>> size and not success until 20MB.
>>>>
>>>> I want to make sure if it is an expected behavior or I am doing some
>>>> wrong?
>>> How large is your swapspace? Hibernation needs space on swap to store
>>> the contents
>>> of RAM (that cannot be loaded again from somewhere else).
>>>
>>> Gr{oetje,eeting}s,
>>>
>>> Geert
>>>
>>> -- 
>>> Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
>>> geert@linux-m68k.org
>>>
>>> In personal conversations with technical people, I call myself a
>>> hacker. But
>>> when I'm talking to journalists I just say "programmer" or something
>>> like that.
>>> -- Linus Torvalds
>>>
>>
>>
>>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Memory needed for hibernation too much
  2011-02-28  3:04       ` Jacky Lam
@ 2011-02-28  3:40         ` 胡洪兵
  0 siblings, 0 replies; 7+ messages in thread
From: 胡洪兵 @ 2011-02-28  3:40 UTC (permalink / raw)
  To: Jacky Lam; +Cc: Geert Uytterhoeven, linux-mips

于 11/02/28 11:04, Jacky Lam 写道:
> On 2/28/2011 9:55 AM, 胡洪兵 wrote:
>> 于 11/02/28 9:03, Jacky Lam 写道:
>>> I create a 300GB swap space (just use up the remaining space in disk, no
>>> special reason). Is that a problem?
>>>
>>
>> You could try to change the memory model to "Sparese Memory".
>>
>> Kernel type --->
>> Memory model (Sparse Memory) --->
>
> My system memory only has 1 node of continuous memory. Any reason for that?
>
The memory address space is not continuous in some cpus, so I suggest to 
change the memory model.

I guess that your system is continuous, so only 1 node is show.

> Jacky
>
>>
>>> Jacky
>>>
>>> On 2/25/2011 4:12 PM, Geert Uytterhoeven wrote:
>>>> On Fri, Feb 25, 2011 at 04:56, Jacky Lam<lamshuyin@gmail.com> wrote:
>>>>> I try the hibernation feature with my MIPS box which has 128MB RAM.
>>>>> After
>>>>> boot up, it remains to have 110MB something. Then I mount ramfs on a
>>>>> directory, create a file 100MB from /dev/urandom and enter
>>>>> hibernation. The
>>>>> process failed because of no memory. Then, I continue to cut the data
>>>>> file
>>>>> size and not success until 20MB.
>>>>>
>>>>> I want to make sure if it is an expected behavior or I am doing some
>>>>> wrong?
>>>> How large is your swapspace? Hibernation needs space on swap to store
>>>> the contents
>>>> of RAM (that cannot be loaded again from somewhere else).
>>>>
>>>> Gr{oetje,eeting}s,
>>>>
>>>> Geert
>>>>
>>>> --
>>>> Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
>>>> geert@linux-m68k.org
>>>>
>>>> In personal conversations with technical people, I call myself a
>>>> hacker. But
>>>> when I'm talking to journalists I just say "programmer" or something
>>>> like that.
>>>> -- Linus Torvalds
>>>>
>>>
>>>
>>>
>>
>>
>
>
>


-- 
---------------------------------------------------------
HuHongbing (Software Department)
Tel	: 0512-52308631
E-mail	: huhb@lemote.com
MSN	: [huhb04@gmail.com]
WEB	: www.lemote.com
JiangSu Lemote Corp. Ltd.
MengLan, Yushan, Changshu, JiangSu Province, China
---------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Memory needed for hibernation too much
  2011-02-28  1:03   ` Jacky Lam
  2011-02-28  1:55     ` 胡洪兵
@ 2011-02-28  8:04     ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2011-02-28  8:04 UTC (permalink / raw)
  To: Jacky Lam; +Cc: linux-mips

On Mon, Feb 28, 2011 at 02:03, Jacky Lam <lamshuyin@gmail.com> wrote:
>    I create a 300GB swap space (just use up the remaining space in disk, no
> special reason). Is that a problem?

That should be plenty for a box with 128 MiB RAM...

> On 2/25/2011 4:12 PM, Geert Uytterhoeven wrote:
>> On Fri, Feb 25, 2011 at 04:56, Jacky Lam<lamshuyin@gmail.com>  wrote:
>>>
>>>    I try the hibernation feature with my MIPS box which has 128MB RAM.
>>> After
>>> boot up, it remains to have 110MB something. Then I mount ramfs on a
>>> directory, create a file 100MB from /dev/urandom and enter hibernation.
>>> The
>>> process failed because of no memory. Then, I continue to cut the data
>>> file
>>> size and not success until 20MB.
>>>
>>>    I want to make sure if it is an expected behavior or I am doing some
>>> wrong?
>>
>> How large is your swapspace? Hibernation needs space on swap to store
>> the contents
>> of RAM (that cannot be loaded again from somewhere else).

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-28  8:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25  3:56 Memory needed for hibernation too much Jacky Lam
2011-02-25  8:12 ` Geert Uytterhoeven
2011-02-28  1:03   ` Jacky Lam
2011-02-28  1:55     ` 胡洪兵
2011-02-28  3:04       ` Jacky Lam
2011-02-28  3:40         ` 胡洪兵
2011-02-28  8:04     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox