Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-23-2013, 02:12 AM   #1
lakerslive
Confirmed User
 
Industry Role:
Join Date: Aug 2012
Posts: 929
Is Mem Caching crucial to sites with big traffic?

how important is it. Do u guys have it?
lakerslive is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:15 AM   #2
rock-reed
Confirmed User
 
Join Date: May 2005
Posts: 1,892
On a good dedi server, it is not important.


If you are with shared....you should use caching.
__________________
---
Ethnic niche? Black-Asian-Latina ?
Contact me and lets talk traffic.

rockreed@ that thing they call the google mail

When you E-mail Me, PLZZZZ make the Subject Title:

>>>>>> GFY!

So I do not lose you in Spam.
rock-reed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:19 AM   #3
MoreMagic
Confirmed User
 
MoreMagic's Avatar
 
Join Date: Feb 2006
Posts: 2,848
I suppose you don't have any real big traffic sites....

Quote:
Originally Posted by rock-reed View Post
On a good dedi server, it is not important.


If you are with shared....you should use caching.
MoreMagic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:30 AM   #4
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
depends on the apps used on the sites
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 04:53 AM   #5
Matt 26z
So Fucking Banned
 
Industry Role:
Join Date: Apr 2002
Location: ¤ª"˜¨๑۩۞۩๑¨˜"ª¤
Posts: 18,481
Shared hosting doesnt give you access to enough RAM to do it. If you are dedicated and hit the database a lot then it can speed things up since serving commonly accessed things from RAM is faster.
Matt 26z is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 05:29 AM   #6
doorag
Confirmed User
 
Industry Role:
Join Date: Oct 2012
Posts: 45
i would go with a vps before jumping into a dedicated server.
doorag is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 05:33 AM   #7
PeR930
Confirmed User
 
Industry Role:
Join Date: Dec 2012
Posts: 283
If you are on a single server use APC. If your site is on a network of servers then use memcached.
PeR930 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 09:54 AM   #8
RSD
Confirmed User
 
Industry Role:
Join Date: Sep 2005
Posts: 425
Better use tmpfs for caching!
RSD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 09:57 AM   #9
NewNick
Confirmed User
 
NewNick's Avatar
 
Join Date: Mar 2009
Posts: 7,041
Quote:
Originally Posted by lakerslive View Post
how important is it. Do u guys have it?
It is very important.

Anyone who says otherwise does not know what a high traffic site is.

__________________
"Americas Hitler" JD Vance.
“There isn’t really an upside to Trump.” Tucker Carlson.
“a convicted felon rapist is now your president” OneHungLow, gfy.com
NewNick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 10:15 AM   #10
sandman!
Icq: 14420613
 
sandman!'s Avatar
 
Industry Role:
Join Date: Mar 2001
Location: chicago
Posts: 15,432
depends on the scripts your using.
__________________
Need WebHosting ? Email me for some great deals [email protected]
sandman! is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 10:21 AM   #11
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by NewNick View Post
It is very important.

Anyone who says otherwise does not know what a high traffic site is.

Orly?
I have a site pushing 200mbs at peak daily and not a single memcached in site.
The site feeds from a central db server thatnserves other sites and pushes 20mbs over the internal net and not a single memcached in site.

As has been mentioned, it depends on the script...
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 12:59 PM   #12
PeR930
Confirmed User
 
Industry Role:
Join Date: Dec 2012
Posts: 283
Bandwidth does not matter lol.
PeR930 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 01:02 PM   #13
C.Carnato
Confirmed User
 
C.Carnato's Avatar
 
Industry Role:
Join Date: Dec 2012
Posts: 151
How big is big traffic?
C.Carnato is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 01:14 PM   #14
PeR930
Confirmed User
 
Industry Role:
Join Date: Dec 2012
Posts: 283
At what point memcached shows its usefullness depends on your script and server. Can you get away without it with a million pageviews per day? Depends but either way you can probably still benefit from memcached so why not use it when it's free? Another way to look at it is a slightly slower server with memcached may perform just as good as a more expensive server without.

Like I said before if you are on a single server APC is typically much better.
PeR930 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 01:48 PM   #15
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by ViPeR_930 View Post
Bandwidth does not matter lol.
You're right, which is why I'll shut you up with traffic in the form of apache accesses... can your server not running any caching average 200 accesses per second pushing 200mbs over an entire month without any problems?

--edit here just to clarify I run no caching daemon whatsoever ---

So STFU



Note, that was a snapshot I just made (time now for me 21:51) as you can tell from the relevant axes, so no photoshop or anything to hide
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 03-23-2013 at 01:55 PM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 01:53 PM   #16
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
and the bandwidth to follow on the same server...



Still need memcached?

How about the server load to show we don't need it?

__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 01:54 PM   #17
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
my bad, the bandwidth is only an average of 90mbs over a month. ooops.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:08 PM   #18
RSD
Confirmed User
 
Industry Role:
Join Date: Sep 2005
Posts: 425
It all depends!
RSD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:12 PM   #19
RSD
Confirmed User
 
Industry Role:
Join Date: Sep 2005
Posts: 425
First you should start optimizing your database keys with indexes. Then optize your database server config. For certain heavy queries you can create different tables or use some kind of caching. Memory tables in mysql can also be used as aome sort of caching.
RSD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:18 PM   #20
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
So let's recap what I was saying with my example...

over an entire month, an avg of 210 accesses/sec equals ~17 million daily hits, pushing ~90mbs or ~8.5Tb daily traffic with minimal server load without any memcached or anything like that ON A SINGLE SERVER.

Like RSD says:
Quote:
Originally Posted by RSD View Post
It all depends!
I run a tight ship with very slick code and well-prepared db queries (on highly optimised db indices). You may not.

So when NewNick says:

Quote:
Originally Posted by NewNick View Post
It is very important. Anyone who says otherwise does not know what a high traffic site is.
I say, you don't know what you are talking about.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:27 PM   #21
NewNick
Confirmed User
 
NewNick's Avatar
 
Join Date: Mar 2009
Posts: 7,041
Quote:
Originally Posted by borked View Post
So let's recap what I was saying with my example...

over an entire month, an avg of 210 accesses/sec equals ~17 million daily hits, pushing ~90mbs or ~8.5Tb daily traffic with minimal server load without any memcached or anything like that ON A SINGLE SERVER.

Like RSD says:


I run a tight ship with very slick code and well-prepared db queries (on highly optimised db indices). You may not.

So when NewNick says:



I say, you don't know what you are talking about.
Well arn't you a big cheese.

I suppose I don't know what I am talking about.

I do know that if we were down to 90mbits I would be hitting the panic button.

__________________
"Americas Hitler" JD Vance.
“There isn’t really an upside to Trump.” Tucker Carlson.
“a convicted felon rapist is now your president” OneHungLow, gfy.com
NewNick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 02:40 PM   #22
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
I am saying that it all depends on what script you are running. I gave raw data on a single server running no memcached and running the scripts quite happily.

If you are pushing more than a monthly 90mbs average on a single server with memcached, care to turn off memcached and post the munin logs here?

I'm not getting into any forum fight, which is why I talk with actions (ie graphs) so as to show I am not hiding or bullshitting. But those munin graphs I posted show quite clearly I could (if I could!!) push much much more than 90mbs on that site. But truth be told, I probably couldn't because the max is 200mbs, and as it only has a gbit card, I'd be stupid to let it run anything over than 6-700mbs max (~3x what it is now). But I'm happy knowing that the scripts and db can handle all that, as can the server, without any mem caching.

And no, I'm no big cheese - I simply make my money without mouthing off about it. If you know me, you know I only ever mouth off about technical points, this particular one being one of them.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 03-23-2013 at 02:42 PM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 03:51 PM   #23
iwiiiiiiiiii
Outside The Box Geek
 
Industry Role:
Join Date: Oct 2004
Location: MTL/Canada
Posts: 550
Memcache is useful when for each visitor you have to do many db calls and load many items in that page. If you just have few pics and videos, but not stats or anything else, it's not really necessary. In my opinion it's really to avoid overloading your db server.
__________________
The second time the dog bites you, it's not his fault.

Last edited by iwiiiiiiiiii; 03-23-2013 at 04:04 PM..
iwiiiiiiiiii is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 04:10 PM   #24
blazin
Confirmed User
 
Join Date: Aug 2002
Posts: 2,781
How much bandwidth your site is pushing isn't that relevant....

If your site is doing lots of CPU/DB intensive processing on each request, and those requests don't change a lot from visitor to visitor... then yes memcached can help.

And for those that mention APC as an alternative... it's not.. well not really... APC primary purpose is an Opcode Cache... in simple terms, it makes PHP run faster by doing away with the need to do a full compile of your code on every request. Some programmers will use it as general purpose cache also.
__________________
I don't endorse a god damn thing......
blazin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 05:20 PM   #25
PeR930
Confirmed User
 
Industry Role:
Join Date: Dec 2012
Posts: 283
Quote:
Originally Posted by borked View Post
You're right, which is why I'll shut you up with traffic in the form of apache accesses... can your server not running any caching average 200 accesses per second pushing 200mbs over an entire month without any problems?

--edit here just to clarify I run no caching daemon whatsoever ---

So STFU



Note, that was a snapshot I just made (time now for me 21:51) as you can tell from the relevant axes, so no photoshop or anything to hide
Butthurt much? Maybe you got me confused the other guy. I simply said data bandwidth is irrelevant to memcached, which you agreed with. I even agreed with you that it depends on the script. What more do you want? Obviously it also depends on the server hardware and COOL it looks like you have a beastly server. You can calm down now. Is there a reason why you seem so against memcached? Maybe it bullied you in junior high.
PeR930 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 05:56 PM   #26
livexxx
Confirmed User
 
livexxx's Avatar
 
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
Insall new relic, half the problem is with shit devs thinking they are better than dba's
__________________
http://www.webcamalerts.com for auto tweets for web cam operators
livexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 05:56 PM   #27
livexxx
Confirmed User
 
livexxx's Avatar
 
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
Quote:
Originally Posted by livexxx View Post
Insall new relic, half the problem is with shit devs thinking they are better than dba's
the other half of the problem are dev's who don't even know what a dba is, lol
__________________
http://www.webcamalerts.com for auto tweets for web cam operators
livexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 06:01 PM   #28
blazin
Confirmed User
 
Join Date: Aug 2002
Posts: 2,781
Quote:
Originally Posted by livexxx View Post
Insall new relic, half the problem is with shit devs thinking they are better than dba's
New Relic is awesome... but damn it's get's expensive.
__________________
I don't endorse a god damn thing......
blazin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 07:30 PM   #29
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,064
Quote:
Originally Posted by borked View Post
I am saying that it all depends on what script you are running. I gave raw data on a single server running no memcached and running the scripts quite happily.

If you are pushing more than a monthly 90mbs average on a single server with memcached, care to turn off memcached and post the munin logs here?

I'm not getting into any forum fight, which is why I talk with actions (ie graphs) so as to show I am not hiding or bullshitting. But those munin graphs I posted show quite clearly I could (if I could!!) push much much more than 90mbs on that site. But truth be told, I probably couldn't because the max is 200mbs, and as it only has a gbit card, I'd be stupid to let it run anything over than 6-700mbs max (~3x what it is now). But I'm happy knowing that the scripts and db can handle all that, as can the server, without any mem caching.

And no, I'm no big cheese - I simply make my money without mouthing off about it. If you know me, you know I only ever mouth off about technical points, this particular one being one of them.
That's all great, however a lot of people use scripts that are not as good and memory management - There are times when MemCache or APC is a good idea.

Another idea I have been playing with is pushing generated content to an NGinX Proxy from an APache server and caching it - Amazing results with WP.
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 08:18 PM   #30
livexxx
Confirmed User
 
livexxx's Avatar
 
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
Quote:
Originally Posted by blazin View Post
New Relic is awesome... but damn it's get's expensive.
damn fucking aggresive sales team, but we beat them down to $50 a server with some big main chunk payment. well worth it IMHO and all the servers get it and from now on in as well

not sure what they have as sales incentives, but just stand your ground and they cave instantly and we got 5 t-shirts and 3 helicopters too, LOL
__________________
http://www.webcamalerts.com for auto tweets for web cam operators
livexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 11:19 PM   #31
RSD
Confirmed User
 
Industry Role:
Join Date: Sep 2005
Posts: 425
Optimising your own code will suffice most of the time! Memcache can come in handy for static parts of your website. Memory reads are cheap, memory writes are troublesome.

Wordpress and magento are overkill for most of the websites, just build your own custom weblog or webshop.
RSD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2013, 11:42 PM   #32
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by ViPeR_930 View Post
You can calm down now. Is there a reason why you seem so against memcached? Maybe it bullied you in junior high.
Yes, I mistook your post as it came right after mine mentioning 200mbs etc -
I actually was making a point to counter Mr-Know-It-All-NewNick who seems to know that anyone with serious traffic knows that memcache is de rigeur, which my posts clearly demonstrate otherwise.

I've nothing against memcached, but I just think that it's kind of like painting over cracks... not really getting to the source of the problem.
As mentioned numerous times here, a well designed db and well designed queries are much more important. If your queries are using the indices, you are pulling from ram and not disk, which is what memcached does anyway. People may not control their code, but they do control their db... log slow queries to find rogue queries is the least one should be doing.

Anyway, at least my posts served to silence NewNick with his throw away "blah blah" statements, that do more harm than good to those that don't know better.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-24-2013, 11:32 AM   #33
ajrocks
Confirmed User
 
ajrocks's Avatar
 
Join Date: Nov 2004
Location: On Uranus
Posts: 4,526
If you are doing something like dating where you need to provide geo targeting on a creative mem cache will be your best friend. Really you are wasting a lot of load if you aren't using it. Anyone with a decent amount of traffic will get increases in performance and decreased in costs.
__________________
SEO Strategy - Digital Strategy - Cannabis Lead Generation

Skype aj.durden1
ajrocks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-24-2013, 02:28 PM   #34
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
In almost all cases, bad site performance stems from bad DB design and indexing.

In such cases, caching can be a great band-aid, but solving the core problems is always better in the long-run.

Usually, DB problems fall into a few areas:
  1. Lack of indexing
  2. Over-indexing
  3. Incorrect use of Subqueries (esp. MySQL struggles with these)
  4. Incorrect column types for the data's purpose

1) Many people just aren't experienced with indexing, or even if they are, don't use things like composite indexes when needed.

2) Conversations I've had with people regarding over-indexing are hilarious. They are truly clueless. Some people, simply index almost everything they can, to "cover their bases". This is NOT how indexes are meant to work. Another common error, is having overlapping indexes when not needed.

For example, say I have an index on (col1, col2, col3) and my application NEVER searches/orders by etc... on col2 or col3 by themselves - having individual indexes on actually hurts me more than it helps.

3) Almost every case of sub-queries is better off with the proper JOINs. Especially in MySQL. The cases you want sub-queries are if you are simply doing something light/quick/one-time, OR very advanced cases which probably deserve their own article

4) This one is pretty basic and a lot of people get it right, where if you know the expected data values for a column, use the "tightest" column type. For example, if you know you store country codes as 2 characters, use char(2) don't use default varchar(255).

Enum doesn't get used as often as it should. It's a great type many people shy away from as they don't like having to alter a DB table that's in production (understandable). However, as long as you are adding values and not changing the order of existing ones, the ALTER is near-instant (I've done it on multi-million record large tables, being hit intensively, in under 0.05 seconds). For me, the benefits of enum outweight the cons when used properly.

Lastly, a tip on people who index and search varchar fields, such as email_address.

Have an additional hash column and index and seek on that.

For a basic example, let's say your Admin area let's you seek customers out by email. You have email_address varchar(150). You could add email_address_md5 and make your query do:

WHERE unhex(md5(lower($email_being_searched)))

and the speed gains will be *quite* noticeable. You can also use more advanced hashes and multi-column hashes/algos, and flavor to taste
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.