Re: [Gluster-devel] How to enable direct io??

2016-06-21 Thread Pranith Kumar Karampuri
There are two things you need to change for o-direct to be handled properly
in gluster stack:

1) gluster volume set  performance.strict-o-direct on
on nfs this option is gluster volume set 
performance.nfs.strict-o-direct on

2) gluster volume set  network.remote-dio off

Please note that we found a bug in o-direct reads which happen sometime,
which is fixed by http://review.gluster.org/14639

Without this patch you may get EINVAL for reads sometimes.

Pranith

On Fri, Jun 17, 2016 at 7:04 PM, Keiviw  wrote:

> By "mount -t glusterfs :/testvol -o direct-io-mode=true
> mountpoint",the GlusterFS client will enable the direct io, and the file
> will not cached in the GlusterFS client,but it won't work in the GlusterFS
> server. By defalut,the GlusterFS will ignore the direct io flag. How to
> make the server work in direct-io-mode??
>
>
>
>
> ___
> Gluster-devel mailing list
> Gluster-devel@gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-devel
>



-- 
Pranith
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel

[Gluster-devel] How to enable direct io??

2016-06-17 Thread Keiviw
By "mount -t glusterfs :/testvol -o direct-io-mode=true mountpoint",the 
GlusterFS client will enable the direct io, and the file will not cached in the 
GlusterFS client,but it won't work in the GlusterFS server. By defalut,the 
GlusterFS will ignore the direct io flag. How to make the server work in 
direct-io-mode??___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel

Re: [Gluster-devel] How to enable DIRECT IO?

2016-03-22 Thread Keiviw
Thank you for your reply.My glusterfs version is 3.3.2, the network.remote-dio 
and strict-o-direct didn't exist. In the mailing list you shared to me just now 
,he was also confused that what is a surefire way to get direct-io-like 
behavior on gluster volume(s)? I mounted the glusterfs to the 
mountpoint(glusterfs) with direct-io-mode=enable,but when I executed "cp 
./test1.mp4 /mnt/glusterfs/ " ,and then I executed "free -m " to check the size 
of cached, it got larger.The test1.mp4 is 2.5G, finally.the cached size is 2600M








At 2016-03-22 16:20:44, "Raghavendra Gowdappa"  wrote:
>
>
>- Original Message -
>> From: "Keiviw" 
>> To: gluster-devel@gluster.org
>> Sent: Tuesday, March 22, 2016 1:18:18 PM
>> Subject: [Gluster-devel] How to enable DIRECT IO?
>> 
>> hi,
>> In the glusterfs client, execute "mount -t glusterfs volumename -o
>> direct-io-mode=enable mountpoint".
>> Does it mean that the client reads or writes the cluster files in the way of
>> DIRECT IO? If not,how to enable DIRECT IO?
>
>This might help:
>http://www.gluster.org/pipermail/gluster-devel/2016-February/048425.html
>
>regards,
>Raghavendra
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel

Re: [Gluster-devel] How to enable DIRECT IO?

2016-03-22 Thread Raghavendra Gowdappa


- Original Message -
> From: "Keiviw" 
> To: gluster-devel@gluster.org
> Sent: Tuesday, March 22, 2016 1:18:18 PM
> Subject: [Gluster-devel] How to enable DIRECT IO?
> 
> hi,
> In the glusterfs client, execute "mount -t glusterfs volumename -o
> direct-io-mode=enable mountpoint".
> Does it mean that the client reads or writes the cluster files in the way of
> DIRECT IO? If not,how to enable DIRECT IO?

This might help:
http://www.gluster.org/pipermail/gluster-devel/2016-February/048425.html

regards,
Raghavendra
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel


[Gluster-devel] How to enable DIRECT IO?

2016-03-22 Thread Keiviw
hi,
In the glusterfs client, execute "mount -t glusterfs volumename -o 
direct-io-mode=enable mountpoint".
Does it mean that the client reads or writes the cluster files in the way of 
DIRECT IO? If not,how to enable DIRECT IO?___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel