LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-25-2006, 04:19 PM   #1
matiasquestions
Member
 
Registered: Sep 2005
Posts: 65

Rep: Reputation: 15
Limit disk I/O for a process


Hi.

I've to run a backup process, which *highly* loads the system, it makes a lot of disk i/o and I want to reduce it so that the entire system doesn't become unresponsive.

I've tried reducing the priority with the "nice" command but it doesn't work for me, because as far as I know, the kernel automatically increases priority to i/o processes.

Any idea ??

Thanks.
 
Old 01-25-2006, 06:49 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
That depends on your backup tool. I use rsync for backup to an external USB HD. One of the advantages of rsync is the ability to throttle the I/O rate. For example:

/usr/bin/rsync --progress --delete --bwlimit=5000 -av /home/ /mnt/exthd/home

The "--bwlimit=5000" limits the I/O to 5MB/sec (5000K) so that other processes aren't negatively impacted.
 
Old 01-26-2006, 03:47 AM   #3
matiasquestions
Member
 
Registered: Sep 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Great!

I was using DAR... but it is very, very, memory intensive when making entire hard disk differential backups.... so, I'm looking for another thing. Thanks for your suggestion.
 
Old 01-26-2006, 09:50 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
Just a thought... Linux 2.6 offers a choice of four "I/O request schedulers" which can be assigned for disk I/O. These schedulers determine the order in which requests are handled and how the competing queues are balanced.

You may also find that an external "smart" disk-controller card will deliver considerably better performance under load than, say, the built-in IDE chains of a motherboard.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Process memory limit Costea Linux - Security 9 09-24-2006 01:42 PM
increase the process limit of user ust Linux - General 3 10-20-2004 05:06 AM
Linux process limit kangaman Linux - General 4 10-14-2004 02:48 PM
Descriptor limit for a process akuate Linux - General 0 08-18-2004 11:23 AM
max process limit anoop_chandran Linux - Networking 2 01-16-2002 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration