<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: To stat() Or Not To stat()?</title>
	<atom:link href="http://www.brandonsavage.net/to-stat-or-not-to-stat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brandonsavage.net/to-stat-or-not-to-stat/</link>
	<description>The personal blog of Brandon Savage. Contains entries of a personal and professional nature focusing on PHP, Apple, LAMP, MySQL and Washington, DC.</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:09:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Oscar</title>
		<link>http://www.brandonsavage.net/to-stat-or-not-to-stat/#comment-794</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Fri, 31 Jul 2009 17:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonsavage.net/?p=503#comment-794</guid>
		<description>I&#039;ve noticed that APC and other opcode caches can help with memory, since retrieving the opcodes from the cache require less memory than parsing the PHP file each time.  The first time a PHP file is parsed, the scripts memory consumption will be high, but subsequent calls are smaller.

Depending on how memory starved your server is, this can help some as it keeps the memory usage for apache lower, especially if you use prefork.

Do you have any benchmarks for how much turning stat() off can help?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed that APC and other opcode caches can help with memory, since retrieving the opcodes from the cache require less memory than parsing the PHP file each time.  The first time a PHP file is parsed, the scripts memory consumption will be high, but subsequent calls are smaller.</p>
<p>Depending on how memory starved your server is, this can help some as it keeps the memory usage for apache lower, especially if you use prefork.</p>
<p>Do you have any benchmarks for how much turning stat() off can help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Savage</title>
		<link>http://www.brandonsavage.net/to-stat-or-not-to-stat/#comment-783</link>
		<dc:creator>Brandon Savage</dc:creator>
		<pubDate>Fri, 31 Jul 2009 00:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonsavage.net/?p=503#comment-783</guid>
		<description>That&#039;s one option, though I don&#039;t know that I&#039;d care that much. I can just run &quot;apachectl graceful&quot; every time I update the files, or automate that process in some way when rsync runs.</description>
		<content:encoded><![CDATA[<p>That&#8217;s one option, though I don&#8217;t know that I&#8217;d care that much. I can just run &#8220;apachectl graceful&#8221; every time I update the files, or automate that process in some way when rsync runs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent</title>
		<link>http://www.brandonsavage.net/to-stat-or-not-to-stat/#comment-782</link>
		<dc:creator>Brent</dc:creator>
		<pubDate>Thu, 30 Jul 2009 22:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonsavage.net/?p=503#comment-782</guid>
		<description>Here is a crazy idea, you could use incron ( http://inotify.aiken.cz/?section=incron&amp;page=about&amp;lang=en ) to monitor files and call apc_cache_clear() when a file is changed.</description>
		<content:encoded><![CDATA[<p>Here is a crazy idea, you could use incron ( <a href="http://inotify.aiken.cz/?section=incron&amp;page=about&amp;lang=en" rel="nofollow">http://inotify.aiken.cz/?section=incron&amp;page=about&amp;lang=en</a> ) to monitor files and call apc_cache_clear() when a file is changed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk (feed is rejected)
Page Caching using apc (user agent is rejected)
Database Caching 44/51 queries in 0.010 seconds using disk
Content Delivery Network via Amazon Web Services: S3: files.brandonsavage.net.s3.amazonaws.com

Served from: www.brandonsavage.net @ 2010-07-31 10:47:55 -->