LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2009, 08:40 AM   #1
Amy84
LQ Newbie
 
Registered: Aug 2009
Location: Netherlands
Distribution: CentOS 5.3
Posts: 27

Rep: Reputation: 15
smbd eating up cpu


Hey all,

I have server which runs a wiki. (CentOS 5.3) I have configured Samba for my backup. This is all set-up like my other servers.
Going to Windows ESX I'm able to reach my files normally.

But:
1. When I run the backup only 2 directories are done, then it just stops.
2. Trying to view the properties (see how many files and folders) it is taking ages and besides that it is indicating I have loads of folders (about 500.000 and its not even half way there) which of course isn't true.

So I looked on my server:

With top:

Code:
top - 14:28:37 up 41 days,  5:06,  3 users,  load average: 0.85, 0.72, 0.58
Tasks: 112 total,   2 running, 110 sleeping,   0 stopped,   0 zombie
Cpu(s):  3.7%us, 43.7%sy,  0.0%ni, 37.0%id,  0.0%wa,  1.3%hi, 14.3%si,  0.0%st
Mem:    255548k total,   250716k used,     4832k free,    27540k buffers
Swap:   524280k total,       60k used,   524220k free,    48328k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1565 root      16   0 15232 4328 3032 R 60.8  1.7  22:29.22 smbd
    1 root      15   0  2064  624  536 S  0.0  0.2   0:00.81 init
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:01.15 ksoftirqd/0
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.88 events/0
    6 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
CPU variades between 58 and 73

In my log file:

Code:
[2009/09/08 14:30:40, 3] smbd/process.c:process_smb(1069)
  Transaction 4582741 of length 594
[2009/09/08 14:30:40, 3] smbd/process.c:switch_message(927)
  switch message SMBtrans2 (pid 1565) conn 0x99c8440
[2009/09/08 14:30:40, 3] smbd/trans2.c:call_trans2qfilepathinfo(3304)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2009/09/08 14:30:40, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
  call_trans2qfilepathinfo proc/self/task/1565/cwd/sys/block/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/fd0/subsystem/sda/subsystem/ram0/subsystem/ram13/subsystem/ram14/dev (fnum = -1) level=1004 call=5 total_data=0
[2009/09/08 14:30:40, 3] smbd/process.c:process_smb(1069)
  Transaction 4582742 of length 594
[2009/09/08 14:30:40, 3] smbd/process.c:switch_message(927)
  switch message SMBtrans2 (pid 1565) conn 0x99c8440
[2009/09/08 14:30:40, 3] smbd/trans2.c:call_trans2qfilepathinfo(3304)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005
[2009/09/08 14:30:40, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
  call_trans2qfilepathinfo proc/self/task/1565/cwd/sys/block/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/fd0/subsystem/sda/subsystem/ram0/subsystem/ram13/subsystem/ram14/dev (fnum = -1) level=1005 call=5 total_data=0
[2009/09/08 14:30:40, 3] smbd/process.c:process_smb(1069)
  Transaction 4582743 of length 594
[2009/09/08 14:30:40, 3] smbd/process.c:switch_message(927)
  switch message SMBtrans2 (pid 1565) conn 0x99c8440
[2009/09/08 14:30:40, 3] smbd/trans2.c:call_trans2qfilepathinfo(3304)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1028
[2009/09/08 14:30:40, 3] smbd/trans2.c:call_trans2qfilepathinfo(3355)
  call_trans2qfilepathinfo proc/self/task/1565/cwd/sys/block/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/fd0/subsystem/sda/subsystem/ram0/subsystem/ram13/subsystem/ram14/dev (fnum = -1) level=1028 call=5 total_data=0
This is my %S.log btw

The total quatity I want to backup is about 8GB. It has been running for 2 hours now and it's almost halfway there.

Looks to me it's in some sort of loop. But i could be mistaken. Anyone having a clue?

Thanks in advance
 
Old 09-08-2009, 09:24 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Quote:
call_trans2qfilepathinfo proc/self/task/1565/cwd/sys/block/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/md0/subsystem/fd0/subsystem/sda/subsystem/ram0/subsystem/ram13/subsystem/ram14/dev (fnum = -1) level=1028 call=5 total_data=0
I doubt you really have a path with the same 'md0/subsystem' string repeated multiple times. Looks like some kind of circular symlink ?
 
Old 09-09-2009, 01:42 AM   #3
Amy84
LQ Newbie
 
Registered: Aug 2009
Location: Netherlands
Distribution: CentOS 5.3
Posts: 27

Original Poster
Rep: Reputation: 15
Well looking in my directories I don't. But how do I get rid of that symlink?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kacpid eating cpu 99% cpu time! tjclancy Linux - Software 13 09-19-2011 04:08 PM
many instances of smbd taking up much cpu time kaplan71 Linux - Server 1 05-10-2007 01:54 PM
XFS is eating my CPU xKintaro Debian 0 09-27-2005 10:01 AM
ksoftirqd eating >60% of my CPU subaruwrx Fedora 0 09-22-2004 02:10 AM
KDE problem, eating away CPU apokryphos Linux - Software 4 08-24-2004 01:30 PM


All times are GMT -5. The time now is 04:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration