View previous topic :: View next topic |
Author |
Message |
kiss-o-matic Guru
Joined: 19 Jul 2004 Posts: 423 Location: Tokyo
|
Posted: Sun Nov 04, 2007 6:12 am Post subject: Really crappy performance w/ Samba + Network Storage |
|
|
Real quick, I have this product:
Io Data 1TB Landisk
It's hooked up to my router. From Mapping a drive on my Windows box and copying gives
pretty normal results. Mounting the same windows share as a samba share on my Linux
box gives quite literally, results that take twice as long.
The following is the same file copied from my Linux box to a Windows share on my windows box, and then another mounted windows share which is on the Landisk
Filesize: 734,175,232 bytes, time: 169 seconds
Filesize: 734,175,232 bytes, time: 290 seconds
I don't have times copying from Windows->Landisk as I don't have Perl installed there, but I timed it and it is indeed about half the time of the same file going from Linux to Landisk.
Since I'm getting crappy performance only going to the Landisk from Linux and not my PC, I think it's safe to say the network isn't the bottleneck. I can't imagine the device itself being complex enough to give Samba issues though.
Anyone have any experience with this? |
|
Back to top |
|
|
shinjukumaster n00b
Joined: 02 Nov 2007 Posts: 9
|
Posted: Sun Nov 04, 2007 8:19 pm Post subject: |
|
|
this isn't much help to your specific problem but I've experienced no end of issues with SAMBA performance from Windows clients. SAMBA is supposed to offer FTP-like performance but I've only gotten half that at best - despite following SAMBA tuning tips for smb.conf. One thing that does appear to affect performance is specific network adapters. If anyone has pointers towards improved SAMBA performance I'd love to hear... I had a Kuro box (way too slow), then moved to Ubuntu on a VIA ITX, now I'm running Gentoo on a Geode ITX machine. SAMBA is s l o w... |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23071
|
Posted: Sun Nov 04, 2007 8:59 pm Post subject: |
|
|
What kernel version are you using? Are you mounting the device as smb or as cifs? The two exercise different paths in the kernel, and could have differing performance. Please post the output of cat /proc/mounts and the exact command you are using to copy files to/from the device. |
|
Back to top |
|
|
shinjukumaster n00b
Joined: 02 Nov 2007 Posts: 9
|
Posted: Sun Nov 04, 2007 9:42 pm Post subject: |
|
|
I am using SMB
Client is XP so just using Windows Explorer
cat /proc/mounts:
library ~ # cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,data=ordered 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
/dev/sda1 /mnt/wd500 ext3 rw,data=ordered 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec 0 0 |
|
Back to top |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Sun Nov 04, 2007 11:17 pm Post subject: |
|
|
Try using CIFS instead - Windows 2000 and above use CIFS rather than SMB. Also, I believe Hu meant to post /proc/mounts while the share is mounted. _________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
|
shinjukumaster n00b
Joined: 02 Nov 2007 Posts: 9
|
Posted: Mon Nov 05, 2007 11:06 pm Post subject: |
|
|
tarpman wrote: | Try using CIFS instead - Windows 2000 and above use CIFS rather than SMB. Also, I believe Hu meant to post /proc/mounts while the share is mounted. |
2.6.22-r9
No CIFS?
echo "net-fs/mount.cifs ~x86" ?? /etc/portage/package.keywords
emerge -uDv --newuse mount CIFS
...
Calculating ...
!!! All e-builds that could satisfy "mount-cifs" have been masked
..one of the following masked packages...
-net/fsmount-cifs-3.0.25c (masked by ~x86 keyword)
seems like support for this kernel is not out for x86
Is this going to be a long wait? |
|
Back to top |
|
|
shinjukumaster n00b
Joined: 02 Nov 2007 Posts: 9
|
Posted: Thu Nov 08, 2007 8:54 pm Post subject: |
|
|
a bit further... attempting to mount a CIFS share:
localhost / # mount -t cifs //192.168.0.3/test /mnt/testdisk
Password:
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs( manual page (e.g.man mount.cifs)
localhost ~ # modprobe cifs
FATAL: Module cifs not found.
localhost ~ # FATAL: Module cifs not found.
I had recompiled the kernel with CIFS support...
Did I miss something? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23071
|
Posted: Fri Nov 09, 2007 12:21 am Post subject: |
|
|
shinjukumaster wrote: |
Did I miss something? |
Yes, but without further information, I cannot say what you missed. When you rebuilt the kernel, did you include CIFS in the kernel or is it a module? If it is a module, did you install modules? If it is in the kernel, did you boot the new kernel? If you built a different version of the kernel, you must boot that version regardless. Use uname -v to see when the currently running kernel was built.
What is the output of zgrep CIFS /proc/config.gz when running a kernel for which you believe you have enabled CIFS? |
|
Back to top |
|
|
|