Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

procfs #89

Open
ajhsu opened this issue Jun 5, 2019 · 0 comments
Open

procfs #89

ajhsu opened this issue Jun 5, 2019 · 0 comments

Comments

@ajhsu
Copy link
Owner

ajhsu commented Jun 5, 2019

TLDR

The proc filesystem is a pseudo-filesystem which provides an interface to kernel data structures.

TLDR Cont.

The proc filesystem (procfs) is a special filesystem in Unix-like operating systems that presents information about processes and other system information in a hierarchical file-like structure, providing a more convenient and standardized method for dynamically accessing process data held in the kernel than traditional tracing methods or direct access to kernel memory.

Fields

Memory

  • /proc/<pid>/stat: Status information about the process.
  • /proc/<pid>/statm: Provides information about memory usage, measured in pages.
  • /proc/<pid>/maps: A file containing the currently mapped memory regions and their access permissions.
  • /proc/<pid>/smaps: Shows memory consumption for each of the process's mappings.
  • /proc/<pid>/status: Provides much of the information in /proc/<pid>/stat and /proc/<pid>/statm in a format that's easier for humans to parse.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant