On Mar 07, 2006 10:42 +0800, ????? wrote:> I want to ask a question. Does lustre support swap via swap file?
No, the required APIs are not implemented for swap via a swap file.
The kernel swap code assumes that swap files live on local block devices.
We also tried swap via a loopback file on Lustre, but this was not usable.
The current approach we are trying to implement is to create a block
device driver that connects directly to the LOV or OSC layer (bypassing
the VM and VFS) so that the block-level IO can be implemented efficiently.
It should then be possible to swap via this block device, but that has
not yet been implemented or tested.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.