erlang/desktopcouch/beam.smp don't let the processor go idle

Bug #746367 reported by Lucian Adrian Grijincu
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
desktopcouch
Fix Released
Medium
Chad Miller
desktopcouch (Ubuntu)
Fix Released
High
Chad Miller
erlang (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: erlang

This is the process:
31209 ? Sl 0:12 /usr/lib/erlang/erts-5.7.4/bin/beam.smp -Bd -K true -A 4 -- -root /usr/lib/erlang -progname erl -- -home /home/mimi -- -noshell -noinput -sasl errlog_type error -couch_ini /etc/couchdb/default.ini /etc/xdg/desktop-couch/compulsory-auth.ini /home/mimi/.config/desktop-couch/desktop-couchdb.ini -s couch -pidfile /home/mimi/.cache/desktop-couch/desktop-couchdb.pid -heart

It always has 2-3% of CPU
  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31209 mimi 20 0 79964 17m 2956 S 2 0.9 0:15.38 beam.smp

Related branches

Revision history for this message
Lucian Adrian Grijincu (lucian.grijincu) wrote :

From /etc/couchdb/default.ini
    [stats]
    ; rate is in milliseconds
    rate = 1000

If these are statistics, is there any reason why they must be collected every second? Can't this be put at a higher value?

summary: - erlang doesn't let the processor go idle
+ erlang/desktopcouch/beam.smp don't let the processor go idle
Chad Miller (cmiller)
Changed in erlang (Ubuntu):
status: New → Invalid
Changed in desktopcouch (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Chad Miller (cmiller)
Chad Miller (cmiller)
Changed in desktopcouch:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Chad Miller (cmiller)
Chad Miller (cmiller)
Changed in desktopcouch:
status: In Progress → Fix Committed
milestone: none → 1.0.7
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package desktopcouch - 1.0.7-0ubuntu1

---------------
desktopcouch (1.0.7-0ubuntu1) natty; urgency=low

  * New upstream release.
    - [critical] desktopcouch-service crashed with PreconditionFailed in
      request(): ('file_exists', 'The database could not be created, the file
      already exists.') (LP: #707321)
    - 0.6.9b => 1.0.5 API break: desktopcouch.find_port() (LP: #710424)
    - desktopcouch-service crashed with OSError in __init__() (LP: #530322)
    - update_bookmark_file() finds but does not use couchdb.tmpl from alternate
      path (LP: #673641)
    - erlang/desktopcouch/beam.smp don't let the processor go idle (LP: #746367)
    - [low] replication_services/example.py needs update (LP: #599847)
 -- Chad MILLER <email address hidden> Fri, 08 Apr 2011 17:40:53 -0300

Changed in desktopcouch (Ubuntu):
status: In Progress → Fix Released
Chad Miller (cmiller)
Changed in desktopcouch:
status: Fix Committed → Fix Released
Revision history for this message
Mihai Capotă (mihaic) wrote :

I noticed beam.smp constantly uses ~ 5 % CPU ever since I upgraded to Ubuntu 11.04. I took a look at /etc/couchdb/default.ini and I see the same "rate = 1000" Lucian reported initially.

I don't think this bug is fixed.

Revision history for this message
Lucian Adrian Grijincu (lucian.grijincu) wrote :

FWIW I have no idea what performance impact "rate=1000" has. It was the lowest hanging fruit I found.
I haven't had this problem in a while (I reinstalled 11.04 since I reported this bug).

Revision history for this message
Oscar Tiderman (oscar-tiderman) wrote :

I also had beam.smp using 2-5% CPU ALL the time, until I disabled Bindwood extension in Firefox. Now it doesn't show up in top at all. I don't use UbuntuOne or Gwibber. Ubuntu 11.04.

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.