Re: suse10.[23] beagle indexing automatically uses "ionice" if installed (was Re: [opensuse] Beagle under 10.3 is really eating up my CPU)

2007-12-22 Thread Patrick Shanahan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

* Linda Walsh <[EMAIL PROTECTED]> [12-22-07 18:18]:
>   I just checked suse10.2 packages...
> 
>   If you have the "ionice" program (/usr/bin/ionice) installed
> under SuSE-10.3 OR -10.2, daily beagle indexing will automatically use it
> to set the beagle-indexing process to lowest (idle) priority using
> the command format "ionice -c 3".  The relevant lines in file
> /etc/cron.daily/beagle-crawl-system (fr suse10.3, beagle-0.2.12-28):
> lines 65-70:
>  65 IONICE=`which ionice 2>/dev/null`
>  66 if [ -n "$IONICE" ]; then
>  67 IONICE="$IONICE -c 3"
>  68 fi
>  69
>  70 eval nice -n 19 $IONICE su -s /bin/bash $CRAWL_USER -c 
> \"MONO_SH
> ARED_DIR=$MONO_SHARED_DIR /usr/sbin/beagle-build-index --target 
> /var/cache/b
> eagle/indexes/$CRAWL_INDEX_NAME $OPTIONS $CRAWL_PATHS\" > /dev/null 2>&1
>  71 fi
> 
> 
> (don't know about 10.1, SLED, or 10.0 as I don't have those packages locally
> accessible, but shouldn't be too hard for someone to verify)...

10.1 is the same
- -- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFHbZ98ClSjbQz1U5oRAm/eAKCDNriXzNmnCaMGJUWGSPLLEagOhgCfb0/l
iX7RAIZ0r6hvxWroWeI330o=
=8caX
-END PGP SIGNATURE-
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



suse10.[23] beagle indexing automatically uses "ionice" if installed (was Re: [opensuse] Beagle under 10.3 is really eating up my CPU)

2007-12-22 Thread Linda Walsh

Aaron Kulkis wrote:

ah... ionice seems to be a new invention.
I'll give it a try when I build a new system this month.

---
I just checked suse10.2 packages...

If you have the "ionice" program (/usr/bin/ionice) installed
under SuSE-10.3 OR -10.2, daily beagle indexing will automatically use it
to set the beagle-indexing process to lowest (idle) priority using
the command format "ionice -c 3".  The relevant lines in file
/etc/cron.daily/beagle-crawl-system (fr suse10.3, beagle-0.2.12-28):
lines 65-70:
 65 IONICE=`which ionice 2>/dev/null`
 66 if [ -n "$IONICE" ]; then
 67 IONICE="$IONICE -c 3"
 68 fi
 69
 70 eval nice -n 19 $IONICE su -s /bin/bash $CRAWL_USER -c \"MONO_SH
ARED_DIR=$MONO_SHARED_DIR /usr/sbin/beagle-build-index --target /var/cache/b
eagle/indexes/$CRAWL_INDEX_NAME $OPTIONS $CRAWL_PATHS\" > /dev/null 2>&1
 71 fi


(don't know about 10.1, SLED, or 10.0 as I don't have those packages locally
accessible, but shouldn't be too hard for someone to verify)...

Linda


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]