Hi we have a pretty nasty CPU usage problem running Samba 2.2.2 on Solaris (SunOS infpdb01.atinfopop.com 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-80) The server was coping OK with the load then 'something changed' and CPU usage has been climbing over the last couple of weeks. I've posted CPU, config files and a sambastatus snapshot below. Other information that may be helpful: - We have a fair amount of load (maybe 20 8K file requests a second) - The load has not changed much over the last couple of months (but CPU has been creeping up). - we have lots of files (30K or so) - directories typically have no more than a dozen of so files each - we are connecting to the server from 4 Windows2000 clients (application servers) - server is a SunE420R dual proc with a couple of Gb memory (also running Oracle) - storage is on an HP256 SAN device. Any help you can provide is appreciated. Any troubleshooting advice also appreciated. Thanks! User CPU Util Cum Block Block Process Name PID PPID Pri Name ( 200% max) CPU IO Rate RSS On ---------------------------------------------------------------------------- ---- smbd 23113 23083 20 root 75.3/28.6 53047.7 0.2/ 0.9 11.1mb NONE smbd 23114 23083 41 root 70.9/29.5 54763.2 0.0/ 0.9 11.1mb PRI smbd 23111 23083 32 root 19.8/29.1 53920.2 0.0/ 0.8 11.2mb PRI smbd 23112 23083 40 root 9.9/31.4 58260.9 0.0/ 3.3 12.8mb PRI Config File: [global] workgroup = US netbios name = xxxSAMBA01 interfaces = 208.xx.xxx.xxx security = SHARE log file = /var/adm/smb.log.%m shared mem size = 104857600 os level = 65 comment = xxxx-smb guest account = xxx create mask = 0644 directory mask = 0775 [app_data] path = /app_data writeable = Yes create mask = 0775 guest ok = Yes locking = No oplocks = No Status: [infp@infpdb01:/export/home/infp]$ /usr/local/samba/bin/smbstatus -d Unknown parameter encountered: "shared mem size" Ignoring unknown parameter "shared mem size" using configfile = /usr/local/samba/lib/smb.conf Opened status file ???0?? Samba version 2.2.2 Service uid gid pid machine ---------------------------------------------- app_data infp admins 23111 xxxxp03 (208.xx.83.249) Mon Oct 29 16:19:39 2001 app_data infp admins 23114 xxxxp02 (208.xx.83.248) Mon Oct 29 16:19:40 2001 app_data infp admins 23112 xxxxp04 (208.xx.83.250) Mon Oct 29 16:19:39 2001 app_data infp admins 23113 xxxxp01 (208.xx.83.247) Mon Oct 29 16:19:39 2001 Locked files: Pid DenyMode R/W Oplock Name -------------------------------------------------- 23111 DENY_NONE RDONLY NONE /app_data/data/xxxx/uploads/xxxx_m.grande.bmp Wed Oct 31 19:39:32 2001
I traced the instruction calls going through SMB. I identified lots of calls going to getdents64. I tracked this down to be the call to scan a directory for files. I then searched for directories with large numbers of files. Found one, an uploads directory, with 25K files. I reduced the directory size and CPU has gone back down to a sane level.
I have a samba PDC. all its working ok. i have one share per user and maps its to the users with the "net use p: /home" in the logon script. the problem is that im using this script to add a drive in "My Computer" and the users copy important data to this drive and later ill back up directly in the server... using the policies i activate roaming profiles and now all the "Aplication Data" is copying to the drive of the user.. thats ok, but i want to know if there is a way to choose another directory to store the data of the profile of the users and "hide" (browseable = no) this data to the user, because the users only knows about microsoft office files and when they come to its own directory the see a lot of garbage (aplication data containign IE, Outlook Express, etc.) thx
On Wed, Oct 31, 2001 at 08:01:03PM -0800, Peter Bryant wrote:> Hi we have a pretty nasty CPU usage problem running Samba 2.2.2 on Solaris > (SunOS infpdb01.atinfopop.com 5.8 Generic_108528-03 sun4u sparc > SUNW,Ultra-80) > > The server was coping OK with the load then 'something changed' and CPU > usage has been climbing over the last couple of weeks. I've posted CPU, > config files and a sambastatus snapshot below. Other information that may > be helpful: > - We have a fair amount of load (maybe 20 8K file requests a second) > - The load has not changed much over the last couple of months (but CPU has > been creeping up). > - we have lots of files (30K or so) > - directories typically have no more than a dozen of so files each > - we are connecting to the server from 4 Windows2000 clients (application > servers) > - server is a SunE420R dual proc with a couple of Gb memory (also running > Oracle) > - storage is on an HP256 SAN device. > > Any help you can provide is appreciated. Any troubleshooting advice also > appreciated. Thanks!Are you getting messages that state : request_oplock_break: PANIC : breaking our own oplock requested for dev = XXXX, inode = YYY and no fsp found ! If so, please contact me asap. Thanks, Jeremy.