|
Posted by xhoster on August 28, 2006, 5:24 pm
Please log in for more thread options
> On Mon, 28 Aug 2006 16:27:31 +0000, xhoster wrote:
>
> > You are not making the important distiction between throughput and
> > latency. Your Perl script sends the sql command, then waits to get a
> > response. While waiting, it does nothing--it doesn't use CPU and/or
> > bandwidth by "sending ahead on prospect" more update statements. So
> > you are limited by latency, not by throughput. With an insert, you can
> > circumvent this by using the MySQL-specific multiple row insert
> > statement to add many rows per network round-trip. Maybe you can use
> > the MySQL-specific "INSERT...ON DUPLICATE KEY UPDATE" syntax to
> > accomplish the same thing--just a suggestion, I've never looked into it
> > in detail myself. However, if your real situation will have the two
> > machines on the same LAN, then latency will probably not be a problem.
> > You simply can't do benchmarking on such disparate setups and expect
> > the results to be meaningful.
> >
> > Xho
>
> i understand the differences in the setup, but i dont see latency playing
> that much of a role in this issue. ping response from solaris to windows
> on the lan (live setup) is 2.73ms. ping response from my home machine to
> my colo box is 17.5ms.
Is that under load or under no load? Anyway, you reported 71 seconds for
1000 records, which is 71ms per record. 71ms is only fourfold more than
17.5 ms, so I would say that latency is definitely in the ball park to be a
problem. (I would expect MySQL to have more overhead then ping--4 times
more would not greatly surprise me.)
> my issue is that the two setups perform the same
> in regards to how slow they are getting the information to the server. i
> can understand it being slower, that's a given, but what im having an
> issue with is that it takes just as long to update 10 records remotely as
> 1,000 locally...then something is going wrong somewhere. i'd suspect it
> should be faster than that.
I'm afraid you lost me. You have a localhost msyql connection with 1000
records per second, and an over-cable-modem mysql connection with 14
records per second. Do you have a *mysql* connection on a LAN? If so,
what speed did that provide?
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
|