First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 60204
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 37871
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Viacheslav Kaloshin <multik@multik.ru>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 60204 depends on: Show dependency tree
Bug 60204 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-08-13 02:35 0000
1. Modify /etc/updatedb.conf - add /mnt in 
# paths which are pruned from updatedb database
PRUNEPATHS="/tmp /var/tmp"

So, it will be look like this
PRUNEPATHS="/tmp /var/tmp /mnt"

It removes from database any cd-roms, floppyes and other such crap

2. /etc/cron.daily/slocate
Add -n 19 to nice

#! /bin/sh

if [ -x /usr/bin/updatedb ]
then
        if [ -f /etc/updatedb.conf ]
        then
                nice -n 19 /usr/bin/updatedb
        else
                nice -n 19 /usr/bin/updatedb -f proc
        fi
fi

By default, nice without parametrs run with priority 10. Many background programs runs with priority 15-16. And if i call them during updatedb, i receive very big lag - its very annoing, especialy on notebooks, where updatedb starts during 5-6 minutes after power on ...

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Ciaran McCreesh 2004-08-13 14:04:49 0000 -------
-19 is too strong. That'll interfere with SETI :)

------- Comment #2 From SpanKY 2004-08-13 19:36:38 0000 -------
can you qualify 'many programs' ?

also, /mnt shouldnt be a real problem since we prune many of the filesystem types

------- Comment #3 From Viacheslav Kaloshin 2004-08-14 00:48:09 0000 -------
May be add to prunefs "vfat" and "ntfs" instead adding "/mnt"?

-19 is not too strong, because updatedb takes so little time ... ;-))

When i start updatedb without "-n 19" mouse cursor in X move with lags, music plays with small pauses, etc ...

With "-n 19" nothing happens like this. I look in 'top' - many programs like squid, named etc works with priority 16-18.

------- Comment #4 From SpanKY 2004-08-14 01:11:12 0000 -------
nice has already been added to updatedb (Bug 37871)

/mnt wont be added to prunefs list ... iso is already in the prune list, but adding vfat/ntfs isnt going to happen

*** This bug has been marked as a duplicate of 37871 ***

First Last Prev Next    No search results available      Search page      Enter new bug