PDA

View Full Version : [SOLVED] How to disable rebuilding Xapian index?


Julita
February 7th, 2009, 07:49 AM
Hello! My PC everyday hangs terribly, and the command "top" in terminal shows that the process "update-apt-xapi" is loading my RAM and CPU on 100%. Running "sudo update-apt-xapian-index" shows the percentage of completion of rebuilding Xapian Index, and those minutes are rather ... disturbing, especially when I am typing my BA paper :D Google did not help much...Since there is no such package, i can not remove it. Please, can somebody tell me what should I do? I have not experienced it in the previous *buntu versions, only in Intrepid...

compat
February 16th, 2009, 07:05 AM
the process is update-apt-xapian-index and in low resource systems it will eat all available ram and then start swapping, leaving the system almost in a freeze state.

do a
sudo apt-get autoremove --purge apt-xapian-index
sudo apt-get autoremove --purge
this will remove apt-xapian-index and then python-debian and python-xapian

i don't know if it has secondary effects, but it will avoid this anoying process (in low resource systems) to start again

Julita
February 16th, 2009, 08:00 AM
compat, thank you very much!!!!! When I am at home, I'll do it and find out about side effects! :)

Sonsum
March 2nd, 2009, 01:48 AM
I did this on my old laptop running 8.10, no negative results so far...

Thanks for saving me tons of resources!

compat
March 6th, 2009, 05:00 PM
hello, i've seen that it is installed when installing other apps, at least in jaunty, i ended renaming the process,
moved update-apt-xapian-index process to update-apt-xapian-index.disabled in /usr/sbin/ folder

fcormier
April 10th, 2009, 09:56 AM
Here is what I did to disable it:
sudo chmod 644 /etc/cron.weekly/apt-xapian-index
It makes the file not executable.

Tanker Bob
June 4th, 2009, 09:03 PM
Purging apt-xapian-index caused the quick search feature in Synaptic to become inoperative in Jaunty. Changing the weekly script to non-executable proved the better approach with no side effect so far.

likemindead
January 7th, 2010, 03:24 PM
My old PIII laptop thanks you for this!

^____^

Eiríkr
May 15th, 2010, 12:18 PM
I was bitten by this bug as well, and after some digging around, I found the thread on Launchpad discussing the official fix that will be incorporated into Ubuntu at some point. Read this post I wrote in another thread for an explanation of how to implement the official fix in your system now, and a breakdown of what it does.

Cheers,

--Eiríkr

cdubet
November 14th, 2010, 12:01 PM
hello if you do not wish to disable it but to make it consume less cpu, you should do like me:
edit /etc/cron.weekly/apt-xapian-index (for example with vi or gedit)
replace the line
nice $IONICE -c3 $CMD --quiet
by
nice -n 19 $IONICE -c3 $CMD --update --quiet

what it does:
a) run it with the lowest system priority
b) update the db and not built it again -> faster

d3v1150m471c
April 1st, 2011, 12:30 PM
if you just wait a few minutes it'll stop. but meh, can't expect linux users to have patience when they can poke at something with a sharp stick :)

Hackie2
April 13th, 2011, 01:42 PM
if you just wait a few minutes it'll stop. but meh, can't expect linux users to have patience when they can poke at something with a sharp stick :)

If u run out of battery on your slow netbook because of that i think it is more than just not having patience...

kennedyvelez
August 5th, 2011, 10:54 PM
the process is update-apt-xapian-index and in low resource systems it will eat all available ram and then start swapping, leaving the system almost in a freeze state.

do a
sudo apt-get autoremove --purge apt-xapian-index
sudo apt-get autoremove --purgethis will remove apt-xapian-index and then python-debian and python-xapian

i don't know if it has secondary effects, but it will avoid this anoying process (in low resource systems) to start again


This is sweet! Every MB is counted. Thanks... Spaces, processes and all. Saved.