Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Out of memory - oom-killer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Thu Dec 02, 2004 9:48 am    Post subject: Out of memory - oom-killer Reply with quote

Hi all:

I am having problems while running usual tasks on a newly installed machine. It is a Pentium III celeron with 24MB of RAM and 1GB of swap space. When I run specified tasks (like compiling a kernel), the oom-killer kills gcc.

Now, I know the machine can do it because when I boot from the LiveCD I can compile the kernel. Why I am running out of memory? 1GB is not enough?

As soon as I boot, $> free shows that from the 24MB I am already using 22MB???

Any ideas? I am running a 2.6 kernel.

Thanks!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Dec 02, 2004 10:14 am    Post subject: Reply with quote

What is the output of free when gcc has crashed ?
How much swap is then in use ?

24 MB is very, very little to work with a 2.6 kernel.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Thu Dec 02, 2004 10:38 am    Post subject: Reply with quote

It usually says around 24MB of phisical memory, 22.5MB used.
Swap: 1GB available, 2MB used....
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Dec 02, 2004 11:08 am    Post subject: Reply with quote

Then it is obvious the kernel build deliberately doesn't use swap.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Thu Dec 02, 2004 11:22 am    Post subject: Reply with quote

adaptr wrote:
Then it is obvious the kernel build deliberately doesn't use swap.

Do you know what should I enable??? :roll:

The amount used when I run $> free varies, from time to time... Some times 2MB, some times 4MB....
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Dec 02, 2004 4:18 pm    Post subject: Reply with quote

I'd open a second VC and let top run in it while you do a kernel build.
Sort it according to RSS and VM used, see what happens.
Set it to update as fast as possible, at least once a second.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Mon Dec 06, 2004 9:45 am    Post subject: Reply with quote

I've done that, and the swap usage does not go beyond 6MB... Any ideas please? Is this a bug???
Back to top
View user's profile Send private message
Paladine01
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2003
Posts: 131
Location: Phoenix AZ

PostPosted: Mon Dec 06, 2004 3:49 pm    Post subject: Reply with quote

Kernel 2.6.9 has a more aggressive OOM-Killer. You would be better off downgrading to 2.6.8.1. I run linux on my Gamecube and I run into the same problem as you. 24 megs of RAM and a large network swap. Even with plenty of swap the kernel decides to kill my applications left and right.

2.6.10 is supposed to fix these problems, so you might want to try a prerelease version if you're brave.
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Mon Dec 06, 2004 4:46 pm    Post subject: Reply with quote

Paladine01 wrote:
I run linux on my Gamecube.

GNU/Linux on a GameCube? 8O
Back to top
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Mon Dec 06, 2004 5:01 pm    Post subject: Reply with quote

Paladine01 wrote:
2.6.10 is supposed to fix these problems, so you might want to try a prerelease version if you're brave.


Cool! I've been reading something about it. I'll test it straightaway...

And, you run it on a gamecube... What processor is that?
Back to top
View user's profile Send private message
Jengu
Guru
Guru


Joined: 28 Oct 2004
Posts: 384

PostPosted: Mon Dec 06, 2004 6:18 pm    Post subject: Reply with quote

Why a celeron with 24MB of RAM? That's like putting a jet engine in a horse carriage. Upgrade your memory ;)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Dec 07, 2004 8:07 am    Post subject: Reply with quote

Codo wrote:
And, you run it on a gamecube... What processor is that?

Well, the N64 had a custom-made MIPS R4400, so my guess would be a MIPS...
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Tue Dec 07, 2004 9:13 am    Post subject: Reply with quote

Jengu wrote:
That's like putting a jet engine in a horse carriage.

Exactly. And I'm tying myself to front of the carriage on command line and gcc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum