小编fre*_*dge的帖子

生成大量脏页会阻塞同步写入

我们有进程在后台写入大文件。我们希望这些对其他流程的影响最小。

这是在 SLES11 SP4 上实现的测试。服务器拥有大量内存,可以创建 4GB 的脏页。

> dd if=/dev/zero of=todel bs=1048576 count=4096
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 3.72657 s, 1.2 GB/s
> dd if=/dev/zero of=zer oflag=sync bs=512 count=1  
1+0 records in
1+0 records out
512 bytes (512 B) copied, 16.6997 s, 0.0 kB/s

real    0m16.701s
user    0m0.000s
sys     0m0.000s
> grep Dirty /proc/meminfo
Dirty:           4199704 kB
Run Code Online (Sandbox Code Playgroud)

这是我到目前为止的调查:

  • SLES11 SP4 (3.0.101-63)
  • 输入 ext3(rw、nosuid、nodev、noatime)
  • 截止日期调度程序
  • 当时超过 120GB 的可回收内存
  • dirty_ratio 设置为 40%,dirty_background_ratio 设置为 10%,30 秒到期,5 秒回写 …

linux performance filesystems memory sles11

5
推荐指数
1
解决办法
2335
查看次数

标签 统计

filesystems ×1

linux ×1

memory ×1

performance ×1

sles11 ×1