On Thu, 12 Apr 2007 03:03:38 +0200 (CEST)
"Carlos E. R." <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> The Wednesday 2007-04-11 at 21:47 +0900, eshsf wrote:
>
> > >
> > > I do, but it's not "nice" enough
> > >
> > > The disk is so busy for a long time when copying a half a gig single file
> > > that the rest of the tasks are sluggish,
> > >
> > > I'm not in a hurry over these operations, I just want to continue working
> > > as usual.
> >
> > How about using a Best effort class of "ionice"?
> > An unprivilege user can set a class data[0-7].
>
> I'll have to try that one. Man pages are so terse that I had no clue that
> those "class data" could be.
The io scheduling classes are:
c1 - Realtime : only root available
c2 - Best effort : everyone available
c3 - Idle : only root available
So, if I am not mistaken, the following sorted them in priority order.
[High] <-------------------> [low]
Realtime Best effort Idle
0 ... 7 0 ... 7 (no class data)
> > or if running already then
> > 'nice -n19 sudo ionice -c3 -p `pidof busytask`'.
Oh, this was wrong. that didn't modify the nice value. :(
Ok, this is it.
sudo bash -c "renice +19 -p `pidof busytask` && ionice -c3 -p `pidof busytask`"
Thanks,
eshsf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]