Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux memory Cache Analysis     - Swift string common method (Programming)

- How to statistical data of various size Redis (Database)

- Installation of Python2.7.10 under CentOS 6.4 (Linux)

- Ubuntu modify DNS restart loss problem (Linux)

- Linux Getting Started tutorial: hard disk partition and to deal with traps (Linux)

- Wildcards and special symbols usage comments under Linux (Linux)

- shell script: a key to install LAMP, LNMP script (Server)

- Is Linux the most secure operating system (Linux)

- Using FTPClient to upload and download files in Java (Programming)

- Linux non-root user uses less than 1024 ports (Linux)

- MongoDB 3.0 New Features (Database)

- Modifying the system registry protection server security (Linux)

- Camouflage Nginx Web server version to prevent invasion (Linux)

- ogg start being given libnnz11.so: can not open shared object file (Database)

- Source encountered problems and solutions when installing SaltStack (Server)

- Linux Command-line MySQL summary (Database)

- Fedora 23 How to install LAMP server (Server)

- RHEL / CentOS / Fedora Install Nagios 4.0.1 (Linux)

- Install the free open source financial software GnuCash 2.6.6 under Ubuntu (Linux)

- Zabbix Agent for Linux Installation and Configuration (Server)

 
         
  Linux memory Cache Analysis
     
  Add Date : 2017-01-08      
         
       
         
  Background
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:
https://code.google.com/p/linux-ftools/

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
./configure
make && make install

See Cache command (only for valid files in the current directory)
linux-fincore --pages = false --summarize --only-cached *
Export
[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
     
         
       
         
  More:      
 
- Use libpq under Ubuntu 14.04 (Linux)
- Bash Getopts - let your script supports command line parameters (Linux)
- Spring + MyBatis Multi data source switching (Database)
- How to install Bugzilla 4.4 on Ubuntu / CentOS 6.x (Linux)
- jobs command example (Linux)
- apt-get and apt-cache show command examples (Linux)
- Oracle EBS R12 for Linux installation (Database)
- Ubuntu install code editor Sublime Text 3 (Linux)
- How to Install Focuswriter 1.4.5 (Linux)
- Red Hat Linux security settings document (Linux)
- How to run Kali Linux 2.0 in Docker container (Linux)
- CentOS Nginx achieve 3 virtual machine load balancing (Server)
- RHEL6.4 x86_64 build SVN service (Server)
- CentOS 6.3 compile and install LNMP environment (Server)
- Use SVN to automatically deploy code under Apache (Server)
- shell script: a key to install LAMP, LNMP script (Server)
- Red Hat Enterprise Linux 6.4 Configuring VNC Remote Desktop login access (Linux)
- Docker build private warehouse (Server)
- Linux virtual machine how to access the Internet in a virtual machine when using NAT mode (Linux)
- ssh using scp: / directory: Permission denied (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.