Give Nepomuk the lowest Priority in the Scheduler
Review Request #102044 - Created July 22, 2011 and submitted
I've changed the scheduling of all Nepomuk services from SCHED_BATCH to SCHED_IDLE. Maybe this should only be done for the "nepomukindexer"? Reference: http://www.kernel.org/doc/man-pages/online/pages/man2/sched_getscheduler.2.html If this is accepted, I'll like to backport it as well.
I've tested it on my desktop and I find that I just don't notice when files are being indexed. Before this it was slightly noticeable as the computer would become slightly sluggish.
I have no idea why I did not use that to begin with, however. However, I think for git master we should allow Nepomuk::Service subclasses to set a priority like "BackgroundNonesense" or "UserInteraction" or things like that. Based on that we would set the priority. I suppose that the query service should get a higher prio (although I am not sure if that does change anything since most of the work is done by Virtuoso anyway.)