View previous topic :: View next topic |
Author |
Message |
Codo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19887300524369dc132ed03.jpg)
Joined: 17 May 2004 Posts: 271
|
Posted: Thu Dec 02, 2004 9:48 am Post subject: Out of memory - oom-killer |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Dec 02, 2004 10:14 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Codo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19887300524369dc132ed03.jpg)
Joined: 17 May 2004 Posts: 271
|
Posted: Thu Dec 02, 2004 10:38 am Post subject: |
|
|
It usually says around 24MB of phisical memory, 22.5MB used.
Swap: 1GB available, 2MB used.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Dec 02, 2004 11:08 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Codo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19887300524369dc132ed03.jpg)
Joined: 17 May 2004 Posts: 271
|
Posted: Thu Dec 02, 2004 11:22 am Post subject: |
|
|
adaptr wrote: | Then it is obvious the kernel build deliberately doesn't use swap. |
Do you know what should I enable???
The amount used when I run $> free varies, from time to time... Some times 2MB, some times 4MB.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Dec 02, 2004 4:18 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Codo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19887300524369dc132ed03.jpg)
Joined: 17 May 2004 Posts: 271
|
Posted: Mon Dec 06, 2004 9:45 am Post subject: |
|
|
I've done that, and the swap usage does not go beyond 6MB... Any ideas please? Is this a bug??? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Paladine01 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Dec 2003 Posts: 131 Location: Phoenix AZ
|
Posted: Mon Dec 06, 2004 3:49 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Deranger Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1467692247458b0af6b0072.jpg)
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Mon Dec 06, 2004 4:46 pm Post subject: |
|
|
Paladine01 wrote: | I run linux on my Gamecube. |
GNU/Linux on a GameCube? ![Shocked 8O](images/smiles/icon_eek.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Codo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19887300524369dc132ed03.jpg)
Joined: 17 May 2004 Posts: 271
|
Posted: Mon Dec 06, 2004 5:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Jengu Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 28 Oct 2004 Posts: 384
|
Posted: Mon Dec 06, 2004 6:18 pm Post subject: |
|
|
Why a celeron with 24MB of RAM? That's like putting a jet engine in a horse carriage. Upgrade your memory ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Dec 07, 2004 8:07 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Codo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19887300524369dc132ed03.jpg)
Joined: 17 May 2004 Posts: 271
|
Posted: Tue Dec 07, 2004 9:13 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|