# Summer2021-No.41 开发一个系统内存使用情况统计工具 **Repository Path**: summer-competition/summer2021-41 ## Basic Information - **Project Name**: Summer2021-No.41 开发一个系统内存使用情况统计工具 - **Description**: https://gitee.com/openeuler-competition/summer-2021/issues/I3EG0G - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-07-05 - **Last Updated**: 2025-05-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Summer2021-No.41 开发一个系统内存使用情况统计工具 #### Description https://gitee.com/openeuler-competition/summer-2021/issues/I3EG0G #### Software Architecture A software especially for memory usage information collection. #### Installation 1. `sudo apt install libprocps-dev` install `libprocps` develop library, and check the library path in the `CMakeLists.txt`. 2. Clone this repository: `git clone git@gitee.com:openeuler-competition/summer2021-41.git`. 3. Then `cd summer2021-41`. 4. Install `cmake` tools by `sudo apt-get install cmake`, and `mkdir build && cd build` for the cmake temporary file build. 5. `cmake ..` uses `CMakeLists.txt` for generating `make` file. 6. `make memo` gets the executable file. #### Usage + Usage: memo [-g] [-k] [-u] [-r] [-v] [-p] [-t ] [-s ] + -g to show global memory usage info like free + -k to show kernel memory usage info + -u to show user memory usage info + -p to show processes memory usage info, default top 10, from big to small + -t to show topN processes memory usage info + -r reverse sort memory use from small to big + -v sort processes by VSS + -s to show special processes memory usage info split by ',' + -n show numa stat + -m show numa memory usage #### Contribution 1. Fork the repository 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request