Repository navigation
memusage v0.1.0
This is the first release of memusage, a command-line tool that displays detailed information about processes on a Linux system.
Download RPM:
https://software.opensuse.org//download.html?project=home%3Amariosergiosl%3Amemusage&package=memusage
Features:
Shows total system memory, free memory, and used memory.
Displays process information in a hierarchical tree format.
Calculates the total memory usage of a process and its children.
Shows open files for each process.
Displays network connections for each process, including local and remote addresses, status, and sent/received bytes.
Shows I/O activity for each process, including read and write bytes.
Color-coded output based on process priority.
Installation:
See the INSTALL.md file for detailed installation instructions.
Usage:
Bash
memusage
Use code with caution.
Example output:
Total system memory: 16384.0 MB
Free system memory: 8780.48 MB
Used system memory: 6823.52 MB
Total memory usage of the process tree: 1155.25 MB
1 - systemd (14.53 MB)
- /proc/1/mountinfo
- /proc/swaps
- Read bytes: 83783168
- Write bytes: 9568256
- 11 - systemd-journald (10.50 MB)
- /proc/sys/kernel/hostname
- /run/log/journal/24a550029dff4a95994d4266dd0763e7/system.journal
- Read bytes: 225280
- Write bytes: 0
- 13 - systemd-udevd (12.88 MB)
- /etc/udev/hwdb.bin
- Read bytes: 26705408
- Write bytes: 0
10 - (sd-pam) (5.91 MB)
- Read bytes: 0
- Write bytes: 0
Changes in this release:
Initial release.
Known issues:
None.
Future work:
Add more features, such as filtering and sorting processes.
Improve the output format and add more information.
Package the script for other Linux distributions.
Contributing:
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or bug reports.
License:
This project is licensed under the 1 GNU General Public License v3.0 or later. See the COPYING file for details.