Changeset 85

Show
Ignore:
Timestamp:
08/08/03 23:48:35 (5 years ago)
Author:
bradfitz
Message:

add users page, and not about why shared memory sucks.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/website/index.bml

    r62 r85  
    3838<p>Regardless of what database you use (MS-SQL, Oracle, Postgres, MysQL-InnoDB, etc..), there's a lot of overhead in implementing <a href="http://www.wikipedia.org/wiki/ACID">ACID</a> properties in a RDBMS, especially when disks are involved, which means queries are going to block.  For databases that aren't ACID-compliant (like MySQL-MyISAM), that overhead doesn't exist, but reading threads block on the writing threads.</p> 
    3939<p><?memd?> never blocks.  See the "Is memcached fast?" question below.</p> 
     40 
     41<?h1 What about shared memory? h1?> 
     42 
     43<p>The first thing people generally do is cache things within their 
     44web processes.  But this means your cache is duplicated multiple 
     45times, once for each mod_perl/PHP/etc thread.  This is a waste of 
     46memory and you'll get low cache hit rates.  If you're using a 
     47multi-threaded language or a shared memory API (IPC::Shareable, etc), 
     48you can have a global cache for all threads, but it's per-machine.  It doesn't scale to multiple machines. 
     49Once you have 20 webservers, those 20 independent caches start to look 
     50just as silly as when you had 20 threads with their own caches on a 
     51single box.  (plus, shared memory is typically laden with limitations)</p> 
     52 
     53<p>The <?memd?> server and clients work together to implement one 
     54global cache across as many machines as you have.  In fact, it's 
     55recommended you run both web nodes (which are typically memory-lite 
     56and CPU-hungry) and memcached processes (which are memory-hungry and 
     57CPU-lite) on the same machines.  This way you'll save network 
     58ports.</p> 
    4059 
    4160<?h1 What about MySQL 4.x query caching? h1?> 
  • trunk/website/memcached.look

    r27 r85  
    1313<?link download.bml|Download link?> 
    1414<?link apis.bml|Client APIs link?> 
     15<?link users.bml|Users link?> 
    1516<?link http://lists.danga.com/mailman/listinfo/memcached|Mailing List link?> 
    1617</div> 
  • trunk/website/news.bml

    r79 r85  
    44 
    55<?h1 News h1?> 
     6 
     7<p><b>2003-08-08:</b> We now have <a href="apis.bml">Python support</a>.</p> 
    68 
    79<p><b>2003-07-29:</b> Version 1.1.8 <a href="download.bml">released</a>. 
     
    1113href="download.bml">released</a>.  Many great changes.</p> 
    1214 
    13 <p><b>2003-06-16:</b> PHP support now included.</p> 
     15<p><b>2003-06-16:</b> <a href="apis.bml">PHP support</a> now included.</p> 
    1416 
    1517<p><b>2003-06-15:</b> Autoconf support added in <a