Solve the problem that the CPU usage of update-apt-xapian-index in Ubuntu is too high.

Source: Internet
Author: User
The apt-xapian-index package is very convenient to use, but I am always exhausted (the first line): There are two solutions online: 1. delete apt-xapian-index, but after deleting it, quicksearch cannot be used and it is inconvenient to find the software. Fortunately, use the second solution: edit apt-xapian-indexgedit/etc/cron. weekly/apt-xapian-index is very convenient to use, but I have to exhaust my cpu (the first line ):


There are two solutions on the Internet:
1. delete apt-xapian-index, but after deletion, quick search cannot be used and it is inconvenient to find software.


Fortunately, use the second solution:
Edit apt-xapian-index

Gedit/etc/cron. weekly/apt-xapian-index

Put row 8
Nice $ IONICE-c3 $ CMD -- quiet
Changed:
Nice-n 19 $ IONICE-c3 $ CMD -- update -- quiet

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.