Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux memory Cache Analysis     - CentOS 7 source code to compile and install PHP5.6 Nginx1.7.9 and MySQL (LNMP build environment) (Server)

- MySQL Parameter Tuning Best Practices (Database)

- Eclipse configuration GTK (Linux)

- iOS persistence of data archiving NSKeyedArchiver (Programming)

- ethtool implementation framework and application in Linux (Linux)

- C # compiler to achieve functional use in the runtime (Programming)

- DDOS Attacks and Prevention (Linux)

- Linux Firewall Builder shorewall (Linux)

- Linux system security (Linux)

- About Leetcode on Binary Tree Algorithm summary (Programming)

- ElasticSearch basic usage and cluster structures (Server)

- Iptables on the request URL for IP access control (Linux)

- SELinux security permissions HTTP + PHP service changes (Server)

- Use OpenSSL to generate a certificate (Linux)

- Linux vi command list (Linux)

- To install MySQL 5.6 binary packages under CentOS 6.4 64bit (Database)

- Import and export myloader accelerate mydumper (Database)

- Spring use Cache (Programming)

- About phpwind 5.01-5.3 0day analysis of the article (Linux)

- MySQL composite partition (Database)

  Linux memory Cache Analysis
  Add Date : 2017-01-08      
In doing performance testing with top command to discover memory cache to around 4G, then it is curious cache something. Then follow the analysis, the pressure measured during the log file is too large, resulting in the cache is the log.

To verify this result, first casually vi a large file, and then see whether the change cache.
Then look for the tools to verify whether the file under that document.
It concluded: linux will cache edited files.

download link:

The official source default, newline is windows, and downloaded the source code, the need to modify the line breaks, or the installation error. Need to replace their own linux-ftools_modify.zip you have completed the replacement line breaks.

Modify permission first before packaging to increase the script execution permissions
chmod 755 -R *

Packing instruction
make && make install

See Cache command (only for valid files in the current directory)
linux-fincore --pages = false --summarize --only-cached *
[Root @ dev-suning tmp] # linux-fincore --pages = false --summarize --only-cached *
filename size total_pages min_cached page cached_pages cached_size cached_perc
-------- ---- ----------- --------------- ------------ ----------- -----------
Could not mmap file: linux-ftools: No such device
Could not mmap file: linux-ftools-new: No such device
Could not mmap file: redis-2.8.19: No such device
wildfly-8.1.0.Final.tar.gz 115,995,207 28,320 0 28,320 115,998,720 100.00
total cached size: 115,998,720

The following is a screenshot

At the beginning, cache only 40M

With the vi editor, open the wildfly (about 110M)

With a cache analysis tool to see if the file is
- Some MySQL interview questions (Database)
- To delete the directory and all specified files under the Mac (Linux)
- socket busy poll of Linux kernel 3.11 to avoid sleep switch (Linux)
- Use netcat [nc] command on Linux and Unix port scan (Server)
- OpenSIPS offline messaging feature set (Server)
- Database start listening TNS-12537, TNS-12560 error (Database)
- Ubuntu Thunderbird 24.4.0 (Linux)
- Linux development environment to build and use the directory structure and file --Linux (Linux)
- MongoDB upgrade from 2.4.9 to 2.6.0 and PHP record of mongo extension upgrade from 1.4.5 to 1.5.1 (Database)
- Single list summarizes the basic operation (Programming)
- Use the top command (Linux)
- TOAST function in PostgreSQL (Database)
- Use Elasticsearch + Logstash + Kibana set up centralized log Practice Analysis Platform (Server)
- CentOS installation pycurl (Linux)
- The basic principle of pointers in C ++ (Programming)
- Linux System Getting Started Learning: Linux in the last command (Linux)
- Ubuntu install Lighttpd + Mono support .net (Linux)
- RPM package creation Getting Started (Linux)
- There are three ways to run a Linux operating system from a USB stick (Linux)
- STL in the list of erase () method (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.