fsync?

53 views
Skip to first unread message

Carl Hörberg

unread,
Jul 11, 2019, 1:02:52 PM7/11/19
to rabbitmq-users
Hi,

running either strace or perf trace i can't see that rabbitmq is issuing any fsync or fdatasync syscalls, even when using publish-confirm (persistent msgs, durable queue). 

The publish confirm page indicated that it should be performed: https://www.rabbitmq.com/confirms.html#publisher-confirms-latency

`sudo perf trace -sp $(ps -C beam.smp --sort cputime -o pid= | tail -1)`

Karl Nilsson

unread,
Jul 11, 2019, 1:13:47 PM7/11/19
to rabbitm...@googlegroups.com
The management ui collects fsync rates per node. What do they say?

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/55e00af4-6997-4963-8379-dfeafae81c42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Karl Nilsson

Carl Hörberg

unread,
Jul 11, 2019, 1:28:16 PM7/11/19
to rabbitmq-users
Ah! Didn't run trace long enough :)

Are consumer ack:s ever fsynced to disk?

On Thursday, July 11, 2019 at 7:13:47 PM UTC+2, kjnilsson wrote:
The management ui collects fsync rates per node. What do they say?
On Thu, 11 Jul 2019 at 18:02, Carl Hörberg <ca...@cloudamqp.com> wrote:
Hi,

running either strace or perf trace i can't see that rabbitmq is issuing any fsync or fdatasync syscalls, even when using publish-confirm (persistent msgs, durable queue). 

The publish confirm page indicated that it should be performed: https://www.rabbitmq.com/confirms.html#publisher-confirms-latency

`sudo perf trace -sp $(ps -C beam.smp --sort cputime -o pid= | tail -1)`

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/55e00af4-6997-4963-8379-dfeafae81c42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Karl Nilsson

Karl Nilsson

unread,
Jul 11, 2019, 1:35:07 PM7/11/19
to rabbitm...@googlegroups.com
Consumer acks are completely transient. It could be that messages that are fully consumed before the fsync interval negate the need for the fsync. I’d have to check the message store code for that tho. 

Side note: all queue operations will be persisted on disk in the upcoming quorum queue type. 

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Karl Nilsson
Reply all
Reply to author
Forward
0 new messages