On Nov 28, 2005 15:38 -0700, Kumaran Rajaram wrote:> Does Lustre 1.4.5 support O_DIRECT flag during file open? IOZone errs > out when ''-I'' option (direct-IO) is passed with the following error: > > Can not open temp file: /mnt/lustre/largefile1 > open: Invalid argument > > BTW, the environment is SLES9 distro + kernel on x86_64 platform.It looks like lustre O_DIRECT is not implemented for 2.6 kernels, only for 2.4 kernels. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
Does Lustre 1.4.5 support O_DIRECT flag during file open ? IOZone errs out when
''-I'' option (direct-IO) is passed with the following error:
Can not open temp file: /mnt/lustre/largefile1
open: Invalid argument
Tried the Lustre test program directio.c. It too seems to err out on Lustre but
works fine on ext3.
/* On Lustre FS: RDWR mode */
n01:~ # ./directio rdwr /mnt/lustre/directfile 0L 4
Cannot open /mnt/lustre/directfile: Invalid argument
/* On Lustre FS: READ only */
n01:~ # ls -lh /mnt/lustre/largefile6
-rw-r--r-- 1 root root 8.0G Nov 10 20:39 /mnt/lustre/largefile6
n01:~ # ./directio read /mnt/lustre/largefile6 0L 10
Cannot open /mnt/lustre/largefile6: Invalid argument
/* On Ext3 */
n01:~ # ./directio rdwr /tmp/directfile 0L 4
directio on /tmp/directfile for 4x4096 bytes
PASS
n01:~ # df -h | grep lustre
1.6T 27G 1.5T 2% /mnt/lustre/
BTW, the environment is SLES9 distro + kernel on x86_64 platform.
Thanks,
-Kums
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mail.clusterfs.com/pipermail/lustre-discuss/attachments/20051128/eb832f8a/attachment.html