LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2011, 03:45 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Tool that can determine source of smb processes that takes up much CPU time


Hi there --

We have Samba 3.0.0 (depot package) running on an HP-UX ServiceGuard 11.16 cluster. The cluster is comprised of two RP3440 RISC servers. There are three separate instances and configurations of Samba, one for each ServiceGuard package, that are running in the cluster. Two packages are on one server, while the third is on the other system.

We are periodically experiencing the smb process taking up a large amount of CPU time on the server that has two packages on it. I am trying to determine if a specific client system is the source of this problem. My thinking is when the client connects to the Samba mount, something on the client, i.e: web browser toolbar, might be causing the CPU usage to spike.

Is there a tool that can be used to determine the source of the CPU spike that is occurring on the server? Thanks.
 
Old 02-08-2011, 04:56 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't know how to monitor what is happening inside the samba processes except to increase the log level and then try to replicate the problem. Have you tried that yet?
 
Old 02-08-2011, 05:13 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
I have not tried increasing the log level due to the simple fact that I don't know how that is done. Can you please elaborate? Thanks.
 
Old 02-08-2011, 05:33 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sure - have a look in /etc/samba/smb.conf for the log level line and increase the number:
Code:
log level = 2
You probably shouldn't set it above 3 according to the info on the oreilly site. You'll need to restart Samba for the change to take effect.
 
Old 02-08-2011, 07:03 PM   #5
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
I checked the smb.conf file, and it turns out the server generates a log file for every system that connects to the server.

Accordingly, my plan is to monitor the server closely, and when the high cpu usage occurs, I will go to the directory where the log files are located, and see which one(s) is/are the ones with most recent time stamp. One of those probably would be the origin of the problem.

What do you think?
 
Old 02-08-2011, 07:08 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That sounds good - you can leave a console window open with a tail running and watch as it happens:
Code:
tail -f /var/log/samba/192.168.1.10.log
 
Old 02-10-2011, 10:24 AM   #7
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
I have an update concerning this issue. I pursued the strategy that we discussed, and when the spike occurred I compiled a list of the workstations that were connected to the Samba server at that time. I then did an on-site inspection of them, and there were five systems that had a web-browser toolbar. I removed the offending software, and the spike was no longer occurring on the server.

I am sure there will be other spikes that will occur, but I believe this course of action has helped for the time being, and will be one approach that will be used in the future.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
event/0 takes up 97%cpu time dreamtale Linux - Newbie 4 11-09-2010 06:04 PM
Benchmarking a tape drive, time to copy takes forever, time to append takes longer? jeriryan Linux - Hardware 2 06-15-2008 12:15 AM
Konqueror takes a long time to discover SMB directory contents jlinkels Linux - Software 2 03-08-2006 08:30 PM
magicdev takes up too much cpu time mattkat Linux - Software 1 12-19-2003 02:38 AM
program takes all cpu time jpflathead Programming 5 10-31-2002 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration