80% cpu used apt-index-watch

Bug #64562 reported by Kaltsi
6
Affects Status Importance Assigned to Milestone
libapt-front (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apt-index-watcher

apt-index-watch uses the my cpu 70-80%.
The system uses the my cpu 10-20%.

top - 18:41:00 up 16 min, 1 user, load average: 0.84, 0.76, 0.52
Tasks: 100 total, 3 running, 97 sleeping, 0 stopped, 0 zombie
Cpu(s): 87.7%us, 4.7%sy, 0.0%ni, 6.0%id, 0.0%wa, 0.7%hi, 1.0%si, 0.0%st
Mem: 775584k total, 486032k used, 289552k free, 94880k buffers
Swap: 979956k total, 0k used, 979956k free, 222680k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 5098 root 25 0 24352 20m 2236 R 88.5 2.7 0:02.66 apt-index-watch
 4725 kaltsi 15 0 119m 37m 24m S 3.7 5.0 0:34.43 amarokapp
 4055 root 15 0 293m 15m 3836 S 0.3 2.1 0:27.91 Xorg
    1 root 16 0 1632 532 448 S 0.0 0.1 0:01.29 init
    2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
    3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
    4 root RT 0 0 0 0 S 0.0 0.0 0:00.13 watchdog/0
    5 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 events/0
    6 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 khelper
    7 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
    9 root 10 -5 0 0 0 S 0.0 0.0 0:00.05 kblockd/0
   10 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
   11 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify
   91 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
  124 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
  125 root 15 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
  126 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0

Revision history for this message
Lari Natri (larva) wrote :

I have the same problem since around 2006-10-6. Apt-index-watch launches every 5 seconds or so.

Revision history for this message
Jools Wills (jools) wrote :

I have this same problem. Every few seconds apt-index-watch runs and uses a huge chunk of cpu. This causes problems like stuttering in movie playback etc. This was not happening last week, so it's a new problem. Hope a fix comes out before edgy release.

Revision history for this message
Matthias Himber (nomar) wrote :

Confirming.
This is particularly bad on laptops, as apt-index-watcher uses enough CPU time to cause the processor clock to be increased to maximum for a short time.

Revision history for this message
Jared Biel (sylvester-0) wrote :

I have the same problem. It causes a rather annoying spike every few seconds in my CPU usage graph (I use the ksysguard taskbar tool). It seems that one of the apt-index-watch processes runs normally and another one launches and dies every few seconds.

Revision history for this message
Xarafaxz (xarafaxz) wrote :

Confirming.

Revision history for this message
Martin F. Hohenberg (martin-hohenberg) wrote :

Confirmed. Especially a problem on systems of lesser calculation power - apt-index-cache effectively freezes my KDE. Is this save to apt-get uninstall?

Revision history for this message
"Kosmonaut" Bernd Müller (bernado-tornado) wrote :

Confirming.

Revision history for this message
Schnubbi (info-netzwerk24) wrote :

The same here. Is there already a workaround ???

Revision history for this message
Jools Wills (jools) wrote :

Should be fixed now

See https://launchpad.net/distros/ubuntu/+source/libapt-front/+bug/64531

Certainly a new version is available on apt for edgy.

Revision history for this message
Martin F. Hohenberg (martin-hohenberg) wrote :

Negative, there was no "newer" version that solved the problem for me. uninstalling apt-index-watcher solved the problem for me, as I can do fairly well w/o adept. Laptop battery lifetime is more important to me than a userfriendly way to circumvent apt-get

Revision history for this message
"Kosmonaut" Bernd Müller (bernado-tornado) wrote :

Apt-index watch still causes high CPU usage on my machine.
0.3.9ubuntu5 is installed.
 "8140 root 19 0 15140 6932 6116 R 81.7 1.3 0:00.23 apt-index-watch"
3 seconds later
"8247 root 19 0 15804 7604 6168 R 50.0 1.5 0:00.43 apt-index-watch"<-from top.
and so on and on...
A "sudo apt-get update && sudo apt-get upgrade" solves this problem for 1 day. Then everythings start all over again

Revision history for this message
thunderstorm (rainbow1612) wrote :

I can confirm that problem, too. apt-index-watch use 35-50% CPU-Load on my Vaio-Laptop with 2,8 GHz, every 2-5 seconds.

Revision history for this message
ATorre (aedelatorre) wrote : Workaround

Remove apt-index-watcher from the boot process:

update-rc.d -f apt-index-watcher remove

I did it and all works fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.