All of lore.kernel.org
 help / color / mirror / Atom feed
* Fwd: cifs ignores sysct setting
       [not found] ` <1e802d3a-c72d-43a7-8bcb-ddf5534968f9-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
@ 2011-10-10  9:32   ` Alexander Swen
       [not found]     ` <02d643a6-776c-4ab4-9561-591934939ae8-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Alexander Swen @ 2011-10-10  9:32 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA


Hi Steve and other CIFS developers, 

please help me with the following: 
1. fix the bug I explain below ;-) 
2. tell me to what bug tracking system I should to file it to. 

so, imho this is a bug: when I load the cifs module it insists in setting oplockenabled to 1 while we want to have locking disabled (due to our poormen's nas who's performance sinks to subzero when we do serious io ;-) 

I've filed this bug at Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644135 

I paste all details over here as well: 
<paste> 
Package: linux-mage
Version: 2.6.32-5-amd64

cifs.ko module (which is included in the kernel pkg as far as i know)
cifs driver version 1.61

when cifs module loads oplock is enabled by default.
so I can do
echo 0 >/proc/fs/cifs/OplockEnabled
but that won't persist through a driver reload. so we tried adding this to /etc/sysctl.conf:
fs.cifs.OplockEnabled = 0
however:

root@nl14s0008-vm1:~# echo 0 >/proc/fs/cifs/OplockEnabled
root@nl14s0008-vm1:~# cat /proc/fs/cifs/OplockEnabled
0
root@nl14s0008-vm1:~# modprobe -r cifs
root@nl14s0008-vm1:~# tail -1 /etc/sysctl.conf
fs.cifs.OplockEnabled = 0
root@nl14s0008-vm1:~# lsmod|grep cifs
root@nl14s0008-vm1:~# modprobe cifs
root@nl14s0008-vm1:~# !l
lsmod |grep cifs
cifs 262528 0
nls_base 6377 3 cifs,nls_utf8,usbcore
root@nl14s0008-vm1:~# !cat
cat /proc/fs/cifs/OplockEnabled
1

So, when I read the modinfo of cifs, there are a few module options, but no oplock option.
I would like to add something like:
options cifs oplocksenabled=0
to /etc/modprobe.d/aliases.conf

Is it feasible to add that param as an option?

I use the cifs 1.61 module on 2.6.32-5-amd64 kernel on Debian 6.0 (Debian 2.6.32-35squeeze2)

</paste> 
so, Ben is partly right, me request to add a param option is a wishlist thing, but the behaviour of the sysctl setting is a bug imho. 

thanks for your response! 
Alex 




Met vriendelijke groet, 
Alexander Swen 

Met vriendelijke groet, Alexander Swen 


Met vriendelijke groet, 
Alexander Swen 

----- Original Message ----- 


From: "Ben Hutchings" <ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org> 
To: "Alexander Swen" <alex-UE4+9DRHXtc@public.gmane.org> 
Cc: 644135-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org 
Sent: Friday, 7 October, 2011 7:03:59 AM 
Subject: Re: cifs ignores sysct setting 

On Mon, 2011-10-03 at 09:46 +0200, Alexander Swen wrote: 
> Package: linux-mage 
> Version: 2.6.32-5-amd64 
> 
> cifs.ko module (which is included in the kernel pkg as far as i know) 
> cifs driver version 1.61 
> 
> when cifs module loads oplock is enabled by default. 
> so I can do 
> echo 0 >/proc/fs/cifs/OplockEnabled 
> but that won't persist through a driver reload. so we tried adding 
> this to /etc/sysctl.conf: 
> fs.cifs.OplockEnabled = 0 
[...] 
> So, when I read the modinfo of cifs, there are a few module options, 
> but no oplock option. 
> I would like to add something like: 
> options cifs oplocksenabled=0 
> to /etc/modprobe.d/aliases.conf 
> 
> Is it feasible to add that param as an option? 
[...] 

You should ask the upstream developers (Steve French <sfrench-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> 
and linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org) for this feature. 

Ben. 

-- 
Ben Hutchings 
For every action, there is an equal and opposite criticism. - Harrison 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fwd: cifs ignores sysct setting
       [not found]     ` <02d643a6-776c-4ab4-9561-591934939ae8-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
@ 2011-10-10 13:06       ` Suresh Jayaraman
       [not found]         ` <4E92EDC7.30101-IBi9RG/b67k@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Suresh Jayaraman @ 2011-10-10 13:06 UTC (permalink / raw)
  To: Alexander Swen; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA

On 10/10/2011 03:02 PM, Alexander Swen wrote:
> 
> Hi Steve and other CIFS developers, 
> 
> please help me with the following: 
> 1. fix the bug I explain below ;-) 
> 2. tell me to what bug tracking system I should to file it to. 
> 
> so, imho this is a bug: when I load the cifs module it insists in setting oplockenabled to 1 while we want to have locking disabled (due to our poormen's nas who's performance sinks to subzero when we do serious io ;-) 
> 
> I've filed this bug at Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644135 
> 
> I paste all details over here as well: 
> <paste> 
> Package: linux-mage
> Version: 2.6.32-5-amd64
> 
> cifs.ko module (which is included in the kernel pkg as far as i know)
> cifs driver version 1.61
> 
> when cifs module loads oplock is enabled by default.
> so I can do
> echo 0 >/proc/fs/cifs/OplockEnabled
> but that won't persist through a driver reload. so we tried adding this to /etc/sysctl.conf:
> fs.cifs.OplockEnabled = 0
> however:
> 
> root@nl14s0008-vm1:~# echo 0 >/proc/fs/cifs/OplockEnabled
> root@nl14s0008-vm1:~# cat /proc/fs/cifs/OplockEnabled
> 0
> root@nl14s0008-vm1:~# modprobe -r cifs
> root@nl14s0008-vm1:~# tail -1 /etc/sysctl.conf
> fs.cifs.OplockEnabled = 0

IIUC, CIFS OplockEnabled is not a proper sysctl, it is just a proc
entry. Sysctls are listed below /proc/sys/ directory.

For e.g. try
   sysctl -w fs.cifs.OplockEnabled=0

you'll see the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
directory". Also,

   sysctl -p

will throw the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
directory"

It is not clear to me why do you want to unload and reload cifs module
often? The general usage is load module during boot or on first use and
the module lives on till the machine goes down.

I'm not seeing an justification for making it an module parameter. Could
you please explain more on how it will be useful?


-Suresh

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cifs ignores sysct setting
       [not found]         ` <4E92EDC7.30101-IBi9RG/b67k@public.gmane.org>
@ 2011-10-10 13:37           ` Jeff Layton
       [not found]             ` <20111010093716.68c55bff-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Layton @ 2011-10-10 13:37 UTC (permalink / raw)
  To: Suresh Jayaraman; +Cc: Alexander Swen, linux-cifs-u79uwXL29TY76Z2rM5mHXA

On Mon, 10 Oct 2011 18:36:15 +0530
Suresh Jayaraman <sjayaraman-IBi9RG/b67k@public.gmane.org> wrote:

> On 10/10/2011 03:02 PM, Alexander Swen wrote:
> > 
> > Hi Steve and other CIFS developers, 
> > 
> > please help me with the following: 
> > 1. fix the bug I explain below ;-) 
> > 2. tell me to what bug tracking system I should to file it to. 
> > 
> > so, imho this is a bug: when I load the cifs module it insists in setting oplockenabled to 1 while we want to have locking disabled (due to our poormen's nas who's performance sinks to subzero when we do serious io ;-) 
> > 
> > I've filed this bug at Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644135 
> > 
> > I paste all details over here as well: 
> > <paste> 
> > Package: linux-mage
> > Version: 2.6.32-5-amd64
> > 
> > cifs.ko module (which is included in the kernel pkg as far as i know)
> > cifs driver version 1.61
> > 
> > when cifs module loads oplock is enabled by default.
> > so I can do
> > echo 0 >/proc/fs/cifs/OplockEnabled
> > but that won't persist through a driver reload. so we tried adding this to /etc/sysctl.conf:
> > fs.cifs.OplockEnabled = 0
> > however:
> > 
> > root@nl14s0008-vm1:~# echo 0 >/proc/fs/cifs/OplockEnabled
> > root@nl14s0008-vm1:~# cat /proc/fs/cifs/OplockEnabled
> > 0
> > root@nl14s0008-vm1:~# modprobe -r cifs
> > root@nl14s0008-vm1:~# tail -1 /etc/sysctl.conf
> > fs.cifs.OplockEnabled = 0
> 
> IIUC, CIFS OplockEnabled is not a proper sysctl, it is just a proc
> entry. Sysctls are listed below /proc/sys/ directory.
> 
> For e.g. try
>    sysctl -w fs.cifs.OplockEnabled=0
> 
> you'll see the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
> directory". Also,
> 
>    sysctl -p
> 
> will throw the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
> directory"
> 
> It is not clear to me why do you want to unload and reload cifs module
> often? The general usage is load module during boot or on first use and
> the module lives on till the machine goes down.
> 
> I'm not seeing an justification for making it an module parameter. Could
> you please explain more on how it will be useful?
> 

I agree with Alexander on this one...

Making that a module parm would allow you to set that parameter at boot
time without needing to add special startup scripts. IMO, all of the
procfile "switches" under /proc/fs/cifs should be module parms
instead.

That would also allow us to get rid of some of the special procfile
handling code for those files as well.

-- 
Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Fwd: cifs ignores sysct setting
       [not found] ` <099ae669-6de2-4566-926e-981066fed122-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
@ 2011-10-10 13:48   ` Alexander Swen
  0 siblings, 0 replies; 10+ messages in thread
From: Alexander Swen @ 2011-10-10 13:48 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA



From: "Alexander Swen" <alex-UE4+9DRHXtc@public.gmane.org> 
To: "Suresh Jayaraman" <sjayaraman-IBi9RG/b67k@public.gmane.org> 
Sent: Monday, 10 October, 2011 3:44:47 PM 
Subject: Re: cifs ignores sysct setting 

Hi Suresh, thanks for your re, 

> It is not clear to me why do you want to unload and reload cifs 
> module 
> often? The general usage is load module during boot or on first use 
> and 
> the module lives on till the machine goes down. 

I don't (want to load cifs often ;-). but I don't want to exec a command to configure cifs once a server starts up). Now, I know I can automate such thing using rc.local etc... but I rather configure those things just as I would configure any other kernel module settings (preferably using modprobe.d/cifs.conf or something similar) 

> I'm not seeing an justification for making it an module parameter. 

I do: when I load for example a module like bonding I tell it how to behave in with settings which i put into a file called /etc/modprobe.d/aliases: 
alias bond0 bonding 
options bonding mode=1 miimon=100 


> Could you please explain more on how it will be useful? 

i would like to change the behaviour of cifs so that oplock is disabled when it loads. 

can you follow my way of thinking? 

thanks for your cooperation, 

Alex 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cifs ignores sysct setting
       [not found]             ` <20111010093716.68c55bff-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
@ 2011-10-11  9:14               ` Suresh Jayaraman
       [not found]                 ` <4E940912.1000408-IBi9RG/b67k@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Suresh Jayaraman @ 2011-10-11  9:14 UTC (permalink / raw)
  To: Jeff Layton; +Cc: Alexander Swen, linux-cifs-u79uwXL29TY76Z2rM5mHXA

On 10/10/2011 07:07 PM, Jeff Layton wrote:
> On Mon, 10 Oct 2011 18:36:15 +0530
> Suresh Jayaraman <sjayaraman-IBi9RG/b67k@public.gmane.org> wrote:
> 
>> On 10/10/2011 03:02 PM, Alexander Swen wrote:
>>>
>>> Hi Steve and other CIFS developers, 
>>>
>>> please help me with the following: 
>>> 1. fix the bug I explain below ;-) 
>>> 2. tell me to what bug tracking system I should to file it to. 
>>>
>>> so, imho this is a bug: when I load the cifs module it insists in setting oplockenabled to 1 while we want to have locking disabled (due to our poormen's nas who's performance sinks to subzero when we do serious io ;-) 
>>>
>>> I've filed this bug at Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644135 
>>>
>>> I paste all details over here as well: 
>>> <paste> 
>>> Package: linux-mage
>>> Version: 2.6.32-5-amd64
>>>
>>> cifs.ko module (which is included in the kernel pkg as far as i know)
>>> cifs driver version 1.61
>>>
>>> when cifs module loads oplock is enabled by default.
>>> so I can do
>>> echo 0 >/proc/fs/cifs/OplockEnabled
>>> but that won't persist through a driver reload. so we tried adding this to /etc/sysctl.conf:
>>> fs.cifs.OplockEnabled = 0
>>> however:
>>>
>>> root@nl14s0008-vm1:~# echo 0 >/proc/fs/cifs/OplockEnabled
>>> root@nl14s0008-vm1:~# cat /proc/fs/cifs/OplockEnabled
>>> 0
>>> root@nl14s0008-vm1:~# modprobe -r cifs
>>> root@nl14s0008-vm1:~# tail -1 /etc/sysctl.conf
>>> fs.cifs.OplockEnabled = 0
>>
>> IIUC, CIFS OplockEnabled is not a proper sysctl, it is just a proc
>> entry. Sysctls are listed below /proc/sys/ directory.
>>
>> For e.g. try
>>    sysctl -w fs.cifs.OplockEnabled=0
>>
>> you'll see the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
>> directory". Also,
>>
>>    sysctl -p
>>
>> will throw the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
>> directory"
>>
>> It is not clear to me why do you want to unload and reload cifs module
>> often? The general usage is load module during boot or on first use and
>> the module lives on till the machine goes down.
>>
>> I'm not seeing an justification for making it an module parameter. Could
>> you please explain more on how it will be useful?
>>
> 
> I agree with Alexander on this one...
> 
> Making that a module parm would allow you to set that parameter at boot
> time without needing to add special startup scripts. IMO, all of the
> procfile "switches" under /proc/fs/cifs should be module parms
> instead.

Making it a module parm would mean that it would no longer be possible
to dynamically change OplockEnabled. But, that might be Ok, because it
is quite unusual to change this setting once the module is loaded,
right?. Also, someone won't be able to see what is the current setting.
Again, not a big deal.

> That would also allow us to get rid of some of the special procfile
> handling code for those files as well.
> 

Agreed.

I'll whip up a patch and post it soon.


-Suresh

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cifs ignores sysct setting
       [not found]                 ` <4E940912.1000408-IBi9RG/b67k@public.gmane.org>
@ 2011-10-11 14:09                   ` Steve French
       [not found]                     ` <a743c035-7baa-4fbf-afd3-957812e2ac70@absint.swen.nu>
  0 siblings, 1 reply; 10+ messages in thread
From: Steve French @ 2011-10-11 14:09 UTC (permalink / raw)
  To: Suresh Jayaraman
  Cc: Jeff Layton, Alexander Swen, linux-cifs-u79uwXL29TY76Z2rM5mHXA

Actually, it seems more likely that you would turn off oplock temporarily
(ie via /proc) rather than permanently (until cifs is reloaded or the
system reboots).   Wouldn't you only turn oplock off to temporarily
work around a buggy server?

On Tue, Oct 11, 2011 at 4:14 AM, Suresh Jayaraman <sjayaraman-IBi9RG/b67k@public.gmane.org> wrote:
> On 10/10/2011 07:07 PM, Jeff Layton wrote:
>> On Mon, 10 Oct 2011 18:36:15 +0530
>> Suresh Jayaraman <sjayaraman-IBi9RG/b67k@public.gmane.org> wrote:
>>
>>> On 10/10/2011 03:02 PM, Alexander Swen wrote:
>>>>
>>>> Hi Steve and other CIFS developers,
>>>>
>>>> please help me with the following:
>>>> 1. fix the bug I explain below ;-)
>>>> 2. tell me to what bug tracking system I should to file it to.
>>>>
>>>> so, imho this is a bug: when I load the cifs module it insists in setting oplockenabled to 1 while we want to have locking disabled (due to our poormen's nas who's performance sinks to subzero when we do serious io ;-)
>>>>
>>>> I've filed this bug at Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644135
>>>>
>>>> I paste all details over here as well:
>>>> <paste>
>>>> Package: linux-mage
>>>> Version: 2.6.32-5-amd64
>>>>
>>>> cifs.ko module (which is included in the kernel pkg as far as i know)
>>>> cifs driver version 1.61
>>>>
>>>> when cifs module loads oplock is enabled by default.
>>>> so I can do
>>>> echo 0 >/proc/fs/cifs/OplockEnabled
>>>> but that won't persist through a driver reload. so we tried adding this to /etc/sysctl.conf:
>>>> fs.cifs.OplockEnabled = 0
>>>> however:
>>>>
>>>> root@nl14s0008-vm1:~# echo 0 >/proc/fs/cifs/OplockEnabled
>>>> root@nl14s0008-vm1:~# cat /proc/fs/cifs/OplockEnabled
>>>> 0
>>>> root@nl14s0008-vm1:~# modprobe -r cifs
>>>> root@nl14s0008-vm1:~# tail -1 /etc/sysctl.conf
>>>> fs.cifs.OplockEnabled = 0
>>>
>>> IIUC, CIFS OplockEnabled is not a proper sysctl, it is just a proc
>>> entry. Sysctls are listed below /proc/sys/ directory.
>>>
>>> For e.g. try
>>>    sysctl -w fs.cifs.OplockEnabled=0
>>>
>>> you'll see the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
>>> directory". Also,
>>>
>>>    sysctl -p
>>>
>>> will throw the error: "/proc/sys/fs/cifs/OplockEnabled: No such file or
>>> directory"
>>>
>>> It is not clear to me why do you want to unload and reload cifs module
>>> often? The general usage is load module during boot or on first use and
>>> the module lives on till the machine goes down.
>>>
>>> I'm not seeing an justification for making it an module parameter. Could
>>> you please explain more on how it will be useful?
>>>
>>
>> I agree with Alexander on this one...
>>
>> Making that a module parm would allow you to set that parameter at boot
>> time without needing to add special startup scripts. IMO, all of the
>> procfile "switches" under /proc/fs/cifs should be module parms
>> instead.
>
> Making it a module parm would mean that it would no longer be possible
> to dynamically change OplockEnabled. But, that might be Ok, because it
> is quite unusual to change this setting once the module is loaded,
> right?. Also, someone won't be able to see what is the current setting.
> Again, not a big deal.
>
>> That would also allow us to get rid of some of the special procfile
>> handling code for those files as well.
>>
>
> Agreed.
>
> I'll whip up a patch and post it soon.
>
>
> -Suresh
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cifs ignores sysct setting
       [not found]                       ` <a743c035-7baa-4fbf-afd3-957812e2ac70-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
@ 2011-10-11 14:20                         ` Steve French
       [not found]                           ` <ff55fbe8-5fca-4bd0-a91c-c63d3082509a@absint.swen.nu>
  0 siblings, 1 reply; 10+ messages in thread
From: Steve French @ 2011-10-11 14:20 UTC (permalink / raw)
  To: Alexander Swen
  Cc: Jeff Layton, linux-cifs-u79uwXL29TY76Z2rM5mHXA, Suresh Jayaraman

On Tue, Oct 11, 2011 at 9:14 AM, Alexander Swen <alex-UE4+9DRHXtc@public.gmane.org> wrote:
> Hi Steve,
>
> thanks for your response.
>
> no, we do permanently turn off oplocks due to some performance issues (with
> some NAS device where our colleagues can't (don't want) configure nfs
> apparently ;-(.
> we do this on several (>20) servers and across reboots...

Isn't it easier just to turn this (oplocks) off on the server?  At
least with Linux cifs.ko
you can turn off oplocks at runtime, with some clients it is much harder.


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cifs ignores sysct setting
       [not found]                             ` <ff55fbe8-5fca-4bd0-a91c-c63d3082509a-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
@ 2011-10-11 14:47                               ` Steve French
       [not found]                                 ` <CAH2r5mvqk6vjbPObEfqm+UtdLudNCfRnvLxqDmf6i4Y+syX24w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Steve French @ 2011-10-11 14:47 UTC (permalink / raw)
  To: Alexander Swen
  Cc: Jeff Layton, linux-cifs-u79uwXL29TY76Z2rM5mHXA, Suresh Jayaraman

On Tue, Oct 11, 2011 at 9:22 AM, Alexander Swen <alex-UE4+9DRHXtc@public.gmane.org> wrote:
>
>
> Met vriendelijke groet,
> Alexander Swen
> ________________________________
>
> From: "Steve French" <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> To: "Alexander Swen" <alex-UE4+9DRHXtc@public.gmane.org>
> Cc: "Jeff Layton" <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>, linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Suresh
> Jayaraman" <sjayaraman-IBi9RG/b67k@public.gmane.org>
> Sent: Tuesday, 11 October, 2011 4:20:17 PM
> Subject: Re: cifs ignores sysct setting
>
> On Tue, Oct 11, 2011 at 9:14 AM, Alexander Swen <alex-UE4+9DRHXtc@public.gmane.org> wrote:
>> Hi Steve,
>>
>> thanks for your response.
>>
>> no, we do permanently turn off oplocks due to some performance issues
>> (with
>> some NAS device where our colleagues can't (don't want) configure nfs
>> apparently ;-(.
>> we do this on several (>20) servers and across reboots...
>
> Isn't it easier just to turn this (oplocks) off on the server?  At
> least with Linux cifs.ko
> you can turn off oplocks at runtime, with some clients it is much harder.
>
>
> ahhh. no, we are not the only users on the nas, our clientservers should
> just turn off oplocks. it is, we make backups to the nas device and those
> files grow quite big.

If you are trying to save RAM on the client, and don't want to cache,
and are just using the linux cifs client for backup, you could mount
with "forcedirectio" (which turns off caching a little more easily).


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cifs ignores sysct setting
       [not found]                                 ` <CAH2r5mvqk6vjbPObEfqm+UtdLudNCfRnvLxqDmf6i4Y+syX24w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-10-12  7:10                                   ` Alexander Swen
       [not found]                                     ` <ad4b418d-7021-431a-a32b-4b5aaad0cd31-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Alexander Swen @ 2011-10-12  7:10 UTC (permalink / raw)
  To: Steve French
  Cc: Jeff Layton, linux-cifs-u79uwXL29TY76Z2rM5mHXA, Suresh Jayaraman


> >
> >
> > ahhh. no, we are not the only users on the nas, our clientservers
> > should
> > just turn off oplocks. it is, we make backups to the nas device and
> > those
> > files grow quite big.

> If you are trying to save RAM on the client, and don't want to cache,
> and are just using the linux cifs client for backup, you could mount
> with "forcedirectio" (which turns off caching a little more easily).

Hi Steve, it was that we had i/o timeouts on our cifs mounted volume while doing rsyncs to that volume. since we disabled oplock the timeouts vanished. however, I will suggest your idea to my colleague who had that problem and he might give it a go as well.

thanks for your thoughts!
Alex

> Thanks,

> Steve

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cifs ignores sysct setting
       [not found]                                     ` <ad4b418d-7021-431a-a32b-4b5aaad0cd31-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
@ 2011-10-12 11:45                                       ` Jeff Layton
  0 siblings, 0 replies; 10+ messages in thread
From: Jeff Layton @ 2011-10-12 11:45 UTC (permalink / raw)
  To: Alexander Swen
  Cc: Steve French, linux-cifs-u79uwXL29TY76Z2rM5mHXA, Suresh Jayaraman

On Wed, 12 Oct 2011 09:10:52 +0200 (CEST)
Alexander Swen <alex-UE4+9DRHXtc@public.gmane.org> wrote:

> 
> > >
> > >
> > > ahhh. no, we are not the only users on the nas, our clientservers
> > > should
> > > just turn off oplocks. it is, we make backups to the nas device and
> > > those
> > > files grow quite big.
> 
> > If you are trying to save RAM on the client, and don't want to cache,
> > and are just using the linux cifs client for backup, you could mount
> > with "forcedirectio" (which turns off caching a little more easily).
> 
> Hi Steve, it was that we had i/o timeouts on our cifs mounted volume while doing rsyncs to that volume. since we disabled oplock the timeouts vanished. however, I will suggest your idea to my colleague who had that problem and he might give it a go as well.
> 

The 2.6.32 kernel you're using also doesn't support async writes,
unless the debian maintainers backported that work, which they don't
typically do. If you move to a newer kernel you may get better
performance as well...

-- 
Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-10-12 11:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1e802d3a-c72d-43a7-8bcb-ddf5534968f9@absint.swen.nu>
     [not found] ` <1e802d3a-c72d-43a7-8bcb-ddf5534968f9-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
2011-10-10  9:32   ` Fwd: cifs ignores sysct setting Alexander Swen
     [not found]     ` <02d643a6-776c-4ab4-9561-591934939ae8-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
2011-10-10 13:06       ` Suresh Jayaraman
     [not found]         ` <4E92EDC7.30101-IBi9RG/b67k@public.gmane.org>
2011-10-10 13:37           ` Jeff Layton
     [not found]             ` <20111010093716.68c55bff-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-10-11  9:14               ` Suresh Jayaraman
     [not found]                 ` <4E940912.1000408-IBi9RG/b67k@public.gmane.org>
2011-10-11 14:09                   ` Steve French
     [not found]                     ` <a743c035-7baa-4fbf-afd3-957812e2ac70@absint.swen.nu>
     [not found]                       ` <a743c035-7baa-4fbf-afd3-957812e2ac70-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
2011-10-11 14:20                         ` Steve French
     [not found]                           ` <ff55fbe8-5fca-4bd0-a91c-c63d3082509a@absint.swen.nu>
     [not found]                             ` <ff55fbe8-5fca-4bd0-a91c-c63d3082509a-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
2011-10-11 14:47                               ` Steve French
     [not found]                                 ` <CAH2r5mvqk6vjbPObEfqm+UtdLudNCfRnvLxqDmf6i4Y+syX24w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-12  7:10                                   ` Alexander Swen
     [not found]                                     ` <ad4b418d-7021-431a-a32b-4b5aaad0cd31-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
2011-10-12 11:45                                       ` Jeff Layton
     [not found] <099ae669-6de2-4566-926e-981066fed122@absint.swen.nu>
     [not found] ` <099ae669-6de2-4566-926e-981066fed122-VJN6hnAnNNsoZRmjwiK4Kw@public.gmane.org>
2011-10-10 13:48   ` Fwd: " Alexander Swen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.