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.