[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

memory hunt

Hi again,

In my hunt for as much memory free as possible I've come to an abrupt halt.
The kernel keeps on terminating my processe (presumably because it thinks 
there's not enough free mem).  

However, I was under the impression that memory reported as 'cached' in 
/proc/meminfo could be immediately claimed by the kernel as free when 
neccessary...am I wrong here or what ?

On an almost empty devboard I get this:

MemTotal:         7008 kB
MemFree:          1944 kB
MemShared:           0 kB
Buffers:           304 kB
Cached:           2760 kB

If I let my program use any more than just over two megs - it gets a SIGTERM.

Please help me out here !?

PS. Almost empty equals:

    1 root     S    init
    2 root     S    [keventd]
    3 root     S    [ksoftirqd_CPU0]
    4 root     S    [kswapd]
    5 root     S    [bdflush]
    6 root     S    [kupdated]
    7 root     S    [mtdblockd]
   17 root     S    [jffs_gcd]
   61 root     S    /bin/dhclient
   65 root     S    /sbin/inetd -n
  167 root     S    in.telnetd
  168 root     S    -sh
  201 root     R    ps

Regards - John Bindby

email: john.bindby@xxxxxxx.se 
web: http://www.botech.se 
phone: +46 (0)40-30 77 51 
fax: +46 (0)40-22 98 98