代码拉取完成,页面将自动刷新
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:
uname -a
):synchronous_commit设成off后,数据库调用write函数,将数据写到系统的缓存中,不会直接写到磁盘中,在某一时刻系统才会调用fsync函数将缓存里的数据写到磁盘,这个时候如果fsync和write操作同一个文件句柄时,write会阻塞。synchronous_commit设成大于off时,数据库会自己去调用fsync。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
/assign
this issue is assigned to: @chenxiaobin.
登录 后才可以发表评论