Tomato OS: "memory exhausted" running vi .... how to solve?
- by Sam Jones
I have set up tomato (shibby) on an asus RT-N66U router. It works great.
I loaded up a few pieces, like transmission and optware.
I can run vi, but when I run vi it fails with a "memory exhausted" error, and the terminal session hangs. For reference: If I simply start "vi" it runs fine. But if I specify vi I get the memory exhausted error, even if the file I am opening is just a couple of hundred bytes in size (like fstab).
I discovered that my swap partition was not properly set up, so I did that. The swapon command now indicates I really do have a swap:
[root@MyRouter samba]$ swapon -s
Filename Type Size Used Priority
/dev/sda1 partition 32900860 0 1
How can I get vi to work?
Thanks!
System setup reference information:
asus RT-N66U router
2TB usb hard drive
partitions on hard drive:
Disk /dev/sda: 2000.4 GB, 2000398839808 bytes
255 heads, 63 sectors/track, 30400 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes
Disk identifier: 0xfacbc8ab
Device Boot Start End Blocks Id System
/dev/sda1 1 512 32900868 82 Linux swap / Solaris
/dev/sda2 513 29000 1830638880 83 Linux
running samba
memory:
$ cat /proc/meminfo
MemTotal: 255840 kB
MemFree: 210980 kB
Buffers: 5264 kB
Cached: 22768 kB
SwapCached: 0 kB
Active: 20272 kB
Inactive: 11448 kB
HighTotal: 131072 kB
HighFree: 99868 kB
LowTotal: 124768 kB
LowFree: 111112 kB
SwapTotal: 32900860 kB
SwapFree: 32900860 kB
Dirty: 0 kB
Writeback: 0 kB
TIA!