[Samba] high cpu load

Cochran, Wayne Owen wcochran at vancouver.wsu.edu
Fri Oct 24 14:14:48 GMT 2008


Interesting thought -- this seems to happen when the user logs in.
I tend to think the client machines are configured to automatically
cache all the crud in 'My Documents' onto the local machine
(which is a really lame idea). But I am still mystified why one file
would have to be stat'ed THOUSANDS of times. Anyway, I'll look
into it some more today and I'll see if there is some dopey anti-viral
software installed.

Wayne 

-----Original Message-----
From: Martin Zielinski [mailto:mz at seh.de]
Sent: Thu 10/23/2008 11:44 PM
To: Cochran, Wayne Owen
Cc: samba at lists.samba.org
Subject: Re: [Samba] high cpu load
 
Hello,

just my 2cents.  What about the possibility, that an anti-vir tool scans 
all the files over and over?

~ Martin

Wayne Cochran schrieb:
> I think I have narrowed down the problem why smbd processes are soaking
> up so much CPU on our file server. Here are some selected samples from
> strace output as I attached to the offending smbd process:
> 
[...]
> read(5, "\0\0\0H", 4)                   = 4
> read(5, "\377SMB2\0\0\0\0\30\7\310\0\0\0\0\0\0\0\0\0\0\0\0\4\0\230"..., 
> 72) = 72
> stat64(".windows_settings/Application Data/SolidWorks 
> 2008/Scheduler_2/swbo1.mdb", {st_mode=S_IFREG|0744, st_size=974848, 
> ...}) = 0
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=25416, 
> len=1}, 0xbfa355d4) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=25416, 
> len=1}, 0xbfa355f4) = 0
> write(5, "\0\0\0d\377SMB2\0\0\0\0\210A\310\0\0\0\0\0\0\0\0\0\0\0"..., 
> 104) = 104
> gettimeofday({1224788202, 767660}, NULL) = 0
> select(30, [5 21 29], [], NULL, {60, 0}) = 1 (in [5], left {60, 0})
> read(5, "\0\0\0)", 4)                   = 4
[...]
> 
> Is this always being read every friggin' time they log in!?!?!
> 
> Any ideas on what is going on here!?!?
> 
> --w
> Wayne O. Cochran
> Clinical Assistant Professor, Computer Science
> Washington State University Vancouver
> wcochran at vancouver.wsu.edu
> http://ezekiel.vancouver.wsu.edu/~wayne
> 
> 
> 
> 


-- 
Martin Zielinski 			mz at seh.de		
Softwareentwicklung			T +49 (0)521 94226 76	

SEH Computertechnik GmbH 		www.seh.de




More information about the samba mailing list