Oracle 5.0 Reference Manual page 1361

Table of Contents

Advertisement

supports the following options:
memcached
-u user
If you start
memcached
shell> memcached -u memcache
-m memory
Set the amount of memory allocated to
To increase the amount of memory allocated for the cache, use the
of RAM to be allocated (in megabytes). The more RAM you allocate, the more data you can store
and therefore the more effective your cache is.
Warning
Do not specify a memory allocation larger than your available RAM. If you
specify too large a value, then some RAM allocated for
swap space, and not physical RAM. This may lead to delays when storing
and retrieving values, because data is swapped to disk, instead of storing the
data directly in RAM.
You can use the output of the
shown in
shell> vmstat
kthr
r b w
0 0 0 5170504 3450392 2
For example, to allocate 3GB of RAM:
shell> memcached -m 3072
On 32-bit x86 systems where you are using PAE to access memory above the 4GB limit, you cannot
allocate RAM beyond the maximum process size. You can get around this by running multiple
instances of memcached, each listening on a different port:
shell> memcached -m 1024 -p11211
shell> memcached -m 1024 -p11212
shell> memcached -m 1024 -p11213
Note
On all systems, particularly 32-bit, ensure that you leave enough room for
both
if you have a dedicated
memory size above 3500MB. Failure to do this may cause either a crash or
severe performance issues.
-l interface
Specify a network interface/address to listen for connections. The default is to listen on all available
address (INADDR_ANY).
shell> memcached -l 192.168.0.110
Support for IPv6 address support was added in
-p port
Specify the TCP port to use for connections. Default is 18080.
Using
memcached
as root, use the
option to specify the user for executing memcached:
-u
memcached
column:
free
memory
swap
free
re
mf pi po fr de sr s1 s2 -- --
7
application in addition to the memory setting. For example,
memcached
memcached
1341
for object storage. Default is 64MB.
option to specify the amount
-m
command to get the free memory, as
vmstat
page
disk
2
0
0
0
4
0
0
host with 4GB of RAM, do not set the
1.2.5.
memcached
uses
memcached
faults
cpu
in
sy
cs us sy id
0
0
296
54
199
0
0 100

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents