From 1b4e3703856d5d6a6294f40a6f6ddca7feb07cb1 Mon Sep 17 00:00:00 2001
From: yanfeizhang <54074852@qq.com>
Date: Wed, 22 Feb 2023 09:14:28 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E6=96=B0=E6=96=87?=
=?UTF-8?q?=E4=B9=8BCPU=E5=88=A9=E7=94=A8=E7=8E=87=E8=8E=B7=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 16 +++++++++-------
tests/cpu/index.md | 3 ++-
tests/cpu/test07/cpu_stat.sh | 1 +
3 files changed, 12 insertions(+), 8 deletions(-)
create mode 100644 tests/cpu/test07/cpu_stat.sh
diff --git a/README.md b/README.md
index 0dbb65f..f728f83 100755
--- a/README.md
+++ b/README.md
@@ -5,6 +5,13 @@
本 repo 持续更新ing...
+---
+**新文置顶:最近写的都是CPU、进程方向的**
+- [Linux 中 CPU 利用率是如何算出来的?](https://mp.weixin.qq.com/s/40KWGKNBoa35s533YGWYIQ)
+- [从进程栈内存底层原理到Segmentation fault报错](https://mp.weixin.qq.com/s/pTP7ELOm4-JsAl1o_nyS-Q)
+- [Linux 中的负载高低和 CPU 开销并不完全对应](https://mp.weixin.qq.com/s/1Pl4tT_Nq-fEZrtRpILiig)
+- [Docker容器里进程的 pid 是如何申请出来的?](https://mp.weixin.qq.com/s/LDu6s1eZw6_xEwfa6pMM-A)
+
---
大家好,飞哥在博客文章的基础上出版了一本书,名字叫做《深入理解Linux网络》。该书市场接受度非常的高,在首发当天就斩获了京东科技类图书的第一名,几天就将首印卖断了货。
@@ -16,13 +23,6 @@
另外大家也可以加飞哥微信(zhangyanfei748527)进读者交流群。
----
-**新文置顶:最近写的都是CPU、进程方向的**
-- [从进程栈内存底层原理到Segmentation fault报错](https://mp.weixin.qq.com/s/pTP7ELOm4-JsAl1o_nyS-Q) (:cn:新)
-- [Linux 中的负载高低和 CPU 开销并不完全对应](https://mp.weixin.qq.com/s/1Pl4tT_Nq-fEZrtRpILiig) (:cn:新)
-- [Docker容器里进程的 pid 是如何申请出来的?](https://mp.weixin.qq.com/s/LDu6s1eZw6_xEwfa6pMM-A) (:cn:新)
-
-
## 一、网络篇
**1.1 内核收发包原理**
- [🔥图解Linux网络包接收过程](https://mp.weixin.qq.com/s/GoYDsfy9m0wRoXi_NCfCmg)
@@ -137,6 +137,8 @@
**4.4 CPU性能优化**
- [一个likely的简单使用,背后却是对CPU工作原理的深刻理解](https://mp.weixin.qq.com/s/2YJVAEanfjSYgmZh8GRNrg) (:cn:新)
+- [Linux 中 CPU 利用率是如何算出来的?](https://mp.weixin.qq.com/s/40KWGKNBoa35s533YGWYIQ) (:cn:新)
+
**4.5 进程管理**
- [Linux进程是如何创建出来的?](https://mp.weixin.qq.com/s/ftrSkVvOr6s5t0h4oq4I2w) (:cn:新)
diff --git a/tests/cpu/index.md b/tests/cpu/index.md
index 02d1537..79c5918 100644
--- a/tests/cpu/index.md
+++ b/tests/cpu/index.md
@@ -1,2 +1,3 @@
- [likely 和 unlikely 汇编结果对比](tests/cpu/test01)
-- [cpu 系统利用率的计算过程](tests/cpu/test06)
\ No newline at end of file
+- [物理机 cpu 系统利用率的计算过程](tests/cpu/test06)
+- [容器 cpu 系统利用率的计算过程](tests/cpu/test07)
\ No newline at end of file
diff --git a/tests/cpu/test07/cpu_stat.sh b/tests/cpu/test07/cpu_stat.sh
new file mode 100644
index 0000000..d4b5c57
--- /dev/null
+++ b/tests/cpu/test07/cpu_stat.sh
@@ -0,0 +1 @@
+cpu_stat.sh
\ No newline at end of file