Skip to content

Commit 6e6fed0

Browse files
committed
process file
- Clarifies that real-time system information is fed to monitoring tools like `htop` - Adds a note about the fast retrieval speed of the `/proc` filesystem
1 parent 465f7a1 commit 6e6fed0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

content/OS/Process/Process File.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ Author Profile:
66
tags:
77
- OS
88
Creation Date: 2025-05-18, 20:26
9-
Last Date: 2025-05-18T21:06:31+08:00
9+
Last Date: 2025-05-18T21:14:58+08:00
1010
References:
1111
draft:
1212
description: Understand how Linux exposes process details through the /proc virtual filesystem. Learn about key files like cmdline, environ, fd, maps, status, limits, and io, vital for performance monitoring, debugging latency, and analyzing resource usage in critical applications.
1313
---
1414
## Abstract
1515
---
16-
![[process_dir.png]]
16+
![[process_dir.png|500]]
1717

1818
- For [[Linux Kernel|Linux]], we can view the [[Process (进程)|process]] info in the form of [[File|file]] under `/proc/PID` in human-readable text format
1919
- It allows us to view and modify parameters, automate with shell scripts
20-
- We also feed these real-time system information to monitoring tools without requiring special APIs
20+
- We also feed these real-time system information to monitoring tools (like `htop`) without requiring special APIs
2121

2222
>[!important] Key files
2323
> - `cmdline`: Contains the command line arguments used to start the process
@@ -33,6 +33,9 @@ description: Understand how Linux exposes process details through the /proc virt
3333
> - Resource usage of critical trading applications
3434
> - Debugging latency issues by examining process states
3535
36+
>[!success] Fast speed
37+
> `/proc` is memory-backed, so info retrieval is going to be very fast.
38+
3639
## References
3740
---
38-
- [The Linux Programming Interface](https://man7.org/tlpi/)
41+
- [The Linux Programming Interface, Chapter 2, Section 19](https://man7.org/tlpi/)

0 commit comments

Comments
 (0)