Skip to content

Commit

Permalink
fix(lab/7): typo (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-y authored Jun 3, 2024
1 parent e55f9d1 commit 84ed293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/labs/0x07/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ root 1 0.0 0.3 167780 12876 ? Ss Apr22 1:57 /sbin/init
mysql 1820 0.1 10.5 1750680 365696 ? Sl Apr22 75:39 /url/bin/mysqld
```

其中 VSE 和 RSS 就对应了上述的 `VmSize``VmRSS``%MEM` 表示了 RSS (Resident Set Size) 占总物理内存的百分比。
其中 VSZ 和 RSS 就对应了上述的 `VmSize``VmRSS``%MEM` 表示了 RSS (Resident Set Size) 占总物理内存的百分比。

总之,在 Linux 中进程的虚拟内存大小会比实际使用的物理内存大小要大很多,进程大部分的虚拟内存空间(尤其是文件映射部分)通常被标记为不存在,只有在访问时才会被加载到物理内存中。结合动态链接库的共享,Linux 可以很好得将物理内存物尽其用
总之,在 Linux 中进程的虚拟内存大小会比实际使用的物理内存大小要大很多,进程大部分的虚拟内存空间(尤其是文件映射部分)通常被标记为不存在,只有在访问时才会被加载到物理内存中。结合动态链接库的共享,Linux 可以很好地将物理内存物尽其用

### 内存统计的实现

Expand Down

0 comments on commit 84ed293

Please sign in to comment.