synchronization
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2025-08-25 15:57:40 +08:00
commit cee91802b3
106 changed files with 9124 additions and 0 deletions

26
Docs/Linux清理缓存.md Normal file
View File

@@ -0,0 +1,26 @@
> 本文作者:丁辉
# Linux清理缓存
Linux 系统有三种选项来清除缓存而不需要中断任何进程或服务。
> 译注Cache译作“缓存”指 CPU 和内存之间高速缓存。Buffer译作“缓冲区”指在写入磁盘前的存储再内存中的内容。在本文中Buffer 和 Cache 有时候会通指。)
- 仅清除页面缓存PageCache
```bash
sync; echo 1 > /proc/sys/vm/drop_caches
```
- 清除目录项和inode
```bash
sync; echo 2 > /proc/sys/vm/drop_caches
```
- 清除页面缓存目录项和inode
```bash
sync; echo 3 > /proc/sys/vm/drop_caches
```