Blame doc/memcached.1

Packit Service 584ef9
.TH MEMCACHED 1 "April 11, 2005"
Packit Service 584ef9
.SH NAME
Packit Service 584ef9
memcached \- high-performance memory object caching system
Packit Service 584ef9
.SH SYNOPSIS
Packit Service 584ef9
.B memcached
Packit Service 584ef9
.RI [ options ]
Packit Service 584ef9
.br
Packit Service 584ef9
.SH DESCRIPTION
Packit Service 584ef9
This manual page documents briefly the
Packit Service 584ef9
.B memcached
Packit Service 584ef9
memory object caching daemon.
Packit Service 584ef9
.PP
Packit Service 584ef9
.B memcached
Packit Service 584ef9
is a flexible memory object caching daemon designed to alleviate database load
Packit Service 584ef9
in dynamic web applications by storing objects in memory.  It's based on
Packit Service 584ef9
libevent to scale to any size needed, and is specifically optimized to avoid
Packit Service 584ef9
swapping and always use non-blocking I/O.
Packit Service 584ef9
.br
Packit Service 584ef9
.SH OPTIONS
Packit Service 584ef9
These programs follow the usual GNU command line syntax. A summary of options
Packit Service 584ef9
is included below.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-s, --unix-socket=<file>
Packit Service 584ef9
Unix socket path to listen on (disables network support).
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-A, --enable-shutdown
Packit Service 584ef9
Enable ascii "shutdown" command.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-a, --unix-mask=<perms>
Packit Service 584ef9
Permissions (in octal format) for Unix socket created with \-s option.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-l, --listen=<addr>
Packit Service 584ef9
Listen on <addr>; default to INADDR_ANY. <addr> may be specified as host:port.
Packit Service 584ef9
If you don't specify a port number, the value you specified with -p or -U is
Packit Service 584ef9
used. You may specify multiple addresses separated by comma or by using -l
Packit Service 584ef9
multiple times. This is an important option to consider as there is no other
Packit Service 584ef9
way to secure the installation. Binding to an internal or firewalled network
Packit Service 584ef9
interface is suggested.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-d, --daemon
Packit Service 584ef9
Run memcached as a daemon.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-u, --user=<username>
Packit Service 584ef9
Assume the identity of <username> (only when run as root).
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-m, --memory-limit=<num>
Packit Service 584ef9
Use <num> MB memory max to use for object storage; the default is 64 megabytes.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-c, --conn-limit=<num>
Packit Service 584ef9
Use <num> max simultaneous connections; the default is 1024.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-R, --max-reqs-per-event=<num>
Packit Service 584ef9
This option seeks to prevent client starvation by setting a limit to the
Packit Service 584ef9
number of sequential requests the server will process from an individual
Packit Service 584ef9
client connection. Once a connection has exceeded this value, the server will
Packit Service 584ef9
attempt to process I/O on other connections before handling any further
Packit Service 584ef9
request from this connection. The default value for this option is 20.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-k, --lock-memory
Packit Service 584ef9
Lock down all paged memory. This is a somewhat dangerous option with large
Packit Service 584ef9
caches, so consult the README and memcached homepage for configuration
Packit Service 584ef9
suggestions.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-p, --port=<num>
Packit Service 584ef9
Listen on TCP port <num>, the default is port 11211. 0 means off.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-U, --udp-port=<num>
Packit Service 584ef9
Listen on UDP port <num>, the default is port 0, which is off.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-M, --disable-evictions
Packit Service 584ef9
Disable automatic removal of items from the cache when out of memory.
Packit Service 584ef9
Additions will not be possible until adequate space is freed up.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-r, --enable-coredumps
Packit Service 584ef9
Raise the core file size limit to the maximum allowable.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-f, --slab-growth-factor=<factor>
Packit Service 584ef9
Use <factor> as the multiplier for computing the sizes of memory chunks that
Packit Service 584ef9
items are stored in. A lower value may result in less wasted memory depending
Packit Service 584ef9
on the total amount of memory available and the distribution of item sizes.
Packit Service 584ef9
The default is 1.25.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-n, --slab-min-size=<size>
Packit Service 584ef9
Allocate a minimum of <size> bytes for the item key, value, and flags. The
Packit Service 584ef9
default is 48. If you have a lot of small keys and values, you can get a
Packit Service 584ef9
significant memory efficiency gain with a lower value. If you use a high
Packit Service 584ef9
chunk growth factor (\-f option), on the other hand, you may want to increase
Packit Service 584ef9
the size to allow a bigger percentage of your items to fit in the most densely
Packit Service 584ef9
packed (smallest) chunks.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-C, --disable-cas
Packit Service 584ef9
Disable the use of CAS (and reduce the per-item size by 8 bytes).
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-h, --help
Packit Service 584ef9
Show the version of memcached and a summary of options.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-v, --verbose
Packit Service 584ef9
Be verbose during the event loop; print out errors and warnings.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-vv
Packit Service 584ef9
Be even more verbose; same as \-v but also print client commands and
Packit Service 584ef9
responses.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-vvv
Packit Service 584ef9
Be extremely verbose; same of the above and also print internal state transitions.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-i, --license
Packit Service 584ef9
Print memcached and libevent licenses.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-P, --pidfile=<filename>
Packit Service 584ef9
Print pidfile to <filename>, only used under \-d option.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-t, --threads=<threads>
Packit Service 584ef9
Number of threads to use to process incoming requests. This option is only
Packit Service 584ef9
meaningful if memcached was compiled with thread support enabled. It is
Packit Service 584ef9
typically not useful to set this higher than the number of CPU cores on the
Packit Service 584ef9
memcached server. Setting a high number (64 or more) of worker
Packit Service 584ef9
threads is not recommended. The default is 4.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-D <char>
Packit Service 584ef9
Use <char> as the delimiter between key prefixes and IDs. This is used for
Packit Service 584ef9
per-prefix stats reporting. The default is ":" (colon). If this option is
Packit Service 584ef9
specified, stats collection is turned on automatically; if not, then it may
Packit Service 584ef9
be turned on by sending the "stats detail on" command to the server.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-L, --enable-largepages
Packit Service 584ef9
Try to use large memory pages (if available). Increasing the memory page size
Packit Service 584ef9
could reduce the number of TLB misses and improve the performance. In order to
Packit Service 584ef9
get large pages from the OS, memcached will allocate the total item-cache in
Packit Service 584ef9
one large chunk. Only available if supported on your OS.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-b, --listen-backlog=<num>
Packit Service 584ef9
Set the backlog queue limit to <num> connections. The default is 1024.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-B, --protocol=<proto>
Packit Service 584ef9
Specify the binding protocol to use.  By default, the server will
Packit Service 584ef9
autonegotiate client connections.  By using this option, you can
Packit Service 584ef9
specify the protocol clients must speak.  Possible options are "auto"
Packit Service 584ef9
(the default, autonegotiation behavior), "ascii" and "binary".
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-I, --max-item-size=<size>
Packit Service 584ef9
Override the default size of each slab page. The default size is 1mb. Default
Packit Service 584ef9
value for this parameter is 1m, minimum is 1k, max is 1G (1024 * 1024 * 1024).
Packit Service 584ef9
Adjusting this value changes the item size limit.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-S, --enable-sasl
Packit Service 584ef9
Turn on SASL authentication. This option is only meaningful if memcached was
Packit Service 584ef9
compiled with SASL support enabled.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-F, --disable-flush-all
Packit Service 584ef9
Disables the "flush_all" command. The cmd_flush counter will increment, but
Packit Service 584ef9
clients will receive an error message and the flush will not occur.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-X, --disable-dumping
Packit Service 584ef9
Disables the "stats cachedump" and "lru_crawler metadump" commands.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-o, --extended=<options>
Packit Service 584ef9
Comma separated list of extended or experimental options. See \-h or wiki for
Packit Service 584ef9
up to date list.
Packit Service 584ef9
.TP
Packit Service 584ef9
.B \-V, --version
Packit Service 584ef9
print version and exit
Packit Service 584ef9
.br
Packit Service 584ef9
.SH LICENSE
Packit Service 584ef9
The memcached daemon is copyright Danga Interactive and is distributed under
Packit Service 584ef9
the BSD license. Note that daemon clients are licensed separately.
Packit Service 584ef9
.br
Packit Service 584ef9
.SH SEE ALSO
Packit Service 584ef9
The README file that comes with memcached
Packit Service 584ef9
.br
Packit Service 584ef9
.B https://www.memcached.org
Packit Service 584ef9
.SH AUTHOR
Packit Service 584ef9
The memcached daemon was written by Anatoly Vorobey
Packit Service 584ef9
.B <mellon@pobox.com>
Packit Service 584ef9
and Brad Fitzpatrick
Packit Service 584ef9
.B <brad@danga.com>
Packit Service 584ef9
and the rest of the crew of Danga Interactive
Packit Service 584ef9
.B https://www.danga.com
Packit Service 584ef9
.br