Memory

From OpenTom

Jump to: navigation, search

Here is the output of 'cat /proc/meminfo' on my TomTom ONE XL

Can we turn the swapfile on using 'swapon' program from util-linux?


MemTotal:        29700 kB
MemFree:          5392 kB
Buffers:           208 kB
Cached:          11584 kB
SwapCached:          0 kB
Active:          18276 kB
Inactive:         3752 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        29700 kB
LowFree:          5392 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               4 kB
Writeback:           0 kB
Mapped:          14748 kB
Slab:             1328 kB
CommitLimit:     28212 kB
Committed_AS:    35136 kB
PageTables:        216 kB
VmallocTotal:   483328 kB
VmallocUsed:      2092 kB
VmallocChunk:   479740 kB

Free up RAM

Here is a script that frees up ram used by the ttn application:

#!/bin sh
killall ttn &&
while(true)
do
echo \0 > /dev/watchdog
sleep 10
done

The trick is to kill the ttn but also keep the Watchdog from reseting your device. You need to invoke the script as a background process so use and '&' after the command.

./free.sh &
Personal tools