Fedora Networking :: F14 Samba Server With Slow Write Speed
Aug 4, 2011
I had a F14 samba server working flawlessly now for a quite time. Unexpectedly about a month ago the write speed slowed down around 64kbit/s and that's really slow. I haven't changed any configs, only updated the server. I've troubleshooted this from many angles:
-It is not a network issue because sftp writes are good.
-It is not a RAID1 issue because write speed from another directory (locally) are good.
So basically samba is the only thing left.
Here's example from smb.conf:
comment = My share
path = /mnt/RAID_share
writeable = yes
browseable = yes
writelist = +smbuser
Here's a snip from logs today:
[2011/08/04 09:04:27.509273, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2011/08/04 09:04:47.526336, 1] smbd/server.c:240(cleanup_timeout_fn)
Cleaning up brl and lock database after unclean shutdown
[2011/08/04 09:17:57.634660, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2011/08/04 09:18:17.635196, 1] smbd/server.c:240(cleanup_timeout_fn)
Cleaning up brl and lock database after unclean shutdown .....
When i try to copy files from my samba server (Ubuntu 9.10) to my windows seven media center, the speed is extremely slow. So slow that is better to download 100mb file from the internet, than from my lan. And on my lan, every card and switch is at 1000 mbps speeds on cat5 cables. And from XP or other linux machine
I have recently migrated my file server over to a HP Microserver. The server has two 1TB disks, in a software RAID-1 array, using MDADM. When I migrated simply moved the mirrored disks over, from the old server Ubuntu 9.10 (server) to the new one 10.04.1 (server).I Have recently noticed that write speed to the RAID array is *VERY* slow. In the order of 1-2MB/s order of magnitude (more info below). Now obviously this is not optimal performance to say the least. I have checked a few things, CPU utilisation is not abnormal (<5%) nor is memory / swap. When I took a disk out and rebuilt the array, with only one disk (tried both) performance was as to be expected (write speed >~70MB/s) The read speed seems to be unaffected however!
I'm tempted to think that there is something funny going on with the storage subsystem, as copying from the single disk to the array is slower than creating a file from /dev/zero to the array using DD..Either way I can't try the array in another computer right now, so I though I was ask to see if people have seen anything like this!At the moment I'm not sure if it is something strange to do with having simply chucked the mirrored array into the new server, perhaps a different version of MDADM? I'm wondering if it's worth backing up and starting from scratch! Anyhow this has really got me scratching my head, and its a bit of a pain! Any help here would be awesome, e-cookies at the ready! Cheers
I am new to Centos and linux in general. I have just got myself a Dell 1950 server with 2x 1T SATA2 hard disks in it. now the server comes with a PERC5i Raid card with 512Mb. Well I put these in raid 0 and the raid card initilzed the disks to 128 writeback and read ahead. When I loaded centos it did not recognize the dell layout so therefore wanted to initalize it again, so I done this as it wanted. Now I created a 80gb boot and o/s partition and a 100gb swap the rest was created into LVM space to run solus vmwear. But I found the raid 0 to be getting extreamly slow read and write speeds.
Example same disks Desktop PC max 214mb/s windows vista 64 Server with centos 104mb/s
Now I am not sure but I am told that I need to align the o/s with the raid card settings but I have no idea how to do this. How to do this in plain easy step by step instructions. I mean how to calculate it, how to format the disk this way, and what files to edit where if needed. I have spent hours trying to figure out why my raid 0 is slower than a single disk.
I am hoping someone can help me I setup a brand new ubuntu 11.04 64bit system with:-AMD Phoenom 840 (3.7GHz overclocked) 8GB DDR3 RAM.WD20EARS x 4madmin (RAID5) SetupFor some reason I cannot get the write speed above 15mb/s & I have tried modifying the cache_Stripe_size from 256 to 8192.My read speeds are great burst at 120mb/s & stable at about 60mb/s.The only other possiblility is it could be my HDs which I read causes slow writes not sure if thats true though. point me in the right direction so I can fix this issue as I don't want to move to the dark side (Windows) .
I have set up a file server (Ubuntu Server Edition) for our lab. People can connect to common Samba file shares from their personal laptops/desktops, which run either Windows Vista or Mac OSX. The guys with OSX have upload/download speeds of ~2 MB/s, while the Vista machines are slogging away at ~200kb/s for downloads and ~400kb/s for uploads. In both cases, the connection are through wired ethernet ports which should function identically. Since the Macs work fine on the same network, I assume this is a Vista issue.
I have tried troubleshooting one of the Vista machines by: 1. Turning off the Remove Differential Compression feature 2. Disabling autotuning following these instructions 3. Adding a registry key following the same link above.
But nothing has improved. Anybody have any advice on addition tweaks to the Vista machine? Is there a chance that this is actually a server-side/samba issue?
I started a thread in the hardware section, but I've narrowed it down to being a software issue. The problem is that all USB devices are written to at about 1MB/s, and is read at equally slow speeds. After testing my computer on an older Ubuntu release (8.04 32bit), I verified it wasn't a hardware issue, because the read and write speeds were like they were supposed to be. Then, I downloaded the 32bit release of the Ubuntu version I'm currently using (an up-to-date version of Natty) and booted the live cd of it. It was equally slow there as well.
The read/write speeds are equally poor on openSUSE and Arch Linux, so I don't think that it's an issue with Ubuntu, as much as it seems like a kernel issue (or maybe not, you guys can correct me if it seems like it isn't ).
I am experiencing very slow speed with the Intel 5300AGN on a Dell Studio XPS notebook and the iwlagn driver. I'm using Fedora 12 with all the latest updates available. When connecting to a G network with WPA2 security, everything goes fine at "normal" speed. When connecting to a N network with WPA2 security, the download speed falls between 0 k/s and 20 k/s max. The connection speed (as stated by Network Manager and iwconfig) is between 0 kb/s (?) and 11 Mb/s during the same session. I'm can't connect through ssh or download with scp (stalled). Web pages take a lot of time to render.
When connecting to the same N network on Window 7, everything runs fine enough. Every N network I try is the same story. Works fine on windows, badly on F12..
So what kind of speed are you getting with Samba over your local network? What speeds should I be seeing? I'm currently transferring a large amount of files from one computer to another. I'm taking everything off of a desktop drive on computer A and putting it on an IDE disk on computer B. Transfers are running at around 600-700 KB/Sec. I've seen moments, mostly when the transfer starts, where speeds were at 1000KB/Sec, but that lasts a very short while and then starts to "degrade" until it reaches 600+ KB/Sec. It then seems to level off there. Is this acceptable? Is this all I can expect to get out of a 10/100 home network? The current transfer is 2.5GB. Looks like it will take 1 hour+ to complete. Transferred 12GB last night. Was looking at 4-5 hours to complete so I left it running while I was sleeping. Personally, I think this is slow. I think it could be exponentially faster.
While I'm running these transfers I'm looking at some documentation on Samba speed tweaks. I've been adding little tidbits here and there to both smb.conf files. Some of it seems to help. Sometimes there is a noticeable difference in speed. Sometimes the changes actually cause degradation in speed. If you have a speed tweak that you would like to share the information will be gratefully accepted. Samba gurus welcome to reply. How do you set up Samba in an office environment? How do you set Samba up in an environment where performance is critical?
Maybe I should forget about Samba and try using a different transfer protocol? Am I expecting too much from Samba?I should stop before I really start to ramble. Anyhow, networking beats the heck out of the sneakernet, at any speed!As a side note, or maybe quite importantly, there is a router and a network switch (not a hub) involved here. Maybe something to consider?
I'm having a strange problem with data transfers between systems. I have a file server + my desktop. Both are running Debian 8.3. I have a samba share running on the file server and I mount the shares on my desktop on boot via /etc/fstab
When I copy a file using the nautilus from my home folder (on my HDD) on my desktop to the mounted network location, my transfers start out at gigabit speeds 80MB/s-90MB/s for a couple seconds and then drop down to about 8MB/s
But when I terminate the transfer and then use scp to transfer the same file, I get consistent gigabit speed throughout the transfer. I am not sure what is going on.
I have the following nasty issue:I am using fedora 12 and I use vpn for working remote.When I browse the internet the speed is very slow!even when I do a yum update it downloads the packages with max 100kb. if I drop the vpn connection I download the packages with 1Mbdo you know what the problem could be? i created the vpn connection using the network manager...it is a regular pptp connection for the vpn!
I'm trying to set up a fileserver on my 10.04 machine, and access the files from Windows 7 via wifi. I can see everything alright, but the transfer speed to Windows never gets higher than 70KBps. Both computers can access the web at 800+KBps. I've also checked with an OS X machine on the same network, which was also extremely slow, so I'm fairly sure that the problem is on the server's side.
i have a windows xp machine with filesharing enabled and the shares set up and ready to go i have a laptop on which i did a fresh install of fedora 15 with samba and all the necessary packages to make the fedora machine a samba client to the windows machine.
my problem is that when i go into nautilus and click on the network tab it shows nothing not one single computer...the fedora machine doesnt even show up.....i have done all the tests i can think of and confirmed that the smb service is running, the nmb service is running, samba is allowed thru the firewall and all the computers are in the same workgroup..yet neither one can see each other even more frustrating is when i go to mount a windows share thru the terminal it shows a successful mount (as i type in the command hit enter and recieve no errors) BUT when i go into the mount directory and open the new directory i made for the samba share it shows nothing there not even when i go into the windows machine and add a file to the shared folder...PLUS for some strange reason the /mnt directory already had two empty files called "home" and "boot" already in it i have no clue what thats about but ok, then on the windows side i go into "network places" and click on "show workgroup computers" and the windows machine will show up but not the fedora machine.
these are the commands i have used to install and get samba working- "yum install samba system-config-samba samba-client cifs-utils" "service smb start" anyway until i can figure this out i have decided to start from scratch and erase samba from the machine completely and i am hoping that maybe some one can read all this and come up with some ideas...maybe there is just something i forgot when i was setting this up yesterday its possible i just went to fast and skipped a step again all i want is the fedora 15 machine to just be a samba client with read/write priviledeges
I have just formated and did a fresh install to start all over. I installed Ubuntu 9.1 and everything went fine but the network. The computer serve as a NAS and MediaPlayer. When getting a file from the server, I get a speed of 40-60mb/sec, which are good for a Gigabit network. When I try to put a file in, the speed can't pass more than 1mb/sec and often stop.
When using launchpad and the ubuntu daily build website it is very slow. I get 1.2mb/s normally and the speed drops quickly to 0kb/s This is the case from any version of ubuntu that is installed on my laptop.In windows it is no problem, equally there is no problem from a live cd or an install on my external hard disk. Is canonical blacklisting/slow listing my ip?
I am behind a university network but am sure this problem occurs at home .I did a clean install and had no problem until about an hour ago. When I tried to re download a project using bzr my speed instantly ropped.I had downloaded it fine a couple of hours ago. I hope that someone can shine some light on this, its very hard to work on projects if I can't download them.
I have very suboptimal Internet speed in Wifi with Ubuntu. Normally in WIndows 7 I get download speeds up to 800 KB/s and a very fast Wifi experience, but in Ubuntu I get 100KB/s maximum and web page load speed is very extremely slow. Also, pinging to AP often gives very high response times and a lot of lost packages while in Windows they are very low and none packages are lost. I have a Netgear wg111v3 which worked out of box when I installed Ubuntu but always with this problem. It is updated and I've reinstalled Ubuntu many times..
Also I forgot to say that in Ubuntu the connection goes down very often and sometimes will not connect again until I reboot. Again in Windows never happened that. Motherboard: GA-MA74GM-S2H CPU: AMD Athlon 64X2 dual core 2 GB RAM Ubuntu 10.10 64 bit Wireless adapter Netgear wg111v3 USB .....
We have a server and we have instales an Open suse 10.3 on it. We created a Samba server also. Made to share folder, that we acces from network from other computers that have xp.
The problem is if we try to copy from server it is very slow only 100-300kb/s. The strange thing is that if i copy 1 file then its slow but if i start to copy another one the speed gos up to 10-15mb/s. Evry time i want to copy somethin or install from that server i need to start another copy. If i copy from a comp to that server the speed is normal only if i copy from server its slow.
I've been using Ubuntu 8.04 for about a year and the wireless has been fine but now it's gone screwy and I can't figure out why. This has happened on my laptop and wife's who uses Ubuntu Hardy also. The speed drops to almost 0 mb/s whenever the signal strength is less than 95%.
It isn't the internet connection as vista (I dual boot) works fine below 95% signal strength. To get the internet speed to be at a level that can load an internet page, I have to within 3 feet of the router!! Both of the laptops don't use ndiswrapper, the internet connected straight away from a fresh install.
I'm experiencing slow speed transfer between two wireless connected laptops running ubuntu 9.10. Using SSH to tranfer files between these two laptops, which connect to the internet via a wirelesss router, with good speed. This is why I'm surprised by this low speed : 52.3 KB/s, averaging 3 hours and 31 minutes for a 700 Mb movie. Is there any way to make this faster ?
I have the problems with transfer speed between samba and Windows XP clients.
Samba server configuration: Quad Core 6600 CPU. 4 Gb RAM OpenSUSE 11.2 with kernel "126.96.36.199-0.1-desktop" Samba - samba-3.5.1-1.1.i586 Test: 4 GB File copying. One file.
Transfer speed from Samba Server to Windows 7 and XP clients: (Windows clients copy file from Server share -> to local drive) From Server to Windows 7 client 1: 85-90 Mb/sec From Server to Windows 7 client 2: 90-100 Mb/sec From Server to XP1 client 3 75-100 Mb/sec
Transfer speed from Windows 7 and XP clients TO Samba Server: (client copy file from local drive -> to server Share) From Server to Windows 7 client 1: 12-20 Mb/sec From Server to Windows 7 client 2: 30-35 Mb/sec From Server to Windows XP client 1 20-27 Mb/sec
(Copying file from Windows local drive to Windows remote share) From Window 7 client 1 TO Windows XP client 1 40-50 Mb/sec From Window 7 client 2 TO Windows XP client 1 50-60 Mb/sec
Copying file from Windows 7 client 2 share -> TO Windows XP client 1 show me 100-120 Mb/sec speed permanent. Copying file from Linux hosts to NFS server is stable 50-90 Mb/sec bidirectional.
This part of my smb.conf file Code: # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed. # Date: 2009-10-27 [global] log level = 1 debug level = 0 max log size = 50 .....
I have very slow write speed when copying file from Windows clients to Samba Share. Samba speed is slower than Windows native clients connections ?
I replaced only my mainbord and cpu and Ubuntu 9.10 boot just fine. The only issue that I have is that my connection speed dropped from 10Mb to 3Mb. I try the connection on my laptop and it is fine 10Mb, so the problem is with the PC. What else to try before reinstall Ubuntu as a final step?
In mi fstab file I mount a smb file server at boot. The code is: //<ip address>/data /home/eng-2/NAS smbfs credentials=/home/eng-2/.smbcredentials,dir_mode=0775,gid=1000,uid=1000 0 0 Transfer rate to the server is approx 100 KB/s Whilst transfer rate from the server 16 MB/s If I mount it from Places>connect to server. Both to and from speeds are 16 MB/s. Why is it so slow when mounted through fstab?
So i am very new to linux based OS. Just started getting used to the terminal. but my problem is i am trying to install a game on steam and it is downloading very slow. i am used to getting close to 700 kb/s on windows 7 but on ubuntu 11.04 i am only getting 170-180 max. now i have searched all over and tried to fix it on my own but i just cant figure it out and am getting very frustrated. so if anybody has an idea as to how to fix this it would be greatly appreciated. (have looked through the forum by the way but as i said im new to linux and im not actually sure if im looking at the right things) but im using a wired connection. it says im connected to something called auto etho. and there is something called a loopback connection or something like that.