Thread (2 messages) 2 messages, 2 authors, 2016-02-23

Re: [RFC 0/2] New MAP_PMEM_AWARE mmap flag

From: Dan Williams <hidden>
Date: 2016-02-23 23:34:53

On Tue, Feb 23, 2016 at 3:28 PM, Jeff Moyer [off-list ref] wrote:
quoted
The crux of the problem, in my opinion, is that we're asking for an "I
know what I'm doing" flag, and I expect that's an impossible statement
for a filesystem to trust generically.
The file system already trusts that.  If an application doesn't use
fsync properly, guess what, it will break.  This line of reasoning
doesn't make any sense to me.
No, I'm worried about the case where an app specifies MAP_PMEM_AWARE
uses fsync correctly, and fails to flush cpu cache.
quoted
If you can get MAP_PMEM_AWARE in, great, but I'm more and more of the
opinion that the "I know what I'm doing" interface should be something
separate from today's trusted filesystems.
Just so I understand you, MAP_PMEM_AWARE isn't the "I know what I'm
doing" interface, right?
It is the "I know what I'm doing" interface, MAP_PMEM_AWARE asserts "I
know when to flush the cpu relative to an fsync()".

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help