As of version 1.52ubuntu2 popularity-contest started as a regular
process. I suppose changing IO and CPU scheduling priorities Idle should
place less load to the system, but I cannot notice the change in my
environment. Both cases works on my P4-3GHz 3GiB or RAM with two 7200
RPM disks equally well.

Anyway, I agree that system with less RAM or slower disk may suffer from
popcon activity. But we have to test things to decide if nice/ionice is
enough or we should limit IO with some other means. Please try to do
some job while popularity contest is running to check how much it slows
down your system.

The following test should simulate current situation:

sudo sh -c "echo 3 > /proc/sys/vm/drop_caches; sync"
time popularity-contest

The next test should run popularity-contest as a low-priority background
task

sudo sh -c "echo 3 > /proc/sys/vm/drop_caches; sync"
time ionice -c 3 nice popularity-contest


In case, changing priority is enough, patch it really trivial:

=== modified file 'debian/cron.daily'
--- debian/cron.daily   2011-05-23 15:38:47 +0000
+++ debian/cron.daily   2011-06-10 15:35:17 +0000
@@ -50,7 +50,7 @@
 
 run_popcon()
 {
-       su -s /bin/sh -c "/usr/sbin/popularity-contest" nobody
+       su -s /bin/sh -c "/usr/bin/ionice -c 3 /usr/bin/nice 
/usr/sbin/popularity-contest" nobody
 }
 
 do_sendmail()

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/493852

Title:
  popularity-contest will stat() every file installed file or ~80k files
  on my system which grinds things to a halt

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/popularity-contest/+bug/493852/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to