Is there a way to nice the IO on a process such as dd? If not, what could be a way to control the IO level of such a process from bogging down a server to severely. Thanks, jlc
Joseph L. Casale ha scritto:> Is there a way to nice the IO on a process such as dd? > If not, what could be a way to control the IO level of > such a process from bogging down a server to severely. >As I was told few days ago you cold nice the whole process, eg. nice 19 if=/xxx of=/xxx bs=nnn This should give all the other process priority over dd Hope this helps -- Regards Lorenzo Quatrini
On Tuesday 02 September 2008, Joseph L. Casale wrote:> Is there a way to nice the IO on a process such as dd? > If not, what could be a way to control the IO level of > such a process from bogging down a server to severely.There is ionice (assuming CentOS-5) in the util-linux package. It's by no means perfect but unlike nice it atleast tries to do what you want :-) Try it out. /Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20080902/69cf5f2f/attachment-0002.sig>
Peter Kjellstrom wrote:> On Tuesday 02 September 2008, Joseph L. Casale wrote: > > Is there a way to nice the IO on a process such as dd? > > If not, what could be a way to control the IO level of > > such a process from bogging down a server to severely. > > There is ionice (assuming CentOS-5) in the util-linux package. It's by no > means perfect but unlike nice it atleast tries to do what you want :-)If that doesn't do it for you then maybe choosing a different scheduler then cfq can help. Something like 'deadline' may work better for the workload. AFAIK ionice will only work with the cfq scheduler for now. -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.