Re: [Tracker] Indexers comparison
- From: Joe Shaw <joeshaw novell com>
- To: Jos Poortvliet <"superstoned gmailcom"@menubar.gnome.org>
- Cc: tracker-list gnome org, dashboard-hackers gnome org, strigi-devel lists sourceforge net
- Subject: Re: [Tracker] Indexers comparison
- Date: Thu, 18 Jan 2007 14:20:36 -0500
Hi,
choosing another scheduling policy (like sched_batch) is a
bit better, as a sched_batch process will use 0% cpu in presence of
another process trying to get 100% cpu.
I looked into this today, and this isn't how the SCHED_BATCH policy
works on Linux (at least with 2.6.20). Indeed doing so would cause an
issue with priority inversion, since a blocked process could hold some
resource while another process spun.
SCHED_BATCH simply drops the sleep interval calculation, which
determines the bonus (between -5 and +5) on top of your nice value, and
automatically gives your process a -5 bonus.
Joe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]