Skip to contentSkip to conversation

Memory needed for hibernation too much

DISCUSSION Jacky Lam 3 participants 7 messages Feb 25, 2011 – Feb 28, 2011 MIPS

lore
Share & tools
lore

Jacky Lam

author
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Jacky Lam

   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 -- [email protected]

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

author
#2 lore raw

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

Jacky

Quoted 24 lines · Geert Uytterhoeven
Quoted 8 lines · Jacky Lam

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 -- [email protected]

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

#3 lore raw
Quoted 3 lines · 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) --->

Quoted 36 lines

Jacky

Quoted 30 lines · Geert Uytterhoeven
Quoted 11 lines · Jacky Lam

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 -- [email protected]

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

Signature · 9 lines
---------------------------------------------------------
HuHongbing (Software Department)
Tel	: 0512-52308631
E-mail	: [email protected]
MSN	: [[email protected]]
WEB	: www.lemote.com
JiangSu Lemote Corp. Ltd.
MengLan, Yushan, Changshu, JiangSu Province, China
---------------------------------------------------------
author
#4 lore raw
Quoted 9 lines · 胡洪兵
Quoted 3 lines · 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

Quoted 39 lines
Quoted 37 lines

Jacky

Quoted 30 lines · Geert Uytterhoeven
Quoted 11 lines · Jacky Lam

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

Signature · 8 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
[email protected]

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
#5 lore raw
Quoted 6 lines · Jacky Lam
Quoted 5 lines · 胡洪兵
Quoted 3 lines · Jacky Lam

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

Quoted 7 lines
Quoted 4 lines

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.

Quoted 44 lines

Jacky

Quoted 39 lines
Quoted 37 lines

Jacky

Quoted 30 lines · Geert Uytterhoeven
Quoted 11 lines · Jacky Lam

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 -- [email protected]

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

Signature · 9 lines
---------------------------------------------------------
HuHongbing (Software Department)
Tel	: 0512-52308631
E-mail	: [email protected]
MSN	: [[email protected]]
WEB	: www.lemote.com
JiangSu Lemote Corp. Ltd.
MengLan, Yushan, Changshu, JiangSu Province, China
---------------------------------------------------------
#6 lore raw
In reply to Jacky Lam
Quoted 2 lines · Jacky Lam

   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...

Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Jacky Lam
Quoted 10 lines

   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.

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

   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 -- [email protected]

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