[Samba] Files That Constantly Change

Cody Jarrett cody.jarrett at itfreedom.com
Tue Sep 25 04:20:34 GMT 2007


Fstab has "defaults" for all the mounts. The hard drives are just  
maxtor drives in a raid 1 with a 3ware card, similar setup at other  
locations. This server is the only server at the site and is the pdc,  
the workstations are joined to the domain. Here is the global section.

Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

# Global parameters
[global]
         workgroup = DOMAIN
         netbios name = SERVER
         server string = Samba Server
         interfaces = eth0, 127.0.0.1/8
         passdb backend = ldapsam:ldap://localhost
         log level = 1
         log file = /var/log/samba/%m_%U.log
         max log size = 2048
         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
         load printers = No
         add user script = /usr/sbin/smbldap-useradd -a -m -c '%u' '%u'
         delete user script = /usr/sbin/smbldap-userdel %u
         add group script = /usr/sbin/smbldap-groupadd -p '%g'
         delete group script = /usr/sbin/smbldap-groupdel '%g'
         add user to group script = /usr/sbin/smbldap-groupmod -m '% 
u' '%g'
         delete user from group script = /usr/sbin/smbldap-groupmod - 
x '%u' '%g'
         set primary group script = /usr/sbin/smbldap-usermod -g '%g'  
'%u'
         add machine script = /usr/sbin/smbldap-useradd -w '%u'
         logon script = logon.bat
         logon path =
         logon drive = H:
         domain logons = Yes
         os level = 65
         preferred master = Yes
         domain master = Yes
         wins support = Yes
         ldap admin dn = cn=root,dc=domain,dc=org
         ldap group suffix = ou=Groups
         ldap machine suffix = ou=People
         ldap suffix = dc=domain,dc=org
         ldap ssl = no
         ldap user suffix = ou=People
         idmap backend = ldap:ldap://localhost
         idmap uid = 16777216-33554431
         idmap gid = 16777216-33554431
         inherit permissions = Yes
         hosts allow = 127., 10.3.43.
         hide dot files = No


On Sep 24, 2007, at 5:23 PM, Adam Tauno Williams wrote:

>> Does anybody have any tuning tips for a samba 3.0.23 server that is
>> acting as a PDC with ldap backend and file server. The problem I'
>> having is a certain program runs in XP workstations that accesses
>> files on one of the shares, it apparently opens lots of files and is
>> constantly making changes to them. When I run top, I see each smbd
>> process for each workstations is consuming about 30% of the cpu and
>
> This can be the result of many issues include types of drives, drive
> controller, and network card driver.  Using the correct filesystem
> helps, and setting noatime on the mount may help a great deal as well
> (atime is just stupid).
>
>> there are 3 workstations, the owner for the processes is the domain
>> user logged onto the workstation. I have the same setup at a
>> different site running samba 3.0.10 with just a smbpasswd backend and
>> each workstation consumes about 2% of the cpu at most. These are in
>> the samba logs for the workstation and are constantly being output:
>
> Is this server the PDC or a member?  If it is a PDC is ldapsam trusted
> enabled?  That can be a huge win if your configuration meets the
> requirements.  If it is a member are you using winbind or NSS?
>
>> [2007/09/21 10:17:47, 3] smbd/process.c:process_smb(1091)
>>    Transaction 17604 of length 150
>> [2007/09/21 10:17:47, 3] smbd/process.c:switch_message(886)
>>    switch message SMBtrans2 (pid 4972) conn 0x80b9b50
>> [2007/09/21 10:17:47, 3] smbd/trans2.c:call_trans2findfirst(1359)
>>    call_trans2findfirst: dirtype = 22, maxentries = 1366,
>> close_after_first=1, close_if_end = 1 requires_resume_key = 1 level =
>> 0x104, max_data_bytes = 16384
>> [2007/09/21 10:17:47, 3] smbd/dir.c:dptr_create(491)
>>    creating new dirptr 256 for path Share, expect_close = 1
>
> -- 
> Adam Tauno Williams, Network & Systems Administrator
> Consultant - http://www.whitemiceconsulting.com
> Developer - http://www.opengroupware.org
>
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list