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
  #1  
Old 24th August 2011, 12:19 AM
cruisecho Offline
Registered User
 
Join Date: Aug 2011
Posts: 4
linuxfirefox
File transfers (cp, mv and rsync) slow system tremendously

I have a problems that is becoming very annoying. When ever I transfer large files using cp, mv, rsync or dolphin the system will slow down to the point that it's unusable. It will sometime hang completely and not accept any input until the file is transferred. I have no clue what could be causing this problem but I know it shouldn't be happening.

I am using Fedora 15 (2.6.40.3-0.fc15.x86_64) with KDE 4.6. have a Phenom II 955 processor, 6 GB of system ram and the OS and swap file is on an 80 GB SSD. Copying files in the SSD doesn't cause any problem, but moving files between my other two large HDDs causes the extreme slow down. Using htop I can see that my system load jumps to between 3 and 4, but my RAM and CPU usage stays low during the transfer.

Here are two commands that take about 10 mins to run and make the system unusable while it's running. It usually transferring around 2-20GB worth of data during the transfers:


cp -a /media/data.1.5/backup/Minecraft/backups/* /media/data.0.5/backup/Minecraft/backups/

rsync -a /media/data.1.5/backup/ /media/data.0.5/backup/


/media/data.1.5/ is the mount point for a 1.5 TB internal SATA drive, and /media/data.0.5/ is the mount point for a 500 GB internal SATA drive.
Reply With Quote
  #2  
Old 24th August 2011, 12:59 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,108
linuxfedorafirefox
Re: File transfers (cp, mv and rsync) slow system tremendously

How are you starting these commands? On a console terminal, or within an X terminal session?

The reason I'm asking is that one of the things F15 uses are cgroups. This gives higher priority to GUI type logins, and this could affect how the scheduling gets done for these copies.

Last edited by jpollard; 24th August 2011 at 01:01 AM.
Reply With Quote
  #3  
Old 24th August 2011, 01:00 AM
cruisecho Offline
Registered User
 
Join Date: Aug 2011
Posts: 4
linuxfirefox
Re: File transfers (cp, mv and rsync) slow system tremendously

I'm using Konsole.
Reply With Quote
  #4  
Old 24th August 2011, 01:16 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,108
linuxfedorafirefox
Re: File transfers (cp, mv and rsync) slow system tremendously

Try logging in at a console terminal (ctl-alt-F2 through F6). Login and start a copy. Then switch back to the GUI (alt-F7 I think it is, but it could be F1).

Let us know if that changes the situation a bit. I'm not sure it will, but what should happen is that the console terminal will be put in a separate cgroup from the GUI login. That MAY give the GUI suitable CPU time, and I/O priority, for normal operation.
Reply With Quote
  #5  
Old 24th August 2011, 01:34 AM
cruisecho Offline
Registered User
 
Join Date: Aug 2011
Posts: 4
linuxfirefox
Re: File transfers (cp, mv and rsync) slow system tremendously

I transferred a 3.8GB file in the other terminal (F2) like this.
cp -a /media/data.1.5/largefile /media/data.0.5/
The CPU usage was higher than before, but the system load never went over 1 and the transfer was very fast. There was also no noticeable slowdown during the transfer.

I then deleted the file on /media/data.0.5/ and did ran the same command in konsole.

Within less than a minute the system load was over 4 and the systems was VERY sluggish. The file was also transferring MUCH slower than before (Like 1/10th of the speed). I stopped the job with ctrl-Z but the system stayed sluggish for a good 3 or 4 minutes after I stopped the job.



I'd really like to be able to run commands while in a gui. It's very useful to have several consoles up at once on the same desktop. Do you have any ideas on what I can do to resolve this? Maybe I can just SSH into localhost. lol.

Last edited by cruisecho; 24th August 2011 at 01:36 AM.
Reply With Quote
  #6  
Old 24th August 2011, 02:04 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,108
linuxfedorafirefox
Re: File transfers (cp, mv and rsync) slow system tremendously

Yup. It is an issue with cgroups.

You can report it as a bug in the use of cgroups, and call for being able to create non-hierarchical cgroups.

The way F15 uses cgroups is to put each login in a new cgroup, as well as put each service into it's own cgroup. This can give better performance by having all of the GUI collected into a cgroup for scheduling.

The problem with that is what you found. CPU or IO bound processes tend to lock other processes in the same cgroup out.

Something you might try:
Code:
at now
<command>
^D
This will run the command via cron (right now). I don't know if this will create a new cgroup, but it should.

Last edited by jpollard; 24th August 2011 at 02:10 AM.
Reply With Quote
  #7  
Old 25th August 2011, 01:19 AM
cruisecho Offline
Registered User
 
Join Date: Aug 2011
Posts: 4
linuxfirefox
Re: File transfers (cp, mv and rsync) slow system tremendously

After a few large files transfer through another terminal, I started to get the same slow down. I did some more reading and started to watch what was happening with vmstat. I noticed I didn't get any slowdowns until free memory started to get down into the 90,000 KB range. Looking at Htop I saw that only half of my system RAM was actually used, the other half was all cache and buffer.

I was able to run this command as root to clear the cache:
sync; echo 3 > /proc/sys/vm/drop_caches

Upon clearing the RAM cache the system sped up considerably, the problem is as soon as the cache fills back up (which happens quickly while moving files) the system slows down to a crawl again. It takes much longer for the system to start slowing down when I make a transfer in another terminal though.

The system seems to get unstable after doing large file transfers. I think it has to do with the RAM since the same thing happens when I open a large number of windows in firefox and eat up all the system RAM. I noticed it with moving large files first because of how quickly doing that eats up the system RAM with cache and buffers.


E:
The at now command worked the same as running through another terminal. The system did eventually slow down, it just took longer than when doing it through konsole. I might try moving my desktop over to CentOS with KDE just to see how well that works.
Reply With Quote
Reply

Tags
file, rsync, slow, transfers, tremendously

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
slow transfers with samba zogthegreat Servers & Networking 1 15th September 2008 09:41 AM
FC4 network is slow during file transfers haxorwear Servers & Networking 6 21st May 2008 06:26 PM
Slow HTTP Transfers Flak Pyro Servers & Networking 1 7th February 2007 04:00 AM
File Transfers Cringe Using Fedora 1 16th October 2006 07:58 AM
http transfers slow down over time cg404 Using Fedora 5 16th September 2004 03:39 PM


Current GMT-time: 07:07 (Saturday, 25-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