Re: samba error messages???

From: Jason Dixon (jason_at_dixongroup.net)
Date: 07/28/03

  • Next message: Strider Alex Hunter: "troubles defining firewall policies"
    To: redhat-list@redhat.com
    Date: 27 Jul 2003 23:08:28 -0400
    
    

    On Sun, 2003-07-27 at 22:40, Bret Hughes wrote:

    > > > > I did exactly that a couple of days ago and found that I needed to add
    > > > >
    > > > > kernel oplocks = no
    > > > >
    > > > > in /etc/samba/smb.conf. Once I did that the errors stopped.
    > > >
    > > > Isn't there a significant performance hit for certain situations by not
    > > > using the oplocks?
    > >
    > > This is best answered by the manpage entries for "fake oplocks" and
    > > "oplocks"...
    > >
    > > - fake oplocks (S)
    > > Oplocks are the way that SMB clients get permission from a
    > > server to locally cache file operations. If a server grants an oplock
    > > (opportunistic lock) then the client is free to assume that it is the
    > > only one accessing the file and it will aggressively cache file data.
    > > With some oplock types the client may even cache file open/close
    > > operations. This can give enormous performance benefits.
    > >
    > > When you set fake oplocks = yes, smbd(8) will always grant oplock
    > > requests no matter how many clients are using the file.
    > >
    > > It is generally much better to use the real oplocks support rather than
    > > this parameter.
    > >
    > > - kernel oplocks (G)
    > > For UNIXes that support kernel based oplocks (currently
    > > only IRIX and the Linux 2.4 kernel), this parameter allows the use of
    > > them to be turned on or off.
    > >
    > > Kernel oplocks support allows Samba oplocks to be broken whenever a
    > > local UNIX process or NFS operation accesses a file that smbd(8) has
    > > oplocked. This allows complete data consistency between SMB/CIFS, NFS
    > > and local file access (and is a very cool feature :-).
    > >
    > > This parameter defaults to on, but is translated to a no-op on systems
    > > that no not have the necessary kernel support. You should never need to
    > > touch this parameter.
    > >
    >
    > Yes That is what I remembered. So really the issue is that there may be
    > a data consistency if fake oplocks are used and perfomance hit if not.
    > Does this sound right?

    This is a little more descriptive, taken from the O'Reilly samba book:

    - fake oplocks
            If set, returns YES whenever a client asks if it can lock a file and
    cache it locally but does not enforce the lock on the server. Results
    in performance improvement for read-only shares. NEVER USE WITH
    READ/WRITE SHARES!

    - oplocks
            If YES, supports local caching of oplocked files on the client. This
    option is recommended because it improves performance by about 30%.

    Short story, I'd leave well enough alone. It doesn't hurt anything by
    having it, and disabling it just to avoid the log entries will seriously
    degrade performance. Of course, YMMV. ;-)

    -- 
    Jason Dixon, RHCE
    DixonGroup Consulting
    http://www.dixongroup.net
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Strider Alex Hunter: "troubles defining firewall policies"

    Relevant Pages

    • Re: samba error messages???
      ... > server to locally cache file operations. ... > only one accessing the file and it will aggressively cache file data. ... > It is generally much better to use the real oplocks support rather than ... > only IRIX and the Linux 2.4 kernel), this parameter allows the use of ...
      (RedHat)
    • Re: samba error messages???
      ... >> Isn't there a significant performance hit for certain situations by not ... > only one accessing the file and it will aggressively cache file data. ... > It is generally much better to use the real oplocks support rather than ... > only IRIX and the Linux 2.4 kernel), this parameter allows the use of ...
      (RedHat)
    • Re: RDR bug?
      ... the batch oplocks must be torn on removable media ... Maxim Shatskih, Windows DDK MVP ... Two PCs in a LAN, the server and client ... Insert CD1 on the server. ...
      (microsoft.public.development.device.drivers)
    • Re: Offline Status issue - Vista on SBS 2003
      ... Lanmanworkstation just to be safe...neither the server nor the laptop ... connection to the server using a gigabit ethernet cable, ... Specifies whether the server allows clients to use oplocks on files. ... lost cached data on some networks, ...
      (microsoft.public.windows.server.sbs)
    • [SLE] SuSE 9.0 pro crashing
      ... and all partitions are Ext3 and I'm using ACL's. ... (I'm currently migrating this to the server). ... I stopped the backup, ... level2 oplocks = no ...
      (SuSE)