PDA

View Full Version : Samba (smbd) performance problem (use 95% of cpu for no reason)



khiraly
16-05-2005, 16:31
Hi!

I use Oleg's costum firmware from here:
http://wl500g.dyndns.org/1.9.2.7-5a/WL500g-1.9.2.7-5a.zip (WL500g-1.9.2.7-5a.zip)

I can see the share files, mount with mount.smbfs, and browse it.
I can copy the files from this share (eat 30% of cpu).

I cant copy AND browse the share in the same time.

For example, I copy a movie (700MB), and I browse the directory, just like any other local directories and it hangs up for 3-4 minutes.



mount //192.168.1.1/seagate /mnt/big
cp /mnt/big/films/ehhe.avi / &
ls /mnt/big/music

And it hangs up (the ls output).

I have observed through telnet whats going on. So I have launched top, and following the smbd cpu usage.

When I copy a file, the smbd user its about 36-45%.
When I browse in this time too, it begin to eat 95-96% of cpu for 3-4 minutes (the smbd process)

Have anybody the same experience?

copying the file is about 36-45% of cpu
browsing directories is about 2-10% of cpu
in the same time(copying & browsing): 95-98% of cpu for 3-4 minutes.

How can I debug this?

Best regards,
Khiraly

khiraly
16-05-2005, 16:42
The samba share its not usable with nautilus (under gnome).
It cause 95% of cpu usage (on asus wl500g)

It is how I have discovered this bug.