[MDEV-3789] LP:470590 - Multiple fsync()s when sync_binlog=N (>0) Created: 2009-11-02 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Arjen Lentz (Inactive) | Assignee: | Kristian Nielsen |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Depending on the setup and the choice of speed vs integrity in case of a server crash, configs need sync_binlog=1. Can someone (Monty?) please fix this, and make the logic such that we get only a single fsync() per commit? Thanks! |
| Comments |
| Comment by Sergei Petrunia [ 2009-11-24 ] |
|
Re: Multiple fsync()s when sync_binlog=N (>0) Could you please point at the offending fsync() calls or provide some evidence that there are multiple syncs being done for one transaction? (i.e. what has led you to suspect that there are more fsync calls done when necessary?) |
| Comment by Arjen Lentz (Inactive) [ 2009-12-03 ] |
|
Re: [Bug 470590] Re: Multiple fsync()s when sync_binlog=N (>0) On 24/11/2009, at 7:24 PM, Sergey Petrunia wrote: Hearsay from people with a clue. Hadn't browsed the code for this my_sync() gets called from sql/log.cc in several places, inside And the binlog index should really also be part of that, to be Similarly, the relay log and relay index should be synced at the same I hope this provides you with sufficient detail to address the problem. Cheers, |
| Comment by Hakan Küçükyılmaz (Inactive) [ 2009-12-08 ] |
|
Re: Multiple fsync()s when sync_binlog=N (>0) |
| Comment by Kristian Nielsen [ 2011-09-05 ] |
|
Re: Multiple fsync()s when sync_binlog=N (>0) There are several worklogs that describe ideas for improving this. For example: http://askmonty.org/worklog/Server-RawIdeaBin/?tid=164 |
| Comment by Rasmus Johansson (Inactive) [ 2011-09-05 ] |
|
Launchpad bug id: 470590 |