Help with making stuff compile on non-Linux
Sebastian Trüg
strueg at mandriva.com
Wed Jul 23 16:10:10 BST 2008
On Wednesday 23 July 2008 15:27:42 Dirk Mueller wrote:
> On Wednesday 23 July 2008, Sebastian Trüg wrote:
> > > However, if that happens, the application will need code to pace
> > > itself.
> >
> > So, ionice was introduced in 2.6.13 then?
>
> Even worse, it is for root only until 2.6.26. In any case I don't think
> this code should be compiled for anything != linux. for other platforms,
> seting nice'ness is enough.
that should be fairly easy. Isnt's checking for the definition of
SYS_ionice_set already enough?
> This also (almost) applies to linux: if your process has a low cpu
> nice'ness, it is also degraded to Best-effort/low priority. you can't set
> idle priority however via nice, thats why you need ionice.
>
> in any case it should use some sleep()'s at good places anyway.
But where? What are good places to sleep in the file indexer? Between files?
That does not really help I think....
More information about the kde-core-devel
mailing list