On Tue, January 15, 2008 14:19, Daevid Vincent wrote:
>> -----Original Message-----
>> From: baron.schwartz@stripped
>> [mailto:baron.schwartz@stripped] On Behalf Of Baron Schwartz
>> Sent: Tuesday, January 15, 2008 1:49 PM
>> To: Daevid Vincent
>> Cc: mysql@stripped
>> Subject: Re: does 'disable networking' make mySQL faster?
>> > > On Jan 14, 2008 7:00 AM, Daevid Vincent <
>> daevid@stripped> wrote:
>> > >
>> > >> I saw this on the PHP list and was wondering if there is
>> any merit to
>> > it?!
>> > >> I would be surprised if disabling networking made a
>> difference. I'm only
>> > >> concerned about the added speed. I get the security
>> benefit of course.
>> > >>
>> > >>> From: Manuel Lemos [mailto:mlemos@stripped]
>> > >>> Sent: Saturday, January 12, 2008 12:57 PM
>> > >>> To: php-general@stripped
>> > >>> Subject: Re: [PHP] Re: SMTP vs mail()
>> > >>>
>> > >>> Every time I install MySQL on the same machine as the
>> Web server, I
>> > >>> disable networking to make it use Unix domain sockets,
>> for either
>> > >>> greater speed and security.
>> Why don't you ask the author of the original post to explain or
>> justify his opinion on faster performance, instead of asking people
>> who didn't make that claim?
> Uh... Because it's a MYSQL question and not a PHP question for one.
> For two, there have been a couple people on THIS list who have suggested
> is true, and there are a few more who (like me) are hard pressed to
> they are correct (or that mySQL would be written so poorly if that is
> Three, I have my doubts the original author knows what the hell he's
> about, and therefore asking him to justify would just give me more
> questionable results.
I think I remember a README file in 3.23 that said something like this.
If its still true it may be because if the server knows it doesn't need to
deal with networking it can skip a whole bunch of tests like is this
connection over a network. Using sockets involves less work than going
through the TCP/IP stack, even if mysql itself doesn't take more time the
OS will. Note, my information is dated.