LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2007, 01:26 AM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,025

Rep: Reputation: 67
faster new machine serves images slower than old machine?


I have a live site, let's call it mydomain.com. The site has been up for 46 days and served up about 1.5 million page views last month which means about 8 million hits.

I'm setting up a new server with a faster CPU (which happens to be dual-core), more RAM, 3 hard drives instead of one, and a 100 Mb/s network interface instead of 10Mb/s.

I've copied my site code over to the new machine which I can access by visiting server2.mydomain.com.

For some reason, the pages seem to render more slowly on the new machine even though it should be faster. In particular, the new machine appears to load images more slowly. Why might this be?? I can clear the cache in my browser, visit the same page on both sites and the live machine (a 2ghz celeron) appears to serve the images more quickly than the hot new box (2.2ghz dual-core AMD chip). Might this be due to some DNS weirdness as in the the old machine is a more widely visited IP address than the new machine? Is there some way to benchmark this sort of thing so I can bring a quantitative argument to my hosting provider about it?
 
Old 11-01-2007, 02:01 AM   #2
selva146
Member
 
Registered: Oct 2007
Location: INDIA
Distribution: Rehat, Fedora, RHEL
Posts: 47

Rep: Reputation: 15
Hi,
if you doubt about DNS, then try access your site by ip address. then see the difference
 
Old 11-01-2007, 11:23 AM   #3
strick1226
Member
 
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, OS X, SLES, Ubuntu
Posts: 327

Rep: Reputation: 63
As crazy at it sounds, you might want to check the duplex setting of the new server's NIC. I've seen some at 1000/half and it is PAINFUL to use those boxes.

Beyond that, I think Selva146's suggestion on bypassing DNS by using the direct IP address is a great idea.
 
Old 11-01-2007, 03:28 PM   #4
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,025

Original Poster
Rep: Reputation: 67
I used tracert and apparently the old server has 29 hops where the new one has only 18. I'm guessing the route packets take is not permanent and may improve with time as the new server becomes more popular?

How might I check the duplex setting on the new server? It's on the east coast (i'm in cali). Is there a CLI command?
 
Old 11-01-2007, 05:00 PM   #5
complich8
Member
 
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 16
duplex settings: check the output of "ethtool eth0"

you can try forcing full-duplex with ethtool, as well.

I doubt it's a forward dns issue. You might be having reverse dns lookup issues though -- eg for apache logging. Check your httpd logs and config.

Also, consider looking at your httpd config anyway. There's a lot of settings in there that can substantially affect performance...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which distro runs faster on your machine? BrokeBody Linux - Software 12 11-09-2007 08:01 AM
Tips for FC5 install on a slower machine GoHskrs Fedora 8 03-28-2006 10:25 PM
Best linux setup for a slower machine? Acelius Linux - Laptop and Netbook 16 08-13-2004 09:56 PM
codes run slower on the faster machine xudeyong Programming 12 05-03-2003 05:09 PM
Dialup from RH72 slower than from Win2K on same machine ellisdodge Linux - Networking 4 08-09-2002 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration