Mailinglist Archive: opensuse (1620 mails)

< Previous Next >
Re: [opensuse] Use crontabs (was Re: openSUSE-13.1: at 17:00 system begins thrashing: What is cause?)
On 2014-11-22 19:34, Lew Wolfgang wrote:

I'm not OP, and I'm also a bit late to this thread, but I recall an annoying
issue with updatedb causing balkiness not too long ago. It wasn't immediately
obvious what was going on and I doubt if a non-technical user would have
figured it out.

It can easily happen. That's why the current cron job nices and ionices it.


# alter the priority of the updatedb process
if [ -x /usr/bin/renice ]; then
/usr/bin/renice +${NICE:-19} -p $$ > /dev/null 2>&1
if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then
/usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ >
/dev/null 2>&1

You can go further and use class 3. Although I don't understand some of the
constructs above.

Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)

< Previous Next >
Follow Ups