Reserval of memory?

Nick ngaugler@ngworld.net
Sat, 31 Jan 2004 23:58:03 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C3E856.102E3100
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have two memcacheds setup to use 512MB, one has been running for about =
one month, the other for only a week.  But no matter how long they're =
running, they stats command never shows them using more than ~370MB of =
memory to store items.  Is this because memcached is reserving this =
memory? Or is this memory used for other purposes to handle the storage =
of these items.  I show the memcacheds using just about all 512MB in the =
operating system, but they never seem to get close to the =
limit_maxbytes. Each server has anywhere from 1.3 to 1.4million items =
currently stored in it, under curr_items.  Does that mean there's =
roughly 114 bytes to store each item in the daemon?


Nick

STAT pid 776
STAT uptime 170166
STAT time 1075610968
STAT version 1.1.9
STAT rusage_user 690:410000
STAT rusage_system 853:650000
STAT curr_items 1316421
STAT total_items 7998033
STAT bytes 369595318
STAT curr_connections 321
STAT total_connections 247576
STAT connection_structures 734
STAT cmd_get 31288079
STAT cmd_set 7994951
STAT get_hits 28654473
STAT get_misses 2633606
STAT bytes_read 1774989064
STAT bytes_written 9845509166
STAT limit_maxbytes 536870912
------=_NextPart_000_0007_01C3E856.102E3100
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have two memcacheds setup to use =
512MB, one has=20
been running for about&nbsp;one month, the other&nbsp;for only a =
week.&nbsp; But=20
no matter how long they're running, they stats command never shows them =
using=20
more than ~370MB of memory to store items.&nbsp; Is this because =
memcached is=20
reserving this memory? Or is this memory used for other purposes to =
handle the=20
storage of these items.&nbsp; I show the memcacheds using just about all =
512MB=20
in the operating system, but they never seem to get close to the =
limit_maxbytes.=20
Each server has anywhere from 1.3 to 1.4million items currently stored =
in it,=20
under curr_items.&nbsp; Does that mean there's roughly 114 bytes to =
store each=20
item in the daemon?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Nick</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>STAT pid 776<BR>STAT uptime =
170166<BR>STAT time=20
1075610968<BR>STAT version 1.1.9<BR>STAT rusage_user 690:410000<BR>STAT=20
rusage_system 853:650000<BR>STAT curr_items 1316421<BR>STAT total_items=20
7998033<BR>STAT bytes 369595318<BR>STAT curr_connections 321<BR>STAT=20
total_connections 247576<BR>STAT connection_structures 734<BR>STAT =
cmd_get=20
31288079<BR>STAT cmd_set 7994951<BR>STAT get_hits 28654473<BR>STAT =
get_misses=20
2633606<BR>STAT bytes_read 1774989064<BR>STAT bytes_written =
9845509166<BR>STAT=20
limit_maxbytes 536870912</FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C3E856.102E3100--