public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Intermittent zeroed pages with AIO+DIO+XFS
@ 2017-08-03 14:52 Avi Kivity
  2017-08-03 22:09 ` Dave Chinner
  0 siblings, 1 reply; 7+ messages in thread
From: Avi Kivity @ 2017-08-03 14:52 UTC (permalink / raw)
  To: linux-xfs; +Cc: Glauber Costa, Raphael Carvalho

Hello,


I have an application that uses AIO+DIO to write data to a file on XFS. 
The writes use 128k buffers. Very rarely, I see aligned 4k blocks within 
the file that are zeroed. The blocks are not aligned to 128k boundary, 
just 4k. The buffers are allocated in anonymous memory, which is usually 
using transparent hugepages.  The files are fully allocated, not sparse 
(checked post-mortem).


The writes are concurrent and adjacent. To avoid serialization, we 
ftruncate() the file to a larger size, then ftruncate() it back when we 
know its final size.


Does this trigger anything in anyone's mind?




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-04  4:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-03 14:52 Intermittent zeroed pages with AIO+DIO+XFS Avi Kivity
2017-08-03 22:09 ` Dave Chinner
2017-08-04  2:40   ` Avi Kivity
2017-08-04  2:50     ` Glauber Costa
2017-08-04  3:14     ` Dave Chinner
2017-08-04  3:36       ` Avi Kivity
2017-08-04  4:04         ` Raphael S. Carvalho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox