* 2016-04-02 23:43 GMT+03:00 fyo wrote: > >> fyo, do you mean this statement: > >> > - do not modify the DB "in-place" with --update to avoid >> > software-center seeing a corrupted database when it has >> > it open at the same time > > Yes, that appears to be the argument for removing --update, which was > otherwise added in an upstream patch.
I still fail to see how removing ionice binary (a disk I/O scheduler) from the index rebuilding can possibly change DB modification type from "in-place" to some other type: --- quote --- then if [ -x "$IONICE" ] then - nice -n 19 $IONICE -c 3 $CMD --update --quiet + nice -n 19 $IONICE -c 3 $CMD --quiet else - nice -n 19 $CMD --update --quiet + nice -n 19 $CMD --quiet fi fi --- quote --- Have I missed something inbetween? This comment seems absolutely irrelevant to me, to say the least. Maybe we need to contact Michael Vogt to make the things clear? > I should note that I was NOT able to reproduce any issue with Software > Center while running update-apt-xapian-index --update. The closest > thing I could get was a 10 second "animated loading ring" coinciding > with the update process being at 99% (any io heavy activity could > probably give that result, though). That could prove the comment from Changelog is unrelated. > It is unfortunate that update-apt-xapian-index resource use is increased > many-fold due to Software Center not (gracefully) handling an in- > progress update. Depending on the nature of the Software Center issue, > this choice is perhaps understandable. OK, I am not into design of this exact software solution, but if your first statement is true then it's the design itself which is most flawed here. IMHO, Software Centrer should notify user about the update ongoing in the background. And then use a backup of the DB. Until the new revision of DB is finalized. After which S.C. should switch to the latter. This is quick shot from a guy walking by. S. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/363695 Title: update-apt-xapian-index uses too much CPU and memory To manage notifications about this bug go to: https://bugs.launchpad.net/apt/+bug/363695/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs