linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* msync() seems not to clean the data cache
@ 2025-04-25 19:17 John Reiser
  2025-04-25 19:31 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: John Reiser @ 2025-04-25 19:17 UTC (permalink / raw)
  To: linux-mm

The system call write() cleans the hardware data cache (writes any dirty
values from the data cache into RAM memory) before passing to the VFS
the region to be written.  The system call msync() should do likewise.
Currently msync() does not clean the hardware data cache, as seen on
PowerPC, PowerPC64, and arm64; and probably any CPU that does not
have a Write-through cache.  (x86 and x86_64 do have write-through.)

Please fix system call msync() so that it cleans the hardware data cache
first.



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

end of thread, other threads:[~2025-04-25 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-25 19:17 msync() seems not to clean the data cache John Reiser
2025-04-25 19:31 ` Matthew Wilcox
2025-04-25 20:45   ` John Reiser

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