1. free: 查看内存
这个系统用的是2块HY57561620 (32MB X 2 = 64)
这个系统用的是2块HY57561620 (32MB X 2 = 64)
[root@FriendlyARM /]# free
total used free shared buffers
Mem: 61304 7352 53952 0 0
Swap: 0 0 0
Total: 61304 7352 53952
total used free shared buffers
Mem: 61304 7352 53952 0 0
Swap: 0 0 0
Total: 61304 7352 53952
可看出 mem 的使用情况
看内存额定值: cat /proc/meminfo
[root@FriendlyARM /]# cat /proc/meminfo
MemTotal: 61304 kB
MemFree: 53868 kB
Buffers: 0 kB
Cached: 3684 kB
SwapCached: 0 kB
Active: 1688 kB
Inactive: 2444 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 61304 kB
LowFree: 53868 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 1644 kB
Slab: 2516 kB
CommitLimit: 30652 kB
Committed_AS: 3992 kB
PageTables: 80 kB
VmallocTotal: 450560 kB
VmallocUsed: 4244 kB
VmallocChunk: 444408 kB
MemTotal: 61304 kB
MemFree: 53868 kB
Buffers: 0 kB
Cached: 3684 kB
SwapCached: 0 kB
Active: 1688 kB
Inactive: 2444 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 61304 kB
LowFree: 53868 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 1644 kB
Slab: 2516 kB
CommitLimit: 30652 kB
Committed_AS: 3992 kB
PageTables: 80 kB
VmallocTotal: 450560 kB
VmallocUsed: 4244 kB
VmallocChunk: 444408 kB
2. top: 查看运行中的CPU 和内存及进程情况
[root@FriendlyARM /]# top
Mem: 7436K used, 53868K free, 0K shrd, 0K buff, 3684K cached
Load average: 0.07 0.02 0.00 (Status: S=sleeping R=running, W=waiting)
PID USER STATUS RSS PPID %CPU %MEM COMMAND
318 root R 680 309 1.9 1.1 top
309 root S 800 1 0.0 1.2 sh
260 root S 700 1 0.0 1.1 inetd
272 root S 648 1 0.0 1.0 boa
1 root S 292 0 0.0 0.4 init
283 root S 280 1 0.0 0.4 led-player
231 root SW< 0 5 0.0 0.0 kmmcd
4 root SW< 0 1 0.0 0.0 khelper
200 root SW 0 1 0.0 0.0 mtdblockd
2 root SWN 0 1 0.0 0.0 ksoftirqd/0
3 root SW< 0 1 0.0 0.0 events/0
5 root SW< 0 1 0.0 0.0 kthread
23 root SW< 0 5 0.0 0.0 kblockd/0
25 root SW< 0 5 0.0 0.0 khubd
38 root SW 0 1 0.0 0.0 kapmd
72 root SW 0 5 0.0 0.0 pdflush
73 root SW 0 5 0.0 0.0 pdflush
75 root SW< 0 5 0.0 0.0 aio/0
74 root SW 0 1 0.0 0.0 kswapd0
149 root SW< 0 5 0.0 0.0 kseriod
Load average: 0.07 0.02 0.00 (Status: S=sleeping R=running, W=waiting)
PID USER STATUS RSS PPID %CPU %MEM COMMAND
318 root R 680 309 1.9 1.1 top
309 root S 800 1 0.0 1.2 sh
260 root S 700 1 0.0 1.1 inetd
272 root S 648 1 0.0 1.0 boa
1 root S 292 0 0.0 0.4 init
283 root S 280 1 0.0 0.4 led-player
231 root SW< 0 5 0.0 0.0 kmmcd
4 root SW< 0 1 0.0 0.0 khelper
200 root SW 0 1 0.0 0.0 mtdblockd
2 root SWN 0 1 0.0 0.0 ksoftirqd/0
3 root SW< 0 1 0.0 0.0 events/0
5 root SW< 0 1 0.0 0.0 kthread
23 root SW< 0 5 0.0 0.0 kblockd/0
25 root SW< 0 5 0.0 0.0 khubd
38 root SW 0 1 0.0 0.0 kapmd
72 root SW 0 5 0.0 0.0 pdflush
73 root SW 0 5 0.0 0.0 pdflush
75 root SW< 0 5 0.0 0.0 aio/0
74 root SW 0 1 0.0 0.0 kswapd0
149 root SW< 0 5 0.0 0.0 kseriod
也可以 top -d 1 //一秒钟刷新一次
3. df :查看各磁盘使用情况
[root@FriendlyARM /]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 63152 56372 6780 89% /
none 30652 0 30652 0% /tmp
none 30652 4 30648 0% /var
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 63152 56372 6780 89% /
none 30652 0 30652 0% /tmp
none 30652 4 30648 0% /var
也可以:
[root@FriendlyARM /]# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 61.7M 55.1M 6.6M 89% /
none 29.9M 0 29.9M 0% /tmp
none 29.9M 4.0k 29.9M 0% /var
Filesystem Size Used Available Use% Mounted on
/dev/root 61.7M 55.1M 6.6M 89% /
none 29.9M 0 29.9M 0% /tmp
none 29.9M 4.0k 29.9M 0% /var
我用的是一块K9F1208UOC 的nandflash(512Mb = 64MB) ,怎么会出来这么多分区? 不明白。。。