Yes. However if you wanted to stop that for specific cases and then measure
the mapping and work it out an mlock will do the right thing.
> If blocks only fragment on swap, it should be enough to disable swap on the
> machine in question (a calculation server which should *never* be swapping
> anyway), and to determine if a block is physically contiguous to start
> with. Is there such a thing as a VirtualToPhysical syscall, a call that can
> be misused to do this, or should I take the Source and start hacking ?
A virt_to_phys syscall for userspace ought to be doable.
Alan