Forum Moderators: martinibuster

Message Too Old, No Replies

Hosting effect on earnings

         

Hobbs

7:01 am on May 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Does anyone have an experience with the effect server performance (more memory, faster processors) has on AdSense earnings?

Logic says that faster loading pages give users and bots a better experience, but did anyone see an earnings boost after upgrading? Are visitors more likely to click ads on faster loading sites?

Or is the money better spent on code cleaning and content?

I am already on a dedicated server, millions of page impressions per month, and pages load at about average speed now, nothing to complain about, just wondering..

kartiksh

8:44 am on May 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes Hobbs and they are very positive for me. i moved from shared to vps and then dedicated. Shared to vps was having 2x impact on earnings where as vps to dedicated is very similar to vps earnings. But the revenue I am talking is in two figures so it might not be 2x for all.

Hobbs

9:04 am on May 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thanks kartiksh, I assume you built content and the site grew after the move from shared, how much % of the earnings growth do you think was attributed to that upgrade to vps? Was there any immidiate increase in ctr / ecpm or it was a slow growth?

kartiksh

3:12 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is a note on diverse effect i am receiving right now,

The new dedicated server hosts few more websites from our business which gets higher ranking and traffic from UK since last 4 years, since my site which has nothing to do with my business subject, now switched to neighboring IP address, i believe Google has started giving higher priorities to its search results in to UK with correlation to other sites on the server, resulting declining US traffic resulting low eCPM and now I am half at my daily earning. Hope this helps to others.

LifeinAsia

3:19 pm on May 26, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



About 6 months ago, we had 3 web servers for our site (with a load balancer to distribute traffic between the 3 of them). Since then, we have added 5 more and upgraded to a much faster database server. Each time we added a new server, we saw an immediate upwards spike in traffic (and corresponding increase in ad-related revenue).

josetann

7:38 pm on May 26, 2006 (gmt 0)

10+ Year Member



It just all depends. If you're on a fast shared server, and pages are loading up quick, then there's really no need to move your site to its own server. If you're counting seconds on the clock (or even minutes, I've seen this happen), then it's time to move to something beefier.

If you're on your own server now, I'd check the load at various times during the day (preferably during high-peak hours). I want to keep mine below 0.5 (this is on a linux machine btw). That means an average request from the server will take half a second. That's just any old request from the server, an already running process such as httpd may respond much quicker. It's hard to explain, but you want to keep this number low if possible.

The first thing I would personally do, is start to optimize your code. This can have as big or bigger effect on performance than upgrading your server. I was using ssi includes a lot that would call a cgi or a php script, and that script would in turn access my mysql database. Now I run a cron script that runs this query once every five minutes or so and outputs the result to a text file (so I still use ssi includes, but only include text files not php or cgi scripts). So instead of having these scripts run every time a user visits a page, it does so once every five minutes. Another thing I did was upgrade to php5 and install apc (it's basically a php cacher). Load has gone down a good bit. There's more I can do as I have time, but performance is acceptable now and I have more important things to do (preparing for baby!). Another thing to look at would be upgrading mysql (not for the faint of heart, read the upgrade docs) and using a super-fast feature-poor webserver just for plain html, images, downloads, etc. Let apache handle all the hard stuff, and a much leaner, meaner, faster server handle the easy stuff.

Well, I could write pages, but that should give you an idea of where to start. Check performance, optimize, then upgrade if necessary.

david_uk

7:47 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I moved from UK to US hosting because it was cheaper. Most of my visitors are from the US, and one immediate effect was an increase in impressions, clicks and earnings. I'd say that faster load times might have a positive effect. Or at least it can't make things worse :)

Hobbs

7:53 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thanks kartiksh, amazing you dug out the thread, freaked me out for a moment.

josetann thanks, agree that code comes first, but hey preparing for baby, server and code must really seem tiny on your list now.

Metaphorically

9:32 pm on May 26, 2006 (gmt 0)

10+ Year Member



Josetann has a great point. Have a look at how much work your server is doing and, more generally, what your page sizes are. No matter how fast your server is, it can only stuff a 1MB image through the pipe as fast as the client will take it.

If your pages are light and your code is reasonable (the code part is a lot more subjective) then look at a faster server.

DamonHD

9:51 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I'm hoping to upgrade my oldest and slowest mirror (in the UK) to Sun's (smallest) CoolThreads box, and have been tweaking my code to try to be ready to take advantage of what are effectively 24 CPUs on one chip! Cool is the word! B^>

But right now, even on the slow single CPU that I am hoping to replace, page sizes are ~30KB and page generation time is <1s, with the user seeing some output within about 100ms.

Rgds

Damon

[edited by: DamonHD at 10:13 pm (utc) on May 26, 2006]

zCat

10:06 pm on May 26, 2006 (gmt 0)

10+ Year Member



josetann wrote:

If you're on your own server now, I'd check the load at various times during the day (preferably during high-peak hours). I want to keep mine below 0.5 (this is on a linux machine btw). That means an average request from the server will take half a second.

This is not correct: the load value does not represent a time value; it is an indicator of how much the system resources are being utilized in the respective time period. It's rather a hard value to explain; on a one CPU machine, theoretically a value of 1 indicated the machine is being utilised at 100% of its capacity (which from some points of view is an ideal situation because it means the machine is not wasting processor cycles). Depending on resource utilisation, on a typical web server higher values will not always mean that page delivery is (noticeably) slower; I've worked with a 4 CPU server which was still handling HTTP requests effortlessly with a load of 20 or so.

As a rule of thumb though, lower load values are better; load caused by high CPU activity is less problematic than load caused by high disk I/O (which is always the quickest way to kill a server).

Related Wikipedia article:
[en.wikipedia.org...]

zCat

10:12 pm on May 26, 2006 (gmt 0)

10+ Year Member



On a related note, for web serving, I'd put hardware priorities in this order: memory, disk speed, CPU speed. Unless you're doing advanced mathematical calculations on each web page request, a few hundered Mhz CPU speed either way won't make any appreciable difference; on the other hand any unneccessary disk I/O will slow down page output appreciably, so it's better to have as much memory as possible, and fast disks to mitigate the effects of any I/O.

josetann

6:51 am on May 27, 2006 (gmt 0)

10+ Year Member



You're correct, load isn't measured in seconds, my bad. It is a bit of an inexact measurement though, I've had a high load before (high for the server, like 3-5) and it was a bit sluggish but usable. Other times it can hit a bit over 1 or 2, and the server's virtually unusable. Nevertheless, it can be useful. I prefer to keep mine under 0.50, but of course it occassionally spikes (such as when awstats runs, or updatedb).

Regardless, the main point is that yes, the faster your site loads, the more pages a visitor will likely see, and the more likely they'll click on an ad. The question is, can you make it any faster? A ten page website with pure html and a couple hundred visits a day will do fine on an old P2 with a few dozen similar sites hosted on it. There's no need to start paying hundreds of dollars to get your own server in this instance.

Of course, if you're making a lot off of adsense, I would be tempted to move to your own server anyways. Find a reputable company, perhaps even colocate instead (when you colocate, you own the server and can have it built to spec). Besides a possible decrease in site loading time, you're in 90% control (your upstream provider still has some say, so don't go breaking any laws or spamming). With shared hosting, you're at the mercy of your webhost. Maybe their server will go down and they'll take a while to get it back online. Perhaps they'll fail to pay their provider and get shutdown. Maybe they'll start to overload their server. If you're making hundreds (or more) a day, it's worth it to pay a bit extra to ensure your site won't go down. How much money would you lose if your site was down for a week? Hint, it's more than just seven days worth of adsense pay (if your site is down a week, you may lose some repeat visitors, google ranking, etc.).

Sorry, I can ramble sometimes. Without knowing specifics, I can really go on some tangents.

MisterMarkup

10:31 am on May 27, 2006 (gmt 0)

10+ Year Member



a super-fast feature-poor webserver just for plain html, images, downloads

If you're on linux, the fastest way to serve static files is to use the kernel HTTP accellerator. It monitors port 80 for GET requests for files, then fetches them directly from the filesystem without ever entering userspace. This saves a bunch of context switching and code runtime.

Let's see if I can find a HOWTO... there's this page [linux-sxs.org] but it's pretty terse. There doesn't seem to be a lot out there yet, but an experienced Linux sysadmin should be able to follow it.

Anything that's not a static file can be handled by a regular userspace server like Apache.

If you don't think your hosting service is already using khttpd, point it out to them, it will give them a significant performance boost for no more than the time it takes to configure it.

irock

11:26 am on May 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Hobbs,

Well, millions page views a month isn't a whole lot, but it all depends on the complexity of the pages. In most circumstances, caching will help a lot if your site isn't extremely dynamic.

Hobbs

11:34 am on May 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hey irock,
If 'millions page views a month isn't a whole lot', I should be targeting Billions, will be saving up to buy Yahoo!
You are right about caching, and I keep my served pages 80% static html, css and code optimization is on top of a very long list.
cheers

irock

12:43 pm on May 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Hobbs,

Heh... I would be happy if I can save to buy my own apartment.

All these posts before mine have pretty much covered all about the caching aspsect. However, my programs require dynamic image processing and generate relatively complex results.

I have a Pentium D 2.8Ghz 2GB RAM 2x80GB RAID1, and I survived both digg & slashdot at the same time.

zCat, how much RAM would you consider sufficient? 4GB? Just curious if I should upgrade mine.

DamonHD

7:54 pm on May 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

None of my Web servers has more than 2GB, though I'm tempted to go to 4GB for my new Sun box...

Rgds

Damon

zCat

11:10 pm on May 27, 2006 (gmt 0)

10+ Year Member



zCat, how much RAM would you consider sufficient? 4GB?

Erm, depends... More is always better, but exactly how much you need depends on what services are active on your server and how much traffic you get. If your server is using more than a few Mb of swap space regularly, you need more memory. Watch "top" for a while and keep an eye on the various memory values. Ignore the "free" value (in Linux at least); the "cached" value will give an idea of how much memory is still potentially available.

irock

3:00 am on May 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



zCat... i have this.

Swap: 2048276k total, 8796k used, 2039480k free, 916124k cached

What do you think?

zCat

1:41 pm on May 28, 2006 (gmt 0)

10+ Year Member



Sounds good: your swap is hardly being used, and half your RAM is used as cache, which (unless I'm mistaken, I learnt all this the hard way so sometimes I'm not sure of the details) means the OS is not actively using this memory for processes, but is proactively caching hard disk sectors it thinks it's likely to require soon (which is much better than having the memory lie completely unused).

gendude

8:13 pm on May 28, 2006 (gmt 0)

10+ Year Member



I would throw in that if you are using a CMS or blog-type of software (although the two are merging it seems) such as WordPress or Drupal you can enable the pages to be cache (WP requires a plugin depending on version, and I believe Drupal has this built in).

What this means, is that instead of making calls to the server/database, the pages are cached as they are called by users for a certain amount of time - the first time in that time period that they are called by a user, the database is queried, but after that the page is cached and treated like a static html.

Can really cut down on CPU/memory calls.

kartiksh

5:04 am on May 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What I wrote is something nothing to do with load or server speed as the dedicated one is having faster response time and hosting with few sites. It has to do with Google’s geo targeting algorithm. I now plan to shift back to VPS for this particular site – though I would seek all you experts’ opinion.