fincore()
Posted Jan 29, 2010 17:38 UTC (Fri) by
giraffedata (subscriber, #1954)
In reply to:
fincore() by iabervon
Parent article:
fincore()
I agree. First of all, fadvise() does not request prefetch. It advises the kernel that you are going to access a certain part of the file soon. It is up to the prefetcher to decide how to exploit that information.
Only the prefetcher, in the kernel, can properly decide how much memory to allocate for prefetching this particular file. Memory is a resource shared between processes, and coordinating resource usage between processes is fundamentally the kernel's responsibility. The application should just look out for itself.
(
Log in to post comments)