Closed
Bug 455507
Opened 17 years ago
Closed 16 years ago
what to do about browserd
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: dougt, Unassigned)
Details
browserd eat a ton of memory that fennec would be very happy have. Maybe we should stop the browserd at install time or something?
Comment 1•17 years ago
|
||
if [ "" == "$(ps | grep '/usr/bin/browser' | sed '/grep/d')" ];then
kill `ps | grep "browserd -s" | sed '/grep/d' | awk '{print $1}'`;
fi
Comment 2•17 years ago
|
||
#1 command will kill browserd process if browser-ui is not running...
We can do it also every time before fennec running
| Reporter | ||
Comment 3•17 years ago
|
||
there is also the service we can kill too, right?
/etc/init.d/tablet-browser-daemon stop
Comment 4•17 years ago
|
||
(In reply to comment #3)
> there is also the service we can kill too, right?
>
> /etc/init.d/tablet-browser-daemon stop
Right, but after that user not able to do /etc/init.d/tablet-browser-daemon start without terminal cmd... and not able to use default browser (until reboot).
absolutely not.
if you replace the bookmarks manager item in the task navigator, then maybe. but unless install time also removes the related browser things.
| Reporter | ||
Comment 6•17 years ago
|
||
timeless is probably right. this is a "bug" in Maemo. we should take it up with them.
Someone will probably just provide a fennec extension does the dirty workaround.
Comment 7•17 years ago
|
||
people tried to elaborate on that w/out success
https://bugs.maemo.org/show_bug.cgi?id=3705
that wasn't a good bug report.
this is different. it is theoretically possible to replace the browser.
you'd want to provide a component which provides certain things and conflicts with certain things. that'd cause the browser to be uninstalled.
note that the browser is a service, it's used by other clients.
this is similar to how MSHTML works on windows.
If you actually cause the browserd itself to be uninstalled, then you *must* provide a replacement (which would be a dbus compatible daemon).
various apps on our *platform* use the browser daemon including the tablet tutorial.
fwiw, i think we were supposed to have worked on the browser-ui such that it could start the daemon if it wasn't already running, so it may be possible to arrange to stop the browser when fennec starts if there's no consumer.
| Reporter | ||
Comment 9•17 years ago
|
||
food for thought -- a service/singleton could be started/created when it is first needed. This would allow more memory for all existing application that do not require such a service. You could even be smart with the service and shut it down after all users go away.
| Reporter | ||
Comment 10•17 years ago
|
||
food for thought -- a service/singleton could be started/created when it is
first needed. This would allow more memory for all existing application that
do not require such a service. You could even be smart with the service and
shut it down after all users go away.
Comment 11•17 years ago
|
||
yeah, we know. this was a design choice. it sped up the average case.
i think what we [maemo software/browser team] probably should do is kill the browser instance if there's no ui and we get a low memory signal. that should solve the problem for the only case that matters.
| Reporter | ||
Comment 12•17 years ago
|
||
sounds reasonable.
could we make sure that if there is no ui, that browserd gets the signal before other applications? not sure if this is possible or not, but it would allow other applications not to panic during this OOM situation (browserd would exit first freeing up some memory possibility saving other applications from getting the OOM signal)
Comment 13•16 years ago
|
||
sadly, i don't think it's possible like that.
otoh,... there are two watermarks, and i don't know which watermark is responsible for killing. the daemon could probably listen for the lower watermark and quit then....
Comment 14•16 years ago
|
||
I don't think we are going to do anything at this time.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
Comment 15•16 years ago
|
||
sorry for bug spam.
Many of the bugs which are marked invalid, I see comments telling it occurred in one version or other. But later it was fixed due to 1) by backingout the patch which made regression or 2) by fixing some other bug.
So if we can identify the bug/patch/reason then we should state that and mark those as FIXED. If not mark as WORKSFORME in that case.
You need to log in
before you can comment on or make changes to this bug.
Description
•