[Bug 354992] New: Beagle should benefit from nice/ionice better settings
https://bugzilla.novell.com/show_bug.cgi?id=354992 Summary: Beagle should benefit from nice/ionice better settings Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: pavel.sefranek@gmail.com QAContact: qa@suse.de Found By: --- I think that we're executing that Beagle stuff now by two files: /etc/xdg/autostart/beagled-autostart.desktop and /etc/cron.daily/beagle-crawl-system. The first script uses ionice but does not use nice. Should be used as well. The second doesn't use any of them at all. Here I see an area for improvements. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=354992 User mtgordon@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=354992#c1 Mark Gordon <mtgordon@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtgordon@novell.com Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Mark Gordon <mtgordon@novell.com> 2008-01-22 13:26:54 MST --- In beagle-0.2.18-30, beagle-crawl-system includes the following: IONICE=`which ionice 2>/dev/null` if [ -n "$IONICE" ]; then IONICE="$IONICE -c 3" fi eval $IONICE su -s /bin/bash $CRAWL_USER -c \"MONO_SHARED_DIR=$MONO_SHARED_DIR /usr/sbin/beagle-build-index --target /var/cache/beagle/indexes/$CRAWL_INDEX_NAME $OPTIONS $CRAWL_PATHS\" > /dev/null 2>&1 i.e. it's using ionice. As for nice, from looking at top, it's already niced, even if there's no hint of that in wrapper scripts; there's a Posix API for this sort of thing, which means that wrapper scripts/utilities aren't the only (or best) way to accomplish that goal. Looking at the source code (Util/SystemPriorities.cs), it's clear that this has indeed been implemented through system calls, and the ChangeLog explains why it was done that way (indexing is niced, but garbage collection, which frees up resources for the system as a whole, is not). Since both the suggestions you're making have already been implemented, if not precisely in the forms you expect, I'm resolving this bug INVALID. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com