Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMB-Server uses way too much CPU




13.01.2007 um 20:36 Dan Shoop wrote:

The max we have are 350 to 400 simultaneous connections. This should work with a G5 Dual and enough memory.

Obviously not, at least not for your configuration which has length directory structures which require a lot of parsing and caching.


While you say that if one user connects you see %CPU peg. %CPU is not a metric and in fact you want %CPU at 100% as anything else is an inefficiency with resources. The part you've missed is that this does manage to scale and that as users increase it still does work, it just takes 40 seconds.

It is okay for me, that a task uses up all the cpu, but why does it need such much cpu, that is my question.


If you run a test where these same users connect to a different test sharepoint with fewer directory entries I'll bet donuts that you don't have this problem. That will tell you that the problem isn't with smbd but with poor configuration of your filesystem. So to fix the problem you'll need to address that.

The not so logical part for me is, that this server hat no problems to serve data to 350 afp-users and 50 smb-users with 10.3 and also now with 10.4.8 there is no problem with the 350 afp-users but 1 single smb-user makes the server stall for quiet a while:


At the moment I have over 91 apf-users logged in and the cpu is on 50% but when just one smb-user logs in, the cpu goes to 100% for 3 minutes and then the server goes back to normal and the content of the share appears on the client desktop. To mount the same directory over afp works without and hit on the cpu of the server and the 720 folders appear after 3 seconds.

Have you done any tuning for AFP & SMB ?
http://www.afp548.com/article.php?story=optimizing-mac-osx-server- file-services
http://docs.info.apple.com/article.html?artnum=304106

I did this stuff but the the problem also occurs if there are zero AFP- and only 1 SMB-user connected. So it has nothing to do with overload of the server.

No it does not logically follow that the server is overloaded, it follows that you've asked it to perform a task that takes more time then you'd like to to the complexit of the task given it.

Can it really be, that a task, that is no problem for afp to perform, is such a huge problem for the samba-server? Can it really be, that for the samba server it is such a huge deal to share a directory with 720 folders in it? If so should this not be mentioned somewhere as limiatations of the samba server?


Also, is this server maxed out on memory?

it has now 8GB of RAM.

Thank you very much for your time and knowhow!

With best regards

Tobias Linder-Geiger
CTO Mac Division Letec AG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >SMB-Server uses way too much CPU (From: Tobias Linder-Geiger <email@hidden>)
 >Re: SMB-Server uses way too much CPU (From: david <email@hidden>)
 >Re: SMB-Server uses way too much CPU (From: Tobias Linder-Geiger <email@hidden>)
 >Re: SMB-Server uses way too much CPU (From: david <email@hidden>)
 >Re: SMB-Server uses way too much CPU (From: Tobias Linder-Geiger <email@hidden>)
 >Re: SMB-Server uses way too much CPU (From: Dan Shoop <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.