Originally posted by e8hffff
View Post
Announcement
Collapse
No announcement yet.
Firefox Still Working Towards Multi-Process Support
Collapse
X
-
Originally posted by schmidtbag View PostJust because something is multi-threaded, it doesn't mean it is inherently memory consuming. But, this is firefox we're talking about here, so yeah, it'll probably be a disaster.
Maybe what would be the most ideal is a separate process per group. I know most people don't use groups in firefox, but doing this would be a lot more reasonable in terms of performance vs memory consumption vs dependability.
Going with processes will make it easier to reclaim memory after tab shutdown.
Comment
-
Originally posted by ninez View PostI was reading about this [elsewhere] a couple of days ago....
I cannot fscking wait for this feature. It is super easy to choke firefox on linux-rt, particularly, i can choke it quite easily if using mutexes (as opposed to semaphoes) in the nvidia driver... Specifically, when using multiple videos - streaming in multiple tabs.... You can easily halt firefox, the interface becomes non-interactive, etc, until it's done loading all tabs/videos.. Having some separation here / making it multi-process would solve this issue / have better latency, guarantee of service, etc.
Comment
-
Originally posted by plonoma View PostYou could split the threads:
y GUI threads
x rendering, worker threads.
- separate threads for visible and non visible tab.
Each window should get it's own GUI threads until some maximum number of threads, say number of CPU cores, is reached.
Each visible tab should get it's own thread until some maximum number of threads, say number of CPU cores, is reached. This configuration minimizes latency and maximizes cpu resources while not inefficiently using cpu cores the memory by avoiding tons of threads.
.
Then also a number of threads for non visible tabs, say number of CPU cores to maximize performance and computing resources.
As long as the number of non visible tabs are below the number of CPU cores, then each non visible tab gets it's own thread.
This allows good latency, performance, allocation of CPU resources while not making tons of threads that are not needed.
Originally posted by liam View PostGlad you popped up. DId you catch the article on lwn about the deadline scheduler FINALLY making it to linus' branch? I'm not sure how useful it will be for you right now since the process needs to know its worst case exec time, but I'm wasn't sure if that was already well known for your work.
Comment
-
Originally posted by PatrickNiedzielski View Post"notably missing from the threading party has been Mozilla Firefox"
Just as a clarification, Firefox is multithreaded. All the threads are just owned by one process.
I love firefox and still use it as my main browser, but multithreading and UI responsive are very weak points for it still. Chrome is very far ahead of it in this area, it has a fully multi-process architecure, threaded compositing by default, and a fully hardware accelerated UI which will appear in chrome 33.
Comment
-
Originally posted by ninez View PostI was reading about this [elsewhere] a couple of days ago....
I cannot fscking wait for this feature. It is super easy to choke firefox on linux-rt, particularly, i can choke it quite easily if using mutexes (as opposed to semaphoes) in the nvidia driver... Specifically, when using multiple videos - streaming in multiple tabs.... You can easily halt firefox, the interface becomes non-interactive, etc, until it's done loading all tabs/videos.. Having some separation here / making it multi-process would solve this issue / have better latency, guarantee of service, etc.
Comment
-
-
Originally posted by mrugiero View PostIf you talk about RT OSes, you always need to know the worst case exec time, as you need to guarantee a maximum time for everything. That's the main characteristic of any RO OS.
Since we aren't taking about hard real-time systems (that is ones that are very much appliance like, and run very few processes) we don't necessarily know ahead of time those worst case times would be. The article didn't go into that aspect, unfortunately.
Comment
-
Originally posted by phoronix View PostPhoronix: Firefox Still Working Towards Multi-Process Support
[...] enabling a Firefox preference setting it's possible to ruin in a multi-process mode. [...]
http://www.phoronix.com/vr.php?view=MTUzNTY
Comment
Comment