* [PATCH] man/statx: Add STATX_ATTR_DAX
@ 2020-05-05 0:20 ira.weiny
2020-09-28 16:42 ` Ira Weiny
0 siblings, 1 reply; 4+ messages in thread
From: ira.weiny @ 2020-05-05 0:20 UTC (permalink / raw)
To: mtk.manpages
Cc: Ira Weiny, linux-man, linux-fsdevel, linux-api, linux-xfs,
linux-kernel, linux-ext4
From: Ira Weiny <ira.weiny@intel.com>
Linux 5.8 is slated to have STATX_ATTR_DAX support.
https://lore.kernel.org/lkml/20200428002142.404144-4-ira.weiny@intel.com/
https://lore.kernel.org/lkml/20200504161352.GA13783@magnolia/
Add the text to the statx man page.
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
---
man2/statx.2 | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/man2/statx.2 b/man2/statx.2
index 2e90f07dbdbc..14c4ab78e7bd 100644
--- a/man2/statx.2
+++ b/man2/statx.2
@@ -468,6 +468,30 @@ The file has fs-verity enabled.
It cannot be written to, and all reads from it will be verified
against a cryptographic hash that covers the
entire file (e.g., via a Merkle tree).
+.TP
+.BR STATX_ATTR_DAX (since Linux 5.8)
+The file is in the DAX (cpu direct access) state. DAX state attempts to
+minimize software cache effects for both I/O and memory mappings of this file.
+It requires a file system which has been configured to support DAX.
+.PP
+DAX generally assumes all accesses are via cpu load / store instructions which
+can minimize overhead for small accesses, but may adversely affect cpu
+utilization for large transfers.
+.PP
+File I/O is done directly to/from user-space buffers and memory mapped I/O may
+be performed with direct memory mappings that bypass kernel page cache.
+.PP
+While the DAX property tends to result in data being transferred synchronously,
+it does not give the same guarantees of O_SYNC where data and the necessary
+metadata are transferred together.
+.PP
+A DAX file may support being mapped with the MAP_SYNC flag, which enables a
+program to use CPU cache flush instructions to persist CPU store operations
+without an explicit
+.BR fsync(2).
+See
+.BR mmap(2)
+for more information.
.SH RETURN VALUE
On success, zero is returned.
On error, \-1 is returned, and
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] man/statx: Add STATX_ATTR_DAX
2020-05-05 0:20 [PATCH] man/statx: Add STATX_ATTR_DAX ira.weiny
@ 2020-09-28 16:42 ` Ira Weiny
2020-09-29 8:38 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 4+ messages in thread
From: Ira Weiny @ 2020-09-28 16:42 UTC (permalink / raw)
To: mtk.manpages
Cc: linux-man, linux-fsdevel, linux-api, linux-xfs, linux-kernel, linux-ext4
On Mon, May 04, 2020 at 05:20:16PM -0700, 'Ira Weiny' wrote:
> From: Ira Weiny <ira.weiny@intel.com>
>
> Linux 5.8 is slated to have STATX_ATTR_DAX support.
>
> https://lore.kernel.org/lkml/20200428002142.404144-4-ira.weiny@intel.com/
> https://lore.kernel.org/lkml/20200504161352.GA13783@magnolia/
>
> Add the text to the statx man page.
>
> Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Have I sent this to the wrong list? Or perhaps I have missed a reply.
I don't see this applied to the man-pages project.[1] But perhaps I am looking
at the wrong place?
Thank you,
Ira
[1] git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
> ---
> man2/statx.2 | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/man2/statx.2 b/man2/statx.2
> index 2e90f07dbdbc..14c4ab78e7bd 100644
> --- a/man2/statx.2
> +++ b/man2/statx.2
> @@ -468,6 +468,30 @@ The file has fs-verity enabled.
> It cannot be written to, and all reads from it will be verified
> against a cryptographic hash that covers the
> entire file (e.g., via a Merkle tree).
> +.TP
> +.BR STATX_ATTR_DAX (since Linux 5.8)
> +The file is in the DAX (cpu direct access) state. DAX state attempts to
> +minimize software cache effects for both I/O and memory mappings of this file.
> +It requires a file system which has been configured to support DAX.
> +.PP
> +DAX generally assumes all accesses are via cpu load / store instructions which
> +can minimize overhead for small accesses, but may adversely affect cpu
> +utilization for large transfers.
> +.PP
> +File I/O is done directly to/from user-space buffers and memory mapped I/O may
> +be performed with direct memory mappings that bypass kernel page cache.
> +.PP
> +While the DAX property tends to result in data being transferred synchronously,
> +it does not give the same guarantees of O_SYNC where data and the necessary
> +metadata are transferred together.
> +.PP
> +A DAX file may support being mapped with the MAP_SYNC flag, which enables a
> +program to use CPU cache flush instructions to persist CPU store operations
> +without an explicit
> +.BR fsync(2).
> +See
> +.BR mmap(2)
> +for more information.
> .SH RETURN VALUE
> On success, zero is returned.
> On error, \-1 is returned, and
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] man/statx: Add STATX_ATTR_DAX
2020-09-28 16:42 ` Ira Weiny
@ 2020-09-29 8:38 ` Michael Kerrisk (man-pages)
2020-09-29 20:09 ` Ira Weiny
0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-09-29 8:38 UTC (permalink / raw)
To: Ira Weiny
Cc: mtk.manpages, linux-man, linux-fsdevel, linux-api, linux-xfs,
linux-kernel, linux-ext4
Hello Ira,
On 9/28/20 6:42 PM, Ira Weiny wrote:
> On Mon, May 04, 2020 at 05:20:16PM -0700, 'Ira Weiny' wrote:
>> From: Ira Weiny <ira.weiny@intel.com>
>>
>> Linux 5.8 is slated to have STATX_ATTR_DAX support.
>>
>> https://lore.kernel.org/lkml/20200428002142.404144-4-ira.weiny@intel.com/
>> https://lore.kernel.org/lkml/20200504161352.GA13783@magnolia/
>>
>> Add the text to the statx man page.
>>
>> Signed-off-by: Ira Weiny <ira.weiny@intel.com>
>
> Have I sent this to the wrong list? Or perhaps I have missed a reply.
No, it's just me being a bit slow, I'm sorry. Thank you for pining.
> I don't see this applied to the man-pages project.[1] But perhaps I am looking
> at the wrong place?
Your patch is applied now, and pushed to kernel .org. Thanks!
Cheers,
Michael
> [1] git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
>
>> ---
>> man2/statx.2 | 24 ++++++++++++++++++++++++
>> 1 file changed, 24 insertions(+)
>>
>> diff --git a/man2/statx.2 b/man2/statx.2
>> index 2e90f07dbdbc..14c4ab78e7bd 100644
>> --- a/man2/statx.2
>> +++ b/man2/statx.2
>> @@ -468,6 +468,30 @@ The file has fs-verity enabled.
>> It cannot be written to, and all reads from it will be verified
>> against a cryptographic hash that covers the
>> entire file (e.g., via a Merkle tree).
>> +.TP
>> +.BR STATX_ATTR_DAX (since Linux 5.8)
>> +The file is in the DAX (cpu direct access) state. DAX state attempts to
>> +minimize software cache effects for both I/O and memory mappings of this file.
>> +It requires a file system which has been configured to support DAX.
>> +.PP
>> +DAX generally assumes all accesses are via cpu load / store instructions which
>> +can minimize overhead for small accesses, but may adversely affect cpu
>> +utilization for large transfers.
>> +.PP
>> +File I/O is done directly to/from user-space buffers and memory mapped I/O may
>> +be performed with direct memory mappings that bypass kernel page cache.
>> +.PP
>> +While the DAX property tends to result in data being transferred synchronously,
>> +it does not give the same guarantees of O_SYNC where data and the necessary
>> +metadata are transferred together.
>> +.PP
>> +A DAX file may support being mapped with the MAP_SYNC flag, which enables a
>> +program to use CPU cache flush instructions to persist CPU store operations
>> +without an explicit
>> +.BR fsync(2).
>> +See
>> +.BR mmap(2)
>> +for more information.
>> .SH RETURN VALUE
>> On success, zero is returned.
>> On error, \-1 is returned, and
>> --
>> 2.25.1
>>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] man/statx: Add STATX_ATTR_DAX
2020-09-29 8:38 ` Michael Kerrisk (man-pages)
@ 2020-09-29 20:09 ` Ira Weiny
0 siblings, 0 replies; 4+ messages in thread
From: Ira Weiny @ 2020-09-29 20:09 UTC (permalink / raw)
To: Michael Kerrisk (man-pages)
Cc: linux-man, linux-fsdevel, linux-api, linux-xfs, linux-kernel, linux-ext4
On Tue, Sep 29, 2020 at 10:38:46AM +0200, Michael Kerrisk (man-pages) wrote:
> Hello Ira,
>
> On 9/28/20 6:42 PM, Ira Weiny wrote:
> > On Mon, May 04, 2020 at 05:20:16PM -0700, 'Ira Weiny' wrote:
> >> From: Ira Weiny <ira.weiny@intel.com>
> >>
> >> Linux 5.8 is slated to have STATX_ATTR_DAX support.
> >>
> >> https://lore.kernel.org/lkml/20200428002142.404144-4-ira.weiny@intel.com/
> >> https://lore.kernel.org/lkml/20200504161352.GA13783@magnolia/
> >>
> >> Add the text to the statx man page.
> >>
> >> Signed-off-by: Ira Weiny <ira.weiny@intel.com>
> >
> > Have I sent this to the wrong list? Or perhaps I have missed a reply.
>
> No, it's just me being a bit slow, I'm sorry. Thank you for pining.
NP
>
> > I don't see this applied to the man-pages project.[1] But perhaps I am looking
> > at the wrong place?
>
> Your patch is applied now, and pushed to kernel .org. Thanks!
Sweet! Thank you!
Ira
>
> Cheers,
>
> Michael
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-29 20:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 0:20 [PATCH] man/statx: Add STATX_ATTR_DAX ira.weiny
2020-09-28 16:42 ` Ira Weiny
2020-09-29 8:38 ` Michael Kerrisk (man-pages)
2020-09-29 20:09 ` Ira Weiny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).