아이디어를 까먹을까봐 임시로 적어놓음...
구체적인 예를 들어서 재미나게 써줄예정이라는... -_-;;;;
This is one of the more commonly used files in the /proc/ directory, as it reports a large amount of valuable information about the systems RAM usage.
The following sample /proc/meminfo virtual file is from a system with 256 MB of RAM and 512 MB of swap space:
MemTotal: 255908 kB
MemFree: 69936 kB
Buffers: 15812 kB
Cached: 115124 kB
SwapCached: 0 kB
Active: 92700 kB
Inactive: 63792 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 255908 kB
LowFree: 69936 kB
SwapTotal: 524280 kB
SwapFree: 524280 kB
Dirty: 4 kB
Writeback: 0 kB
Mapped: 42236 kB
Slab: 25912 kB
Committed_AS: 118680 kB
PageTables: 1236 kB
VmallocTotal: 3874808 kB
VmallocUsed: 1416 kB
VmallocChunk: 3872908 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 4096 kB
Much of the information here is used by the free, top, and ps commands. In fact, the output of the free command is similar in appearance to the contents and structure of /proc/meminfo. But by looking directly at /proc/meminfo, more details are revealed:
MemTotal — Total amount of physical RAM, in kilobytes.
MemFree — The amount of physical RAM, in kilobytes, left unused by the system.
Buffers — The amount of physical RAM, in kilobytes, used for file buffers.
Cached — The amount of physical RAM, in kilobytes, used as cache memory.
SwapCached — The amount of swap, in kilobytes, used as cache memory.
Active — The total amount of buffer or page cache memory, in kilobytes, that is in active use. This is memory that has been recently used and is usually not reclaimed for other purposes.
Inactive — The total amount of buffer or page cache memory, in kilobytes, that are free and available. This is memory that has not been recently used and can be reclaimed for other purposes.
HighTotal and HighFree — The total and free amount of memory, in kilobytes, that is not directly mapped into kernel space. The HighTotal value can vary based on the type of kernel used.
LowTotal and LowFree — The total and free amount of memory, in kilobytes, that is directly mapped into kernel space. The LowTotal value can vary based on the type of kernel used.
SwapTotal — The total amount of swap available, in kilobytes.
SwapFree — The total amount of swap free, in kilobytes.
Dirty — The total amount of memory, in kilobytes, waiting to be written back to the disk.
Writeback — The total amount of memory, in kilobytes, actively being written back to the disk.
Mapped — The total amount of memory, in kilobytes, which have been used to map devices, files, or libraries using the mmap command.
Slab — The total amount of memory, in kilobytes, used by the kernel to cache data structures for its own use.
Committed_AS — The total amount of memory, in kilobytes, estimated to complete the workload. This value represents the worst case scenario value, and also includes swap memory.
PageTables — The total amount of memory, in kilobytes, dedicated to the lowest page table level.
VMallocTotal — The total amount of memory, in kilobytes, of total allocated virtual address space.
VMallocUsed — The total amount of memory, in kilobytes, of used virtual address space.
VMallocChunk — The largest contiguous block of memory, in kilobytes, of available virtual address space.
HugePages_Total — The total number of hugepages for the system. The number is derived by dividing Hugepagesize by the megabytes set aside for hugepages specified in /proc/sys/vm/hugetlb_pool. This statistic only appears on the x86, Itanium, and AMD64 architectures.
HugePages_Free — The total number of hugepages available for the system. This statistic only appears on the x86, Itanium, and AMD64 architectures.
Hugepagesize — The size for each hugepages unit in kilobytes. By default, the value is 4096 KB on uniprocessor kernels for 32 bit architectures. For SMP, hugemem kernels, and AMD64, the default is 2048 KB. For Itanium architectures, the default is 262144 KB. This statistic only appears on the x86, Itanium, and AMD64 architectures.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
19 | 아파치(httpd) ServerTokens 설정 | 위대한유저 | 2014.03.16 | 8799 |
18 | Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP | 위대한유저 | 2014.01.01 | 14353 |
17 | linux / proftpd 에서 대소문자 구분없는 환경 만들기 | 위대한유저 | 2013.12.14 | 18719 |
16 | mysql 데이터베이스 용량 확인하기 | 위대한유저 | 2013.08.22 | 16395 |
15 | qmail 로그 분석 페이지 v1.0 | 위대한유저 | 2013.08.20 | 30670 |
14 | XE 스팸성 엮인글 관리 | 위대한유저 | 2013.06.17 | 80713 |
13 | piwik analytics 사용시 이메일보고서의 그래프 내용중 한글이 깨지는문제 | 위대한유저 | 2013.05.23 | 67766 |
12 | debian repository (old version) | 위대한유저 | 2013.04.11 | 57266 |
11 | linux 에서 cisco console 연결하기 | 위대한유저 | 2013.03.28 | 46445 |
10 | XE 업데이트(및 기타상황)에서 로그인이 되지 않을때 | 위대한유저 | 2011.10.06 | 82725 |
9 | 구버전 MySQL(to 4.0) 에서 바이너리 로그 정리하기 | 위대한유저 | 2011.07.02 | 104504 |
8 | 제로보드4 에서 한글파일 다운로드가 되지 않을때 | 위대한유저 | 2010.01.24 | 79217 |
7 | telnet 커맨드를 이용한 메일발송 테스트 | 위대한유저 | 2009.11.29 | 121183 |
6 | 데비안(debian)계열에서 apt-get 사용하다 GPG 에러 발생시 | 위대한유저 | 2009.11.10 | 111872 |
» | /proc/meminfo 의 고찰! | 위대한유저 | 2009.09.16 | 190533 |