Hi,

On Wed, 12 Oct 2005, Jens Axboe wrote:
On Wed, Oct 12 2005, Eberhard Moenkeberg wrote:
On Wed, 12 Oct 2005, Carl-Daniel Hailfinger wrote:
Eberhard Moenkeberg schrieb:

Yes. Repository generation needs more than 24 hours currently (was
usually only some few minutes), and during that time, some packages get
renewed (but not recognized)...
"By design" we will never get this totally in-sync, but currently we see
very very clearly how bad it can be if the servers first have to build
metadata before the files will be usable.

If ftp4 runs 10.0, it should be possible to use ionice to give higher io
priority to metadata building and lowest prio to ftp serving.

Good idea. I have started experimenting with ionice now...
But it seems to be a hazardous tool: any user is able to starve a system,
f.e. by doing "ionice -c1 -n0 bonnie...".

-c1 is the RT class, only root can use that. So no, any user is not able
to run that very command.

Thanks for clearing; good to know.
But any user can do "ionice -c2 -n0"; don't you think that this is a risk?

I guess ionice needs a mechanism like nice: a user can only lower the
priority, only root can raise.
This probably needs some more work: each process needs a default cfq class
and priority "somewhere in the middle" which is hard to define.

Each process does have a default cfq class and it does have a priority
in the middle (BE class, priority 4 of 0-7).

This was started with ionice:

[EMAIL PROTECTED]:2 19:58:49 /mirr/bin > ionice -p 30153
best-effort: prio 0
[EMAIL PROTECTED]:2 19:58:56 /mirr/bin >

This without:

[EMAIL PROTECTED]:2 19:57:55 /mirr/bin > ionice -p 11069
none: prio 0
[EMAIL PROTECTED]:2 19:58:07 /mirr/bin >

Maybe I need the boot parameter "elevator=cfq" to have the default?

Cheers -e
--
Eberhard Moenkeberg ([EMAIL PROTECTED], [EMAIL PROTECTED])

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to