|
2008-09-02
, 17:15
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#22
|
Well, isn't putting each on in its own process and each one having its own interface essentially just running multiple instances, but under one main window?
I spawn multiple copies of links rather than use one process with several windows. Then when I close that "tab" all the memory is reclaimed and I don't have to worry about any cached pages.
browserd, I think, is just the opposite. It is one rendering engine with the ability to respawn the main window. Closing the window doesn't even have any effect on the browser. Am I understanding this correctly?
The Following User Says Thank You to epage For This Useful Post: | ||
|
2008-09-02
, 17:35
|
Posts: 566 |
Thanked: 150 times |
Joined on Dec 2007
|
#23
|
Fork is the main way of creating new processes on Linux. When you fork a process, it does not duplicate all of the memory pages but instead marks them as needing to be copied on the next write. If writes never happens or are rare, than very little memory is spent in having two processes. Also on Linux, threads are implemented through processes that share the same memory pages.
http://linux.about.com/od/commands/l/blcmdl2_fork.htm
So in theory, if there are very few changes to the pages of a virgin webkit and that there is little in common between once rendering pages, then the overhead of separate processes would be negligible.
Disclaimer: I do not know details of browserd. I have no clue what benefits it might have by what structure it might use.
|
2008-09-02
, 18:12
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#24
|
|
2008-09-02
, 18:50
|
Posts: 40 |
Thanked: 14 times |
Joined on Apr 2007
|
#25
|
|
2008-09-02
, 18:58
|
Posts: 13 |
Thanked: 20 times |
Joined on Aug 2008
@ Switzerland
|
#26
|
|
2008-09-02
, 19:02
|
|
Posts: 1,656 |
Thanked: 1,196 times |
Joined on Apr 2008
@ Alabama, USA
|
#27
|
|
2008-09-02
, 19:05
|
Posts: 76 |
Thanked: 8 times |
Joined on Mar 2008
@ Friday Harbor, WA, USA
|
#28
|
|
2008-09-02
, 19:11
|
|
Posts: 1,436 |
Thanked: 3,144 times |
Joined on Jul 2005
|
#29
|
|
2008-09-02
, 19:16
|
Posts: 80 |
Thanked: 6 times |
Joined on Jul 2008
@ Seattle
|
#30
|
Tags |
browser, chrome, google, webkit |
Thread Tools | |
|
it seems the window is what holds the current rendered page and data, so that even if browserd dies from a bad script or something else, the different browser windows dont die, except for the one that was connected to whatever it was that made browserd die...
but this is me sitting on the fence, observing the process list...