399 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

synchronous_commit设置为off时,持续给主机进行插入事务,事务间隔性阻塞1-2s

已取消
缺陷
创建于  
2021-05-14 16:41

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

  • bug

  • feature

What happened:
synchronous_commit设置为off时,持续给主机进行插入事务,事务间隔性阻塞1-2s

What you expected to happen:
synchronous_commit设置为off时,持续给主机进行插入事务,主机事务不阻塞

How to reproduce it (as minimally and precisely as possible):
1、设置synchronous_commit参数为0ff;2、持续插入事务

Anything else we need to know?:

Environment:

  • Version:330补丁包
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

评论 (3)

裴琳倩 创建了缺陷
裴琳倩 关联仓库设置为openGauss/openGauss-server
展开全部操作日志

synchronous_commit设成off后,数据库调用write函数,将数据写到系统的缓存中,不会直接写到磁盘中,在某一时刻系统才会调用fsync函数将缓存里的数据写到磁盘,这个时候如果fsync和write操作同一个文件句柄时,write会阻塞。synchronous_commit设成大于off时,数据库会自己去调用fsync。

this issue is assigned to: @chenxiaobin.

opengauss-bot 负责人设置为chenxiaobin
chenxiaobin 任务状态待办的 修改为已完成
裴琳倩 任务状态已完成 修改为已取消
裴琳倩 优先级设置为次要

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5622128 opengauss bot 1581905080
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server

搜索帮助