<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: We&#8217;re Hunting Memory Leaks</title>
	<atom:link href="http://webkit.org/blog/20/were-hunting-memory-leaks/feed/" rel="self" type="application/rss+xml" />
	<link>http://webkit.org/blog/20/were-hunting-memory-leaks/</link>
	<description>All about WebKit development</description>
	<lastBuildDate>Sat, 21 Nov 2009 23:00:28 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: simx</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-262</link>
		<dc:creator>simx</dc:creator>
		<pubDate>Wed, 02 Nov 2005 01:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-262</guid>
		<description>Ummmm... whoops, somehow posted this on the wrong entry.  :sheepish:  Reposting on the right entry now...</description>
		<content:encoded><![CDATA[<p>Ummmm&#8230; whoops, somehow posted this on the wrong entry.  :sheepish:  Reposting on the right entry now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name99</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-174</link>
		<dc:creator>name99</dc:creator>
		<pubDate>Sun, 18 Sep 2005 06:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-174</guid>
		<description>Hi maciej, 
In followup to your requests, I have submitted a bug in bugzilla (5035).
I can&#039;t see any way to attach the shark report to the bug. Please mail me telling me how to get it to you.</description>
		<content:encoded><![CDATA[<p>Hi maciej,<br />
In followup to your requests, I have submitted a bug in bugzilla (5035).<br />
I can&#8217;t see any way to attach the shark report to the bug. Please mail me telling me how to get it to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave_bartlett</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-155</link>
		<dc:creator>dave_bartlett</dc:creator>
		<pubDate>Wed, 31 Aug 2005 12:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-155</guid>
		<description>2b.
Just come across window.close again @ yahoo.

http://uk.play.yahoo.com/games/close.html</description>
		<content:encoded><![CDATA[<p>2b.<br />
Just come across window.close again @ yahoo.</p>
<p><a href="http://uk.play.yahoo.com/games/close.html" rel="nofollow">http://uk.play.yahoo.com/games/close.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave_bartlett</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-154</link>
		<dc:creator>dave_bartlett</dc:creator>
		<pubDate>Wed, 31 Aug 2005 10:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-154</guid>
		<description>I don&#039;t have the developer tools on my machine but there are two &quot;world leaks&quot; than Safari 1.3.1 tells me about.

Perhaps someone with dev tools could test these against a current Safari build and update bugzilla if they&#039;re still current?

1. BBC world service
http://www.bbc.co.uk/radio/aod/worldservice_promo.shtml
a) load page
b) click &quot;listen live&quot;
c) close page &gt; &quot;world leak detected&quot;

2. window.close()
This page describes a repeatable leak with window.close()
http://lists.apple.com/archives/Web-dev/2005/Jan/msg00003.html</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have the developer tools on my machine but there are two &#8220;world leaks&#8221; than Safari 1.3.1 tells me about.</p>
<p>Perhaps someone with dev tools could test these against a current Safari build and update bugzilla if they&#8217;re still current?</p>
<p>1. BBC world service<br />
<a href="http://www.bbc.co.uk/radio/aod/worldservice_promo.shtml" rel="nofollow">http://www.bbc.co.uk/radio/aod/worldservice_promo.shtml</a><br />
a) load page<br />
b) click &#8220;listen live&#8221;<br />
c) close page &gt; &#8220;world leak detected&#8221;</p>
<p>2. window.close()<br />
This page describes a repeatable leak with window.close()<br />
<a href="http://lists.apple.com/archives/Web-dev/2005/Jan/msg00003.html" rel="nofollow">http://lists.apple.com/archives/Web-dev/2005/Jan/msg00003.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterparker</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-112</link>
		<dc:creator>peterparker</dc:creator>
		<pubDate>Thu, 25 Aug 2005 00:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-112</guid>
		<description>I wish I had time to participate in this because I spend a lot of time in the Apple discussion forums and Safari&#039;s real memory just keeps going higher while I&#039;m in there. But... the worst part is that with JavaScript enabled almost any link on the Apple site takes a good full second before it even attempts to start loading the page after clicking on it. Disable JavaScript, and voila the same links load normally. That one stinks...</description>
		<content:encoded><![CDATA[<p>I wish I had time to participate in this because I spend a lot of time in the Apple discussion forums and Safari&#8217;s real memory just keeps going higher while I&#8217;m in there. But&#8230; the worst part is that with JavaScript enabled almost any link on the Apple site takes a good full second before it even attempts to start loading the page after clicking on it. Disable JavaScript, and voila the same links load normally. That one stinks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maciej</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-111</link>
		<dc:creator>maciej</dc:creator>
		<pubDate>Wed, 24 Aug 2005 18:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-111</guid>
		<description>name99: There may also be non-leak memory growth or fragmentation. Certainly, if there is, we would like to fix it. But since this kind of thing is much harder to detect with tools, we are focusing on memory leaks first.

That being said, it would be helpful if you could provide any of the following: (1) specific steps to reproduce &quot;slow mode&quot; (just saying &quot;run it for a few days&quot; is not enough - not everyone visits the same web sites or uses the browser in the same way, and so far no one on the Safari team is regularly encountering this sort of &quot;slow mode&quot;); (2) a profile made with Shark.app (included in the developer toos) taken while browsing and while quitting when Safari is in this bad state. Bug reports with that kind of info would help us a lot.</description>
		<content:encoded><![CDATA[<p>name99: There may also be non-leak memory growth or fragmentation. Certainly, if there is, we would like to fix it. But since this kind of thing is much harder to detect with tools, we are focusing on memory leaks first.</p>
<p>That being said, it would be helpful if you could provide any of the following: (1) specific steps to reproduce &#8220;slow mode&#8221; (just saying &#8220;run it for a few days&#8221; is not enough &#8211; not everyone visits the same web sites or uses the browser in the same way, and so far no one on the Safari team is regularly encountering this sort of &#8220;slow mode&#8221;); (2) a profile made with Shark.app (included in the developer toos) taken while browsing and while quitting when Safari is in this bad state. Bug reports with that kind of info would help us a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mardoen</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-110</link>
		<dc:creator>mardoen</dc:creator>
		<pubDate>Tue, 23 Aug 2005 15:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-110</guid>
		<description>The nature of the comments here makes me wonder if this site wouldn&#039;t be well-advised to have a user questions/bug discussion forum.

Or how about something similar to what Asa is doing on his blog: &quot;Ask Asa&quot;?</description>
		<content:encoded><![CDATA[<p>The nature of the comments here makes me wonder if this site wouldn&#8217;t be well-advised to have a user questions/bug discussion forum.</p>
<p>Or how about something similar to what Asa is doing on his blog: &#8220;Ask Asa&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name99</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-108</link>
		<dc:creator>name99</dc:creator>
		<pubDate>Fri, 19 Aug 2005 14:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-108</guid>
		<description>Is the problem as simple as memory leaks?
I haven&#039;t used Safari 2.0 enough to comment, but with 1.3 (and earlier) in addition to simple memory leakage there seems to be some sort of ever growing fragmentation of all memory structures. This obviously shows up in the (frequently complained about) fact that Safari starts off zippy and then over time (for me with a half-life of about a week) slowly gets slower and slower and so so so slow. But more interesting is that, once it has reached this slow state where every action takes 30 seconds to perform, when you quit the app the quitting takes about a minute. Interestingly, this extremely slow shutdown occurs even if you close every window before you choose quit from the menu.

It&#039;s hard to see how memory leakage per se could lead to such a slow shutdown. It really seems more like some critical data structures are based on perhaps linked lists that get insanely fragmented, with a bazillion dead nodes in the middle of the list, or a hash that goes wrong and hashes EVERYTHING to the same number. 

My point is that, 
(1) while it is always good to kill memory leaks, it&#039;s not clear to me (via informal monitoring of my memory usage and paging through menumeters) that it is memory leakage and VM swappage per se that is slowing Safari down.
(2) it would be worth your while, I think, and probably easier than many alternatives, to investigate what is going on when Safari is quit in the simplest case of having no windows open. Write some code to count various operations, conditional on some variable that only gets set when the user chooses quit, and try to track what is going on at this point and just why it takes so long. (Obviously you want to do this after Safari has been used for a few days or weeks so that it has switched to &quot;slow mode&quot;.)</description>
		<content:encoded><![CDATA[<p>Is the problem as simple as memory leaks?<br />
I haven&#8217;t used Safari 2.0 enough to comment, but with 1.3 (and earlier) in addition to simple memory leakage there seems to be some sort of ever growing fragmentation of all memory structures. This obviously shows up in the (frequently complained about) fact that Safari starts off zippy and then over time (for me with a half-life of about a week) slowly gets slower and slower and so so so slow. But more interesting is that, once it has reached this slow state where every action takes 30 seconds to perform, when you quit the app the quitting takes about a minute. Interestingly, this extremely slow shutdown occurs even if you close every window before you choose quit from the menu.</p>
<p>It&#8217;s hard to see how memory leakage per se could lead to such a slow shutdown. It really seems more like some critical data structures are based on perhaps linked lists that get insanely fragmented, with a bazillion dead nodes in the middle of the list, or a hash that goes wrong and hashes EVERYTHING to the same number. </p>
<p>My point is that,<br />
(1) while it is always good to kill memory leaks, it&#8217;s not clear to me (via informal monitoring of my memory usage and paging through menumeters) that it is memory leakage and VM swappage per se that is slowing Safari down.<br />
(2) it would be worth your while, I think, and probably easier than many alternatives, to investigate what is going on when Safari is quit in the simplest case of having no windows open. Write some code to count various operations, conditional on some variable that only gets set when the user chooses quit, and try to track what is going on at this point and just why it takes so long. (Obviously you want to do this after Safari has been used for a few days or weeks so that it has switched to &#8220;slow mode&#8221;.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bluea</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-107</link>
		<dc:creator>bluea</dc:creator>
		<pubDate>Thu, 18 Aug 2005 18:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-107</guid>
		<description>Is there a way to &#039;replay&#039; the History log? Or enable Applescript recordability?</description>
		<content:encoded><![CDATA[<p>Is there a way to &#8216;replay&#8217; the History log? Or enable Applescript recordability?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://webkit.org/blog/20/were-hunting-memory-leaks/comment-page-1/#comment-106</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 18 Aug 2005 16:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=20#comment-106</guid>
		<description>I know this isn&#039;t the right place to do this...but...I haven&#039;t learnt how to search and use BugZilla properly yet.

Anyway, the latest builds have two visible acid2 errors;
   1. The nose changes to blue on mouseover
   2. The eyes are gone

zahadum, that isn&#039;t really a constructive post is it. It&#039;s especially ironic that one thing you&#039;re complaining about is now a big focus of the team. If the defects are so &quot;simple&quot; how about pulling the code and making some beneficial changes yourself? I&#039;m sure they&#039;d be delighted if you solved just one memory leak, and of course Apple wouldn&#039;t lose you then.

Matt</description>
		<content:encoded><![CDATA[<p>I know this isn&#8217;t the right place to do this&#8230;but&#8230;I haven&#8217;t learnt how to search and use BugZilla properly yet.</p>
<p>Anyway, the latest builds have two visible acid2 errors;<br />
   1. The nose changes to blue on mouseover<br />
   2. The eyes are gone</p>
<p>zahadum, that isn&#8217;t really a constructive post is it. It&#8217;s especially ironic that one thing you&#8217;re complaining about is now a big focus of the team. If the defects are so &#8220;simple&#8221; how about pulling the code and making some beneficial changes yourself? I&#8217;m sure they&#8217;d be delighted if you solved just one memory leak, and of course Apple wouldn&#8217;t lose you then.</p>
<p>Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>
