View Linux information

Source: Internet
Author: User
Linux & amp; reg; DebuggingandPerformanceTuning: TipsandTechniques chapter5/proc directory: Process-SpecificSubdirectoriesEachprocesssubdirectoryhasthefollowingentries: Entry

 

Linux®Debugging and Performance Tuning: Tips and Techniques chapter 5

 

/Proc directory:

 

Process-Specific Subdirectories

Each process subdirectory has the following entries:

 

Entry

 

Description

 

Auxv

 

ELF auxiliary vector

 

Cmdline

 

Command-line arguments

 

Cwd

 

Link to the current working directory

 

Environ

 

Shows all environment variables known to the process

 

Exe

 

Link to the executable of this process

 

Fd

 

Entries of all open files

 

Maps

 

Memory maps for executables and libraries

 

Mem

 

Memory for this process

 

Mounts

 

Mounted file systems

 

Root

 

Link to the process's root directory

 

Stat

 

Process status in readable format

 

Statm

 

Process memory information

 

Status

 

Process status

 

Wchan

 

Process predecode for a process's wait channel (wchan)

 

For example:

 

View the pattern of the core file,

 

View plain

/Home/a/j/nomad2: cat/proc/sys/kernel/core_pattern

Core

View the maximum number of threads in the system,

 

View plain

/Home/a/j/nomad2: pwd

/Proc/sys/kernel

/Home/a/j/nomad2: cat threads-max

139264

 

The system parameters in/proc can be changed:

Some of the/proc file system parameters can be tuned. if tuning has been done on a running kernel, make sure that each file that was tuned has the new parameter set by adding it to the distribution/etc/sysctl. conf file.

Related Article

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.