JiapengLi / OpenWrt-RT5350

Uboot and openwrt firmwares of RT5350
82 stars 42 forks source link

print RAM size info #6

Open harayz opened 8 years ago

harayz commented 8 years ago

i manage to telnet into my router but i am unable to determine the RAM size on the device. the following is the output from cat /proc/meminfo and /proc/cpuinfo.

# cat meminfo
MemTotal: 28616 kB
MemFree: 4104 kB
Buffers: 0 kB
Cached: 17860 kB
SwapCached: 0 kB
Active: 11996 kB
Inactive: 7064 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 1232 kB
Mapped: 716 kB
Slab: 4224 kB
SReclaimable: 620 kB
SUnreclaim: 3604 kB
PageTables: 200 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 14308 kB
Committed_AS: 3128 kB
VmallocTotal: 1048404 kB
VmallocUsed: 804 kB
VmallocChunk: 1047524 kB

# cat cpuinfo
system type : Ralink SoC
processor : 0
cpu model : MIPS 24K V4.12
BogoMIPS : 239.61
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes
ASEs implemented : mips16 dsp
VCED exceptions : not available
VCEI exceptions : not available
steve8x8 commented 8 years ago

What's wrong with using the very first line of /proc/meminfo? The device has 28MB of RAM. What else do you want to know?