CPU usage of "idle" brltty is too high
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
brltty (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
I ran sysprof on a mostly idle system (gaim, x-chat, firefox, thunderbird, GNOME desktop loaded), and over the course of a minute, 50% of total CPU usage went to brltty. Next highest, 5.5% went to gaim, 5.2% to sysprof - and those two were doing something USEFUL.
Almost all of this is within the Papermeier driver. Note that this is after a leak fix (bug 40174), but I don't think this should make a major difference. A full configuration file parsing is done every five seconds (or so), plus the memory for that parsing is allocated and deallocated.
The module system for brltty needs to be revamped so it doesn't reload its configuration repeatedly like that if it can't find a braille tty. It needs to keep all modules loaded in memory until one of them succeeds - then it can consider calling dlclose() on the others.
This isn't a good level of CPU usage, especially for laptop users.
I can confirm the memory usage of brltty. It currently uses 115mb on my system.