On Tue, 14 Feb 2006, Zac Slade wrote:
On Tuesday 14 February 2006 17:43, Benno Schulenberg wrote:
Jorge Almeida wrote:
parser error : out of memory error
/bin/sh: line 1: 3831 Segmentation fault
Doesn't look good. :(
No it doesn't, but there has to be a reason why he's out of memory... What is
the output of free, before emerge? How about after it fails? Can you give
the output of the following commands:
cat /proc/sys/vm/swappiness
cat /proc/sys/vm/overcommit_memory
cat /proc/sys/vm/overcommit_ratio
$ cat /proc/sys/vm/swappiness
60
$ cat /proc/sys/vm/overcommit_memory
0
$ cat /proc/sys/vm/overcommit_ratio
50
$ free
total used free shared buffers
cached
Mem: 1035204 968140 67064 0 270248
538412
-/+ buffers/cache: 159480 875724
Swap: 996020 300 995720
Of course, this is the output of free _after_ the previous failed emerge
attempts.
It seems RAM really was caught and not released... I can try rebooting,
but there is the possibility that the box won't boot, and I'm away...
Is there some way to find what's eating RAM?
Also try using "vmstat 5" in one window and attempting the emerge in another
window.
What process is using the most memory right now? (Check top sorted by
memory).
$ top
top - 01:21:23 up 22 days, 17:29, 2 users, load average: 0.00, 0.00,
0.00
Tasks: 120 total, 2 running, 118 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.3% hi,
0.0% si
Mem: 1035204k total, 968760k used, 66444k free, 270684k buffers
Swap: 996020k total, 300k used, 995720k free, 538452k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8291 root 15 0 159m 29m 3056 S 0.0 3.0 5:05.74 X
24756 jorge 15 0 30592 25m 2576 S 0.0 2.5 0:06.52 pine
28731 jorge 16 0 20016 14m 14m S 0.0 1.4 0:19.34 imap
26923 root 15 0 21236 12m 9704 S 0.0 1.2 0:00.39 kdm_greet
24757 jorge 16 0 8436 6292 5984 S 0.0 0.6 0:01.85 imap
21961 jorge 16 0 8044 3992 2684 S 0.0 0.4 0:00.15 vim
8259 root 16 0 5756 2852 1356 S 0.0 0.3 0:50.69 cupsd
24734 root 16 0 5944 1764 1440 S 0.0 0.2 0:00.01 sshd
24767 root 16 0 5948 1764 1440 S 0.0 0.2 0:00.01 sshd
3588 root 15 0 2644 1560 1172 S 0.0 0.2 0:00.11 bash
24746 jorge 15 0 2924 1472 1164 S 0.0 0.1 0:00.02 bash
6396 privoxy 15 0 36028 1464 784 S 0.0 0.1 0:07.90 privoxy
24785 jorge 15 0 2796 1456 1156 S 0.0 0.1 0:00.01 bash
24799 root 16 0 2664 1456 1156 S 0.0 0.1 0:00.00 bash
Jorge Almeida
--
gentoo-user@gentoo.org mailing list