Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 12th July 2011, 03:49 PM
William Haller Offline
Registered User
 
Join Date: Jul 2005
Age: 52
Posts: 1,013
linuxfedorakonqueror
Re: USB slow copy in Fedora15

You may need to tweak your settings for cpuspeed. In my case I needed to lower the thresholds for upscaling to the minimum it would accept - up 11, down 10 and try some different options - -i 5 -r -n -w to get cpuspeed to work reasonably.
Reply With Quote
  #17  
Old 15th July 2011, 06:33 AM
Witgetsteinsbee Offline
Registered User
 
Join Date: Aug 2010
Posts: 60
linuxfirefox
Re: USB slow copy in Fedora15

hum. On reflection, the improvement was indiscernable after a few hours uptime - certainly within a day or two. Actually the whole system's like sludge since preupgrade. Root drive keeps complaining it's running low on space - my /home is on a separate partition. It's like something's eating a big hole in the system. This will be about the fourth time I've rolled over an update with preupgrade - maybe it's just creaking under the strain of old system files - although I can't see where, did all the post install tasks as pre-upgrade page said.
I Got a backup of all the important stuff last night, so may be time to do a clean reinstall today...!
Reply With Quote
  #18  
Old 2nd August 2011, 05:46 PM
Bayou Offline
Registered User
 
Join Date: Nov 2006
Posts: 2
linuxfirefox
Re: USB slow copy in Fedora15

I'm having this issue as well since moving to f15. With f12-14 honestly this was way, way faster. I never had the ten minute wait for files to finish as I'm having now, and I'm using the same usb sticks.
I tried copying from nautilus, and from the cmd line...no difference.
I've been wondering if it was the file type and have been trying several to narrow it down. Haven't tried dd to the drive yet though.
Thx for any help.

update:
I asked in IRC, #fedora....
Some suggestions. Normal buffer delay ... This is not the cause, as the delay is for upwards of ten minutes no matter the size of the copied files.
Maybe a memory stick was bad in my pc. run mem test for a day to determine is this was the case. ..... haven't done that as yet, but will try to do this tonight.(wed aug.3, 2011)
Try different formats on the usb to determine any changes in behavior....... tried ext2 and NTFS ( formatted using fdisk and mkfs.ntfs in f15 ) NTFS was not affected at all, copy cmd completed with speeds between 20-60mb/s.

I may be wrong, but this seems to be related to the format used (so far anyway) vfat. I am looking for an old hd I have to format it vfat (or with windows 98 as I have a couple old drives in storage). I want to see if the media matters, but I really don't think it will. I've tried four usb drives, all which copied fast using f12-f14, and are known to be good.

I have no idea who / where to ask a developer about the format issue if this is the case.

Last edited by Bayou; 3rd August 2011 at 08:11 PM.
Reply With Quote
  #19  
Old 1st September 2011, 01:28 PM
Witgetsteinsbee Offline
Registered User
 
Join Date: Aug 2010
Posts: 60
linuxfirefox
Re: USB slow copy in Fedora15

Tsk. I've left a reply very late I'm sorry. But should post for completeness. A hard drive failed shortly after I reinstalled from scratch. Also the usb device is increasingly unreliable: maybe dual hardware failures on my part? I think these may have been the root of the problem - that is, I can't think of anything else . Anyway, I've adapted and the problem is resolved for me.

I suppose if I was, like you, having a definite fedora issue I'd plunge in and take a guess as to the cause to get analysis started on bugzilla. If hardware is failing in all file system applications (is copying slow from command line I wonder?), pick one and work from there.
Reply With Quote
  #20  
Old 1st September 2011, 02:29 PM
tuxor Offline
Registered User
 
Join Date: Mar 2011
Posts: 177
linuxfirefox
Re: USB slow copy in Fedora15

I have this problem of slow USB copies, but only in Gnome, it seems like only the status bar is broken. When copying in terminal via rsync or dd, everything seems rather fine. But with the GUI, the status bar shows extremely strange behaviour, that is:

- the status bar seems to progress just like I would expect it, but stops just a few pixels before end and stays like this for literally minutes.
- the status bar progresses extremely fast, so that a 500mb file is copied 99% in two seconds, but suddenly stops at 99% and stays like this for even longer than in the first case...

*tested with several USB sticks, external HDDs via eSATA or USB.
__________________
Fedora (Gnome) on Lenovo ThinkPad T400s
Fedora (Xfce) on IBM ThinkPad X31
Reply With Quote
  #21  
Old 1st September 2011, 03:47 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: USB slow copy in Fedora15

Quote:
Originally Posted by bodhi.zazen View Post
That sounds correct, is there any work around to this ?
Bodhi - you really did divert this thread, tho' unintentionally.

Your issue seems to be that the USB i/o is asynchronous, so you fill memory buffers, then at the end or at umount there is a huge delay.

You can type 'sync' and this will (unreliably) cause the outstanding I/O to flush.
You can mount the flash device with the 'sync' option so all I/O completes to the hardware before the write call returns. This may cause improvement in overall time since the writes are overlapped with the other operations. The caveat about the 'sync' mount option is that if you are constantly updating the same block then you will wear the USB. So on a mass copy or rsync it's safe to use 'sync' ,but you don't want to use 'dirsync'.

The OPs problem is quite different - his system becomes unresponsive during USB I/O.

---------- Post added at 10:47 AM ---------- Previous post was at 10:16 AM ----------

Quote:
Originally Posted by alejandromx View Post
yes, my system run like a turtle when copy to USB device (large files)

the strange thing is that processors do not show overload (I have a Core2Duo at 2.00 MHz) are approximately 10% each when I copy files.

sorry for my english, I am from Mexico, my primary language is Spanish
Hey Alejandro,
BTW your english is fine - you are making yourself understood.

I think there are two possible causes of this behavior.

Years ago on Linux some of the device drivers would incorrectly lock resources during I/O. So this would prevent most of the other processes from running. They would block. If you run this command in a window it will print the list of all "runnable" processes every two seconds (or slower). It will include the 'ps' command. It may also include a few other commands when the system is busy.

while true; do echo "---" ; ps -eo state,pid,user,args | grep "^R"; sleep 2; done

If you do this in one window and then do the copy, does the list show nothing or just the copy process.
Try some commands in another window too.

It may help to 'spin' bash in another window so we have some process that only dependent on I/O like
while true; do echo "---" > /dev/null ; done

Then you will see 'ps' and 'bash' and maybe a few others in the runnable list.
If 'bash' is listed with 'ps' then it's blocking for no good reason.




----

The more likely possibility is that you are out of memory. It's likely that Fedora by default uses more DRAM than some other distros. What does this command report during a slowdown ?

free
Or use this in a separate window
while true ; do echo "---" ; free ; sleep 5; done
while copying.

Please post the results of 'free' during slowdown
If the amount of "swap/used" is large or changing then you are out of memory.

If that's the case. If the copy is using up memory and causing free buffers to drop too low, then the trick above (mount with sync option) may help.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 1st September 2011 at 03:59 PM.
Reply With Quote
  #22  
Old 26th March 2012, 09:02 PM
syoung27 Offline
Registered User
 
Join Date: May 2011
Posts: 4
linuxfirefox
Re: USB slow copy in Fedora15

I had this problem with Ubuntu 11.10/11.11, and Fedora 14. Never with Ubuntu 10-11.04, or Zorin.
I've noticed for myself the slowdown happens more often with thumbdrives than external HDD's.
Been in many threads similar to this for different distros and there's never a solid answer.

I have a solid Acer laptop. When I run Windows 7 I always get 18-28mb/s. With Fedora, sometimes I get less than 2mb/s.

Hopefully something comes about!
Reply With Quote
  #23  
Old 26th March 2012, 09:13 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: USB slow copy in Fedora15

Switch to a console terminal and do it.

If the speed is normal then it is likely a cgroups problem.

In F15/16/17 all processes from a login are run in the same cgroup, and that means that all of them are contending for the same share.

Running the copy from a VT puts it in a different cgroup, and can then get the priority it needs for doing large copies.
Reply With Quote
Reply

Tags
copy, fedora15, slow, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Extremly slow copy speed (50K/s) vinicius Using Fedora 5 18th February 2011 09:52 PM
SATA File Copy Slow mndar Hardware & Laptops 5 11th January 2009 07:54 PM
horribly slow file copy seeker010 Using Fedora 17 8th October 2008 05:58 AM
Why do files copy so slow Dan Using Fedora 20 29th September 2006 07:42 AM


Current GMT-time: 13:30 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat