NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Schreiner_A2's avatar
Schreiner_A2
Aspirant
Dec 27, 2008

good speed only with opportunistic locking

If I make a simple copy on my command line, I have very good performance in my 1 Gbit network (NV+ with 4 x 500Gb HDs, netgear switch with 24 places) with opportunistic and without opportunistic locking.

But I have a multiuser software and cannot use opportunistic locking.
Without it the performance of my own programs slow down to 5%-10%.

I have older QB-programs and need no grafik and program lines like these:
In my programs use only textfiles with fix length (with and without Hex0D0A=crlf)

OPEN "file1.txt" FOR RANDOM SHARED AS 1 LEN = 170

All files are on a read write share on my netgear NAS NV+ and all workstations with XP Pro
have the same access rights

All group-users should be allowed to read and write (and delete) my files at every time!

What can I do to increase performanc like activating opportunistic locking?

(Now my speed is not better than on an 20 year old Novell server with old 486-ATs under DOS, why?)

********************************************************************
Have i configured my NAS NV+ well?
I have maximal 100 Mb files (all togehter) not 100Gb and my NAS NV+ uses XRAID with four 500 GB HDs?
I want have the maximum on performance and security!
NAS shows 1,5Tb - to much for my application with 100Mb.
Do I have to reconfigure my NAS to Raid 5 oder something like that?
I thought, all four HDs should have the same information for best security.

Please help me
Thanks
A. Schreiner

5 Replies

Replies have been turned off for this discussion
  • no idea?
    Can I increase performace with 1 Gb RAM (now my NAS NV+ has only 256Mb)?

    What else can I do for more performance when i read in my files.

    thanks
  • I tried jumbo frames - no better speed :(
    I disabled journaling - no better speed :(
    forced cache writeing on - no better speed :(

    the only one which increases speed 2000% is opportunistic locking on, but I have a multiuser application and can't use it.

    What can I do to increase speed?
  • server string = FreeNAS Server
    security = share
    dns proxy = no
    # Settings to enhance performance:
    use sendfile = yes
    strict locking = no
    read raw = yes
    write raw = yes
    oplocks = yes
    max xmit = 65535
    deadtime = 15
    getwd cache = yes
    socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384
    # End of performance section

    are there some lines I can use to enhance performance in my NV+ ?
  • now i found this statments:

    more RAM
    256MB -> 1024MB: only 10-20% better performance

    but thet I want to try in all shares:
    oplocks = 0 (oplocks = no)
    fake oplocks =1 (fake oplocks = yes)

    because my application handles locking itself or
    all users are allowed to read and write into the same file at the same moment.

    Problem is: How can I integrate this options in my ReadyNAS NV+ smb.conf?

    Please help me!
    thanks
  • while this old samba has still problems with time stamp I now have found an
    good working constallation for my config files:

    /etc/samba/smb.conf
    [global]
    allow trusted domains = 1
    blocking locks = 1
    delete readonly = 1
    delete veto files = 1
    dos charset = CP850
    dos file time resolution = 1
    dos filemode = 0
    dos filetimes = 1
    encrypt passwords = 1
    fake oplocks = 0
    follow symlinks = 1
    force writeback = 0
    guest account = nobody
    hostname lookups = 0
    idmap gid = 35000-65000
    idmap uid = 35000-65000
    kernel oplocks = 0
    large readwrite = 0
    level2 oplocks = 1
    load printers = 1
    locking = 1
    log level = 0 auth:2
    map acl inherit = 1
    max log size = 256
    max xmit = 16644
    name resolve order = "lmhosts host wins bcast"
    null passwords = 1
    obey pam restrictions = 1
    oplocks = 0
    orgunit =
    passwd program = "/usr/bin/passwd %u"
    preserve case = 1
    security = user
    server string = %h
    share modes = 1
    short preserve case = 1
    smb ports = 139
    store dos attributes = 1
    strict sync = 1
    sync always = 1
    syslog = 0
    syslog only = 0
    template homedir = /c/home/%U
    time server = 1
    unix charset = UTF-8
    unix password sync = 1
    veto files = "/.AppleDouble/.AppleDB/.AppleDesktop/:2eDS_Store/:2eTemporaryItem s/TheVolumeSettingsFolder/TheFindByContentFolder/Network Trash Folder/Temporary Items/"
    wins server =
    workgroup = WORKGROUP

    include = /etc/frontview/samba/smb.conf.%a
    include = /etc/frontview/samba/Shares.conf
    include = /etc/frontview/samba/Shares.conf.%U
    include = /etc/frontview/samba/addons/addons.conf

    Shares.conf:
    [ServerXXXz]
    path = /c/ServerXXX
    comment = "PseudoRootXXX f. F:"
    oplocks = 1
    force create mode = 0666
    create mask = 0666
    force directory mode = 0777
    directory mask = 0777
    admin users = "admin","Administrator"
    write list = "@rechte1","@rechte2","@rechte3","admin","Administrator"
    valid users = "@rechte1","@rechte2","@rechte3","admin","Administrator","nobody"
    vfs objects = recycle
    recycle:versions = 1
    recycle:repository = Recycle Bin
    recycle:subdir_mode = 777
    recycle:keeptree = 1
    recycle:directory_mode = 777

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More