Meminfo,cpuinfo in Android

Source: Internet
Author: User

1. Introduction:
Friends familiar with Linux know that, in Linux, Meminfo,cpuinfo can be used as a command to display memory information and CPU information, in fact, the two commands correspond to/proc/meminfo and/proc/cpuinfo two files respectively.
Since Android is based on Linux kernel, there are also these two files, but in Android, there is no corresponding command, but we can still display the contents of these two files through the cat command:
Cat/proc/meminfo
Cat/proc/cpuinfo

2. Example:

[Email protected]:/$Cat/proc/meminfo
Cat/proc/meminfo
memtotal:1833364 KB
memfree:95672 KB
buffers:81136 KB
cached:907164 KB
swapcached:0 KB
active:1192372 KB
inactive:334392 KB
Active (anon): 539100 KB
Inactive (anon): 1488 KB
Active (file): 653272 KB
Inactive (file): 332904 KB
unevictable:596 KB
mlocked:0 KB
hightotal:1293312 KB
highfree:13104 KB
lowtotal:540052 KB
lowfree:82568 KB
swaptotal:0 KB
swapfree:0 KB
Dirty:16 KB
writeback:0 KB
anonpages:539044 KB
mapped:129468 KB
shmem:1544 KB
slab:47076 KB
sreclaimable:22764 KB
sunreclaim:24312 KB
kernelstack:13040 KB
pagetables:24436 KB
nfs_unstable:0 KB
bounce:0 KB
writebacktmp:0 KB
commitlimit:916680 KB
committed_as:18306552 KB
vmalloctotal:172032 KB
vmallocused:107076 KB
vmallocchunk:6148 KB


[Email protected]:/$Cat/proc/cpuinfo
Cat/proc/cpuinfo
Processor:armv7 Processor Rev 0 (V7L)
processor:0
bogomips:1592.52


FEATURES:SWP half thumb fastmult vfp edsp neon Vfpv3 TLS
CPU implementer:0x41
CPU Architecture:7
CPU variant:0x3
CPU part:0xc09
CPU revision:0


Chip revision:0020
hardware:smdk4x12
revision:000b
serial:396a312d4df7f482

3. Extension:

Similarly, we can use a similar approach to understand the Android file system in order to become more familiar with the Android system.


Meminfo,cpuinfo in Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.