On Mon, Apr 02, 2012 at 08:43:41PM +0300, Maksym Planeta wrote: > Sergio Lopez <s...@sinrega.org> writes: > > Instead of implementing a new call, I think > > memory_object_change_attributes should be extended to support setting > > the cluster size for a given object. > > Indeed, this seems to be better.
No, as 1/ the call applies to a memory range, like vm_protect, and 2/ it's about more than a cluster size. As a side note, I'd like to remind that it's more important to focus on the kernel/pagers protocol than applications/POSIX support. For now, you could even mostly ignore that readahead policy can be changed (keep it in mind to isolate its implementation, but adding a default policy only would still do). The vm_advise call should be added later, when actually allowing applications to change the policy. -- Richard Braun