beagle r3280 - in trunk/beagle: Util beagled beagled/IndexHelper glue



Author: joeshaw
Date: 2007-01-18 21:44:51 +0000 (Thu, 18 Jan 2007)
New Revision: 3280
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3280&view=rev

Added:
   trunk/beagle/Util/SystemPriorities.cs
   trunk/beagle/glue/scheduler-glue.c
Removed:
   trunk/beagle/Util/IoPriority.cs
Modified:
   trunk/beagle/Util/Makefile.am
   trunk/beagle/beagled/BuildIndex.cs
   trunk/beagle/beagled/IndexHelper/IndexHelper.cs
   trunk/beagle/beagled/ManageIndex.cs
   trunk/beagle/glue/Makefile.am
Log:
Add support for Linux's relatively new SCHED_BATCH scheduler policy.

Add glue to set SCHED_BATCH or the default SCHED_OTHER, and hook it
into SystemPriorities.cs (which was renamed from IoPriority.cs).

In the index helper, set our nice level before we start the server,
since we want the server thread to inherit our lower priority.  In
there, try to set the scheduler policy to SCHED_BATCH.  If that
succeeds, set our nice to +12, otherwise to +17.  (The reason
for the difference is because SCHED_BATCH + 12 will equal +17.)






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]