Ef561 uClinux memory View

Source: Internet
Author: User

After uClinux is started: (Virtual Memory (physical memory) does not exist)

 

Root: ~>Busybox free
Total used free shared Buffers
Mem: 54332 16184 38148 0 0

Memory actually usable =Free + Shared + buffers, which is inaccurate due to the lack of cached.

 

 

Root:/proc>Cat meminfo

Memtotal: 54332 KB
Memfree: 38160 KB
Buffers: 0 KB
Cached: 11732 KB
Swapcached: 0 KB
Active: 2096 KB
Inactive: 9628 KB
Swaptotal: 0 KB
Swapfree: 0 KB
Dirty: 0 KB
Writeback: 0 KB
Anonpages: 0 KB
Mapped: 0 KB
Slab: 1236 KB
Sreclaimable: 752 KB
Sunreclaim: 484 KB
Pagetables: 0 KB
Nfs_unstable: 0 KB
Bounce: 0 KB
Commitlimit: 27164 KB
Committed_as: 0 KB
Vmalloctotal: 0 KB
Vmallocused: 0 KB
Vmallocchunk: 0 KB

 

The actual available memory isMemfree + cached

 

Memory usage of processes:

Root:/proc/99>Cat maps
00250000-0025b000 R-xs 00000000 01 417/lib/libgcc_s.so.1
00280000-002a0000 rwxp 00000000 0
002a0000-002a5000 RW-P 00000000 0
00700000-00750000 R-xs 00000000 145/bin/busybox
007a0000-007ab000 RW-P 0004f000 00:01 145/bin/busybox
007be000-007bf000 RW-P 00000000 00:00 0
00d28000-00d2f000 R-xs 00000000 419/lib/ld-uClibc-0.9.29.so
00d40000-00d78000 R-xs 00000000 378/lib/libuClibc-0.9.29.so
00d9c000-00d9e000 RW-P 00006000 419/lib/ld-uClibc-0.9.29.so
00dd9000-00dda000 RW-P 00000000 00:00 0
00dde000-00de0000 RW-P 00000000 0

For details, see "embedded Linux memory usage and performance optimization.

 

 

 

 

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.