root/trunk/server/doc/memcached.1 @ 629

Revision 629, 3.9 kB (checked in by plindner, 2 years ago)

Patch from David Bremner <bremner@…> that implements a new option "-a"
which takes an octal permission mask (like chmod) sets the permissions
on the unix domain socket (specified by "-s").

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1.TH MEMCACHED 1 "April 11, 2005"
2.SH NAME
3memcached \- high-performance memory object caching system
4.SH SYNOPSIS
5.B memcached
6.RI [ options ]
7.br
8.SH DESCRIPTION
9This manual page documents briefly the
10.B memcached
11memory object caching daemon.
12.PP
13.B memcached
14is a flexible memory object caching daemon designed to alleviate database load
15in dynamic web applications by storing objects in memory.  It's based on
16libevent to scale to any size needed, and is specifically optimized to avoid
17swapping and always use non-blocking I/O.
18.br
19.SH OPTIONS
20These programs follow the usual GNU command line syntax. A summary of options
21is included below.
22.TP
23.B \-s <file>
24Unix socket path to listen on (disables network support).
25.TP
26.B \-a <perms>
27Permissions (in octal format) for Unix socket created with -s option.
28.TP
29.B \-l <ip_addr> 
30Listen on <ip_addr>; default to INDRR_ANY. This is an important option to
31consider as there is no other way to secure the installation. Binding to an
32internal or firewalled network interface is suggested.
33.TP
34.B \-d
35Run memcached as a daemon.
36.TP
37.B \-u <username>
38Assume the identity of <username> (only when run as root).
39.TP
40.B \-m <num>
41Use <num> MB memory max to use for object storage; the default is 64 megabytes.
42.TP
43.B \-c <num>
44Use <num> max simultaneous connections; the default is 1024.
45.TP
46.B \-k
47Lock down all paged memory. This is a somewhat dangerous option with large
48caches, so consult the README and memcached homepage for configuration
49suggestions.
50.TP
51.B \-p <num>
52Listen on TCP port <num>, the default is port 11211.
53.TP
54.B \-U <num>
55Listen on UDP port <num>, the default is 0, off.
56.TP
57.B \-M
58Disable automatic removal of items from the cache when out of memory.
59Additions will not be possible until adequate space is freed up.
60.TP
61.B \-r
62Raise the core file size limit to the maximum allowable.
63.TP
64.B \-b
65Run a managed instanced (mnemonic: buckets)\n".
66.TP
67.B \-f <factor>
68Use <factor> as the multiplier for computing the sizes of memory chunks that
69items are stored in. A lower value may result in less wasted memory depending
70on the total amount of memory available and the distribution of item sizes.
71The default is 1.25.
72.TP
73.B \-n <size>
74Allocate a minimum of <size> bytes for the item key, value, and flags. The
75default is 48. If you have a lot of small keys and values, you can get a
76significant memory efficiency gain with a lower value. If you use a high
77chunk growth factor (-f option), on the other hand, you may want to increase
78the size to allow a bigger percentage of your items to fit in the most densely
79packed (smallest) chunks.
80.TP
81.B \-h
82Show the version of memcached and a summary of options.
83.TP
84.B \-v
85Be verbose during the event loop; print out errors and warnings.
86.TP
87.B \-vv
88Be even more verbose; same as \-v but also print client commands and
89responses.
90.TP
91.B \-i
92Print memcached and libevent licenses.
93.TP
94.B \-P <filename>
95Print pidfile to <filename>, only used under -d option.
96.TP
97.B \-t <threads>
98Number of threads to use to process incoming requests. This option is only
99meaningful if memcached was compiled with thread support enabled. It is
100typically not useful to set this higher than the number of CPU cores on the
101memcached server. The default is 4.
102.TP
103.B \-D <char>
104Use <char> as the delimiter between key prefixes and IDs. This is used for
105per-prefix stats reporting. The default is ":" (colon). If this option is
106specified, stats collection is turned on automatically; if not, then it may
107be turned on by sending the "stats detail on" command to the server.
108.br
109.SH LICENSE
110The memcached daemon is copyright Danga Interactive and is distributed under
111the BSD license. Note that daemon clients are licensed separately.
112.br
113.SH SEE ALSO
114The README file that comes with memcached
115.br
116.B http://www.danga.com/memcached
117.SH AUTHOR
118The memcached daemon was written by Anatoly Vorobey
119.B <mellon@pobox.com>
120and Brad Fitzpatrick
121.B <brad@danga.com>
122and the rest of the crew of Danga Interactive
123.B http://www.danga.com
124.br
Note: See TracBrowser for help on using the browser.