Skip to contentSkip to conversation

Is noncached_write() in xc_domain_save() actually doing what it says?

DISCUSSION Mike Sun 1 participant 1 message Jan 8, 2009

lore
Share & tools
lore

Mike Sun

author
#0 lore raw

Hi,

I'm curious if noncached_write() (from xc_domain_save.c) is actually doing writes without adding to the file system cache. From what I see, it's doing a write_exact(), then calling discard_file_cache() without a flush, and ostensibly relying on the posix_fadvise64(..., POSIX_FADV_DONTNEED) call to remove those written pages from the file cache... but from what I understand, the POSIX_FADV_DONTNEED call won't be able to remove those pages unless they have already been flushed to disk.

Am I misunderstanding this?

Thanks,
Mike