* Out of memory?
@ 2000-06-12 10:39 Michel Lanners
2000-06-12 11:42 ` Olaf Hering
2000-06-12 12:46 ` Michael Schmitz
0 siblings, 2 replies; 4+ messages in thread
From: Michel Lanners @ 2000-06-12 10:39 UTC (permalink / raw)
To: linuxppc-dev
Hi list,
I've run into memory problems. I'm experimenting with Gimp, and working
with relatively large images (3000 x 3000 pixels). I'm also working with
large fonts (>100 pixels).
Problem is that the kernel VM layer starts to kill my processes when
they get really big re. memory footprint. Here are the massages from the
kernel:
Jun 12 10:53:13 piglet kernel: VM: killing process gimp
Jun 12 10:55:03 piglet kernel: VM: killing process X
Jun 12 10:59:46 piglet kernel: VM: killing process X
Jun 12 12:04:27 piglet kernel: VM: killing process xfs
and so on... acording to the comment in arch/ppc/mm/fault.c, this
happens when for some reason the kernel cannot satisfy a paging request.
xfs gets killed when rendering a really big font, X when sending it over
to gimp, and gimp when working with large images....
What reason is there to kill a process for memory reasons? Does a single
process need to fit _entirely_ into RAM, or can part of a process be
swapped out? In all of the above cases, I've always had over 100 megs of
swap free. Or is there a fixed limit on how big a process can get?
Thanks
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Out of memory?
2000-06-12 10:39 Out of memory? Michel Lanners
@ 2000-06-12 11:42 ` Olaf Hering
2000-06-12 12:46 ` Michael Schmitz
1 sibling, 0 replies; 4+ messages in thread
From: Olaf Hering @ 2000-06-12 11:42 UTC (permalink / raw)
To: Michel Lanners; +Cc: linuxppc-dev
On Mon, Jun 12, Michel Lanners wrote:
> Jun 12 10:53:13 piglet kernel: VM: killing process gimp
> Jun 12 10:55:03 piglet kernel: VM: killing process X
> Jun 12 10:59:46 piglet kernel: VM: killing process X
> Jun 12 12:04:27 piglet kernel: VM: killing process xfs
>
> and so on... acording to the comment in arch/ppc/mm/fault.c, this
> happens when for some reason the kernel cannot satisfy a paging request.
>
> xfs gets killed when rendering a really big font, X when sending it over
> to gimp, and gimp when working with large images....
>
> What reason is there to kill a process for memory reasons? Does a single
> process need to fit _entirely_ into RAM, or can part of a process be
> swapped out? In all of the above cases, I've always had over 100 megs of
> swap free. Or is there a fixed limit on how big a process can get?
It is only self protection of the kernel to run not out of memory.
The last process that want to allocate memory when memory is low gets
killed. Looks like that is not smart enough when swap is still
available.
Gruss Olaf
--
$ man clone
BUGS
Main feature not yet implemented...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Out of memory?
2000-06-12 10:39 Out of memory? Michel Lanners
2000-06-12 11:42 ` Olaf Hering
@ 2000-06-12 12:46 ` Michael Schmitz
1 sibling, 0 replies; 4+ messages in thread
From: Michael Schmitz @ 2000-06-12 12:46 UTC (permalink / raw)
To: Michel Lanners; +Cc: linuxppc-dev
> Jun 12 10:53:13 piglet kernel: VM: killing process gimp
> Jun 12 10:55:03 piglet kernel: VM: killing process X
> Jun 12 10:59:46 piglet kernel: VM: killing process X
> Jun 12 12:04:27 piglet kernel: VM: killing process xfs
>
> and so on... acording to the comment in arch/ppc/mm/fault.c, this
> happens when for some reason the kernel cannot satisfy a paging request.
>
> xfs gets killed when rendering a really big font, X when sending it over
> to gimp, and gimp when working with large images....
>
> What reason is there to kill a process for memory reasons? Does a single
> process need to fit _entirely_ into RAM, or can part of a process be
> swapped out? In all of the above cases, I've always had over 100 megs of
> swap free. Or is there a fixed limit on how big a process can get?
There's a limit on process VM size but that's quite large and shouldn'
affect you there. I'd look into the exact reason why the kernel could not
satisfy a paging request in your specific case. You might be attempting to
free pages in order to swap in what you need but kswapd didn't succeed in
swapping out anything. Or maybe there's nothing left on any of the free
lists that are used by __get_free_page(GFP_USER). How much swap space
remains is meaningless as long as there isn't any page in RAM that's "old"
enough to be swapped out.
Try to adjust the page aging parameters to make kswapd more aggressive
about swapping out stuff that's only moderately old (probably done via
/proc/sys/vm/kswapd). Or add some debug code to __get_free_pages to find
out where it gets stuck (i.e. is the paging request even happening at a
stage where the number of free pages is below the highwater mark for
kswapd).
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Out of memory ?
@ 2002-01-30 14:58 GOTZON ASTONDOA
0 siblings, 0 replies; 4+ messages in thread
From: GOTZON ASTONDOA @ 2002-01-30 14:58 UTC (permalink / raw)
To: linuxppc-embedded
Hi all,
I have a custom board based in the MPC823e.
I am using mvista ftpserver who works OK in the FADS but, when i try to do
it in my custom board it says that it is out of memory. But with the meminfo
it says that i have memory.
Can anybody help me?
Thanks in advance
# cat meminfo
total: used: free: shared: buffers: cached:
Mem: 6381568 2576384 3805184 1208320 1048576 593920
Swap: 0 0 0
MemTotal: 6232 kB
MemFree: 3716 kB
MemShared: 1180 kB
Buffers: 1024 kB
Cached: 580 kB
Active: 1604 kB
Inact_dirty: 0 kB
Inact_clean: 0 kB
Inact_target: 24 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 6232 kB
LowFree: 3716 kB
SwapTotal: 0 kB
SwapFree: 0 kB
# chroot /nfs/CNC8055_FTPSERVER/
BusyBox v0.60.0 (2001.09.18-16:26+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
# inetd -d
ADD : echo proto=tcp, wait.max=0.40, user.group=root.(null) builtin=100141dc
server=internal
ADD : echo proto=udp, wait.max=0.40, user.group=root.(null) builtin=100141ec
server=internal
ADD : discard proto=tcp, wait.max=0.40, user.group=root.(null)
builtin=100141fc server=internal
ADD : discard proto=udp, wait.max=0.40, user.group=root.(null)
builtin=1001420c server=internal
ADD : daytime proto=tcp, wait.max=0.40, user.group=root.(null)
builtin=1001423c server=internal
ADD : daytime proto=udp, wait.max=0.40, user.group=root.(null)
builtin=1001424c server=internal
ADD : chargen proto=tcp, wait.max=0.40, user.group=root.(null)
builtin=1001425c server=internal
ADD : chargen proto=udp, wait.max=0.40, user.group=root.(null)
builtin=1001426c server=internal
ADD : ftp proto=tcp, wait.max=0.40, user.group=root.(null) builtin=0
server=/bin/ftpd
someone wants ftp
accept, ctrl 3
kmod: runaway modprobe loop assumed and stopped
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 29 (inetd).
Out of Memory: Killed process 30 (inetd).
request_module[net-pf-1]: waitpid(31,...) failed, errno 1
Out of Memory: Killed process 30 (inetd).
Out of Memory: Killed process 30 (inetd).
Out of Memory: Killed process 30 (inetd).
Out of Memory: Killed process 30 (inetd).
Out of Memory: Killed process 30 (inetd).
Out of Memory: Killed process 30 (inetd).
Out of Memory: Killed process 30 (inetd).
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-30 14:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-12 10:39 Out of memory? Michel Lanners
2000-06-12 11:42 ` Olaf Hering
2000-06-12 12:46 ` Michael Schmitz
-- strict thread matches above, loose matches on Subject: below --
2002-01-30 14:58 Out of memory ? GOTZON ASTONDOA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).