<?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 for IT Know-It-All</title>
	<atom:link href="http://itkia.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://itkia.com</link>
	<description>Applications, OS, Networking, Data</description>
	<lastBuildDate>Sun, 25 Jul 2010 05:46:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Multithreaded Apache In Small VPS by IT Know-It-All</title>
		<link>http://itkia.com/multithreaded-apache-in-small-vps/comment-page-1/#comment-951</link>
		<dc:creator>IT Know-It-All</dc:creator>
		<pubDate>Sun, 25 Jul 2010 05:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=57#comment-951</guid>
		<description>Good question. Looking at the &lt;a href=&quot;http://httpd.apache.org/docs/2.1/mod/mpm_common.html#threadstacksize&quot; rel=&quot;nofollow&quot;&gt;Apache documentation for ThreadStackSize&lt;/a&gt;, it says the directive &quot;sets the size of the stack (for autodata) of threads which handle client connections and call modules to help process those connections.&quot; Since CGI and FastCGI are spawned external processes I would presume that ThreadStackSize would not affect them, although setting &quot;ulimit -s&quot; for Apache &lt;strong&gt;would&lt;/strong&gt; probably inherit to the spawned processes since it is an environmental constraint where ThreadStackSize is an application control.

Unfortunately the real answer is &quot;I don&#039;t know.&quot; But other OS&#039;es have small (64k-128k) stack sizes by default, and I haven&#039;t seen anyone say that they are a problem for PHP. If I wanted to test it, I would find a way to put more that 128k on the stack. Perhaps create a large data structure and try to pass it by value (as opposed to by reference) and see if there is a stack overflow error.</description>
		<content:encoded><![CDATA[<p>Good question. Looking at the <a href="http://httpd.apache.org/docs/2.1/mod/mpm_common.html#threadstacksize" rel="nofollow">Apache documentation for ThreadStackSize</a>, it says the directive &#8220;sets the size of the stack (for autodata) of threads which handle client connections and call modules to help process those connections.&#8221; Since CGI and FastCGI are spawned external processes I would presume that ThreadStackSize would not affect them, although setting &#8220;ulimit -s&#8221; for Apache <strong>would</strong> probably inherit to the spawned processes since it is an environmental constraint where ThreadStackSize is an application control.</p>
<p>Unfortunately the real answer is &#8220;I don&#8217;t know.&#8221; But other OS&#8217;es have small (64k-128k) stack sizes by default, and I haven&#8217;t seen anyone say that they are a problem for PHP. If I wanted to test it, I would find a way to put more that 128k on the stack. Perhaps create a large data structure and try to pass it by value (as opposed to by reference) and see if there is a stack overflow error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multithreaded Apache In Small VPS by pulponair</title>
		<link>http://itkia.com/multithreaded-apache-in-small-vps/comment-page-1/#comment-934</link>
		<dc:creator>pulponair</dc:creator>
		<pubDate>Wed, 21 Jul 2010 13:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=57#comment-934</guid>
		<description>Hmm i wonder if the apache stacklimit (if specified via ThreadStackSize) is inheritated to a single php5-cgi prozess. 

Do you know anything about how things work together?</description>
		<content:encoded><![CDATA[<p>Hmm i wonder if the apache stacklimit (if specified via ThreadStackSize) is inheritated to a single php5-cgi prozess. </p>
<p>Do you know anything about how things work together?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Live Essentials Full Download by Josh</title>
		<link>http://itkia.com/windows-live-essentials-full-download/comment-page-1/#comment-13</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sun, 28 Feb 2010 21:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=20#comment-13</guid>
		<description>Thanks for the info. I knew the full download was available because I had the full download from about a year ago, but couldn&#039;t find it as easily this time. Needed the updated version for deploying to multiple clients. Not sure why Windows Live isn&#039;t handed out via WSUS. I guess it&#039;s not much of a business solution.</description>
		<content:encoded><![CDATA[<p>Thanks for the info. I knew the full download was available because I had the full download from about a year ago, but couldn&#8217;t find it as easily this time. Needed the updated version for deploying to multiple clients. Not sure why Windows Live isn&#8217;t handed out via WSUS. I guess it&#8217;s not much of a business solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VPS and Sneaky CPU Problems by IT Know-It-All</title>
		<link>http://itkia.com/vps-and-sneaky-cpu-problems/comment-page-1/#comment-7</link>
		<dc:creator>IT Know-It-All</dc:creator>
		<pubDate>Thu, 14 Dec 2006 04:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=51#comment-7</guid>
		<description>Okay, I&#039;m so excited to get a response I just keep replying to you.

I connected to my associate&#039;s cPanel and clicked the backup icon. I have the option to download the home directory backup and a MySQL database backup. You&#039;d want both of those for a Drupal site.

However I don&#039;t see any way to affect cpu usage during backups using cPanel.

Are your cpu problems happening only when you&#039;re doing backups, or always? I&#039;m starting to wonder if your problem isn&#039;t with backups, but I don&#039;t have enough info.</description>
		<content:encoded><![CDATA[<p>Okay, I&#8217;m so excited to get a response I just keep replying to you.</p>
<p>I connected to my associate&#8217;s cPanel and clicked the backup icon. I have the option to download the home directory backup and a MySQL database backup. You&#8217;d want both of those for a Drupal site.</p>
<p>However I don&#8217;t see any way to affect cpu usage during backups using cPanel.</p>
<p>Are your cpu problems happening only when you&#8217;re doing backups, or always? I&#8217;m starting to wonder if your problem isn&#8217;t with backups, but I don&#8217;t have enough info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VPS and Sneaky CPU Problems by IT Know-It-All</title>
		<link>http://itkia.com/vps-and-sneaky-cpu-problems/comment-page-1/#comment-5</link>
		<dc:creator>IT Know-It-All</dc:creator>
		<pubDate>Thu, 14 Dec 2006 04:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=51#comment-5</guid>
		<description>If you&#039;re used to a hosted environment and not the Linux command line I may have left you needlessly confused in my previous reply, but maybe somebody will get something out of it.

I&#039;ll try to keep this one simpler.

First, there are two things you should be backing up for your Drupal site: the Drupal and user files and the Drupal database.

In my case I am using command line scripts to dump the database to a backup file and then my home machine grabs the backup dump remotely. In your case you may have a Panel to manage the database. I&#039;ve toyed with cPanel on an associate&#039;s server but haven&#039;t used it for backups, so I can&#039;t help you with specifics there. Just be aware you probably have to worry about the database backups in addition to the file backups.

For file backups, using scp or rsync may be doable for you even in a hosted environment. If you are initiating the backup from your server&#039;s command line, then just add &quot;nice&quot; to the beginning of the command and your backups won&#039;t take cpu cycles from your web server. If your backup machine is initiating the request then you have to go through gyrations like in my previous comment to make sure the backup process on the web server side is &quot;nice&quot;.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re used to a hosted environment and not the Linux command line I may have left you needlessly confused in my previous reply, but maybe somebody will get something out of it.</p>
<p>I&#8217;ll try to keep this one simpler.</p>
<p>First, there are two things you should be backing up for your Drupal site: the Drupal and user files and the Drupal database.</p>
<p>In my case I am using command line scripts to dump the database to a backup file and then my home machine grabs the backup dump remotely. In your case you may have a Panel to manage the database. I&#8217;ve toyed with cPanel on an associate&#8217;s server but haven&#8217;t used it for backups, so I can&#8217;t help you with specifics there. Just be aware you probably have to worry about the database backups in addition to the file backups.</p>
<p>For file backups, using scp or rsync may be doable for you even in a hosted environment. If you are initiating the backup from your server&#8217;s command line, then just add &#8220;nice&#8221; to the beginning of the command and your backups won&#8217;t take cpu cycles from your web server. If your backup machine is initiating the request then you have to go through gyrations like in my previous comment to make sure the backup process on the web server side is &#8220;nice&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VPS and Sneaky CPU Problems by IT Know-It-All</title>
		<link>http://itkia.com/vps-and-sneaky-cpu-problems/comment-page-1/#comment-4</link>
		<dc:creator>IT Know-It-All</dc:creator>
		<pubDate>Thu, 14 Dec 2006 04:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=51#comment-4</guid>
		<description>Hello, and thanks for being my first commenter! I&#039;m sorry I didn&#039;t see your reply earlier. I&#039;m not used to having replies here and hadn&#039;t checked in ages.

I am running Drupal, but the processes I&#039;m speaking about here aren&#039;t specific to Drupal.

I am not using a hosted environment but running my own Virtual Private Server which for practical purposes gives me my own linux server to configure as I want. But perhaps some of my experience may be useful for you.

&quot;nice&quot; services: Each running program or process has a priority level; higher priorities can choke out lower priority processes. The command line program to run a program with an altered priority is &quot;nice&quot;. So if I am using a command like &quot;scp -r /var/www user@remotehost:/home/backups/www&quot; which uses the cpu to compress and encrypt the data I can give it a lower priority by instead using &quot;nice scp -r /var/www user@remotehost:/home/backups/www&quot;. Now if the web server process needs cpu it will get priority over the cpu-intensive but not-in-a-hurry backup process.

Now, in my particular case I am using rsync over ssh. My home box initiates and controls the session and pulls the data from the remote web server. Here are a couple of articles explaining this:

http://www.jdmz.net/ssh/
http://www.linux.com/article.pl?sid=04/11/04/0346256

I&#039;ll let those do the heavy explaining and add here that if you run the local rsync as &quot;nice&quot; it doesn&#039;t automatically make the server-side process &quot;nice&quot;. I made a script called &quot;nice-rsync&quot; and modified the &quot;validate-rsync&quot; script from the articles as shown below.

&quot;nice-rsync&quot; just runs rsync &quot;nice&quot;d and passes on the original parameters. This is what reduces the backup load on my server, but if you&#039;re using a different backup it will probably be simpler.

The altered &quot;validate-rsync&quot; just adds my &quot;nice-rsync&quot; script as an allowed executable to run under the ssh shell.

nice-rsync:

&lt;code&gt;#!/bin/sh
exec nice -n 19 /usr/bin/rsync $*&lt;/code&gt;

validate-rsync:

&lt;code&gt;#!/bin/sh

case &quot;$SSH_ORIGINAL_COMMAND&quot; in
        *\&amp;*)
                echo &quot;Rejected&quot;
                ;;
        *\(*)
                echo &quot;Rejected&quot;
                ;;
        *\{*)
                echo &quot;Rejected&quot;
                ;;
        *\;*)
                echo &quot;Rejected&quot;
                ;;
        *\&lt;*)
                echo &quot;Rejected&quot;
                ;;
        *\`*)
                echo &quot;Rejected&quot;
                ;;
        rsync\ --server*)
                $SSH_ORIGINAL_COMMAND
                ;;
        /home/backup/nice-rsync\ --server*)
                $SSH_ORIGINAL_COMMAND
                ;;
        *)
                echo &quot;Rejected&quot;
                ;;
esac&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hello, and thanks for being my first commenter! I&#8217;m sorry I didn&#8217;t see your reply earlier. I&#8217;m not used to having replies here and hadn&#8217;t checked in ages.</p>
<p>I am running Drupal, but the processes I&#8217;m speaking about here aren&#8217;t specific to Drupal.</p>
<p>I am not using a hosted environment but running my own Virtual Private Server which for practical purposes gives me my own linux server to configure as I want. But perhaps some of my experience may be useful for you.</p>
<p>&#8220;nice&#8221; services: Each running program or process has a priority level; higher priorities can choke out lower priority processes. The command line program to run a program with an altered priority is &#8220;nice&#8221;. So if I am using a command like &#8220;scp -r /var/www user@remotehost:/home/backups/www&#8221; which uses the cpu to compress and encrypt the data I can give it a lower priority by instead using &#8220;nice scp -r /var/www user@remotehost:/home/backups/www&#8221;. Now if the web server process needs cpu it will get priority over the cpu-intensive but not-in-a-hurry backup process.</p>
<p>Now, in my particular case I am using rsync over ssh. My home box initiates and controls the session and pulls the data from the remote web server. Here are a couple of articles explaining this:</p>
<p><a href="http://www.jdmz.net/ssh/" rel="nofollow">http://www.jdmz.net/ssh/</a><br />
<a href="http://www.linux.com/article.pl?sid=04/11/04/0346256" rel="nofollow">http://www.linux.com/article.pl?sid=04/11/04/0346256</a></p>
<p>I&#8217;ll let those do the heavy explaining and add here that if you run the local rsync as &#8220;nice&#8221; it doesn&#8217;t automatically make the server-side process &#8220;nice&#8221;. I made a script called &#8220;nice-rsync&#8221; and modified the &#8220;validate-rsync&#8221; script from the articles as shown below.</p>
<p>&#8220;nice-rsync&#8221; just runs rsync &#8220;nice&#8221;d and passes on the original parameters. This is what reduces the backup load on my server, but if you&#8217;re using a different backup it will probably be simpler.</p>
<p>The altered &#8220;validate-rsync&#8221; just adds my &#8220;nice-rsync&#8221; script as an allowed executable to run under the ssh shell.</p>
<p>nice-rsync:</p>
<p><code>#!/bin/sh<br />
exec nice -n 19 /usr/bin/rsync $*</code></p>
<p>validate-rsync:</p>
<p><code>#!/bin/sh</p>
<p>case "$SSH_ORIGINAL_COMMAND" in<br />
        *\&#038;*)<br />
                echo "Rejected"<br />
                ;;<br />
        *\(*)<br />
                echo "Rejected"<br />
                ;;<br />
        *\{*)<br />
                echo "Rejected"<br />
                ;;<br />
        *\;*)<br />
                echo "Rejected"<br />
                ;;<br />
        *\< *)<br />
                echo "Rejected"<br />
                ;;<br />
        *\`*)<br />
                echo "Rejected"<br />
                ;;<br />
        rsync\ --server*)<br />
                $SSH_ORIGINAL_COMMAND<br />
                ;;<br />
        /home/backup/nice-rsync\ --server*)<br />
                $SSH_ORIGINAL_COMMAND<br />
                ;;<br />
        *)<br />
                echo "Rejected"<br />
                ;;<br />
esac</code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VPS and Sneaky CPU Problems by Anonymous</title>
		<link>http://itkia.com/vps-and-sneaky-cpu-problems/comment-page-1/#comment-3</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 02 Nov 2006 15:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=51#comment-3</guid>
		<description>hi, I assume you are talking about DRUPAL here.

I do not understand all of your statements thouhgth I have a very similar problem to this one:

what do you mean by &quot;to nice services&quot;, please?
how can you switch off backup processes, on a hosted environemnt?
and, please, what changes did you do to your scripts, to be easier on CPU.

thanks a lot.

dave</description>
		<content:encoded><![CDATA[<p>hi, I assume you are talking about DRUPAL here.</p>
<p>I do not understand all of your statements thouhgth I have a very similar problem to this one:</p>
<p>what do you mean by &#8220;to nice services&#8221;, please?<br />
how can you switch off backup processes, on a hosted environemnt?<br />
and, please, what changes did you do to your scripts, to be easier on CPU.</p>
<p>thanks a lot.</p>
<p>dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>
