Last modified: 2013-09-30 08:18:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54378, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52378 - [OPS] beta memcached instances are limited to 89GB (too much)
[OPS] beta memcached instances are limited to 89GB (too much)
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Antoine "hashar" Musso (WMF)
: ops
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-01 09:30 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-09-30 08:18 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
ganglia graph for memc0 showing 1 month of memcached memory usage (21.43 KB, image/png)
2013-08-30 09:22 UTC, Antoine "hashar" Musso (WMF)
Details
stats output for memc0 (1.18 KB, text/plain)
2013-08-30 09:42 UTC, Antoine "hashar" Musso (WMF)
Details

Description Antoine "hashar" Musso (WMF) 2013-08-01 09:30:45 UTC
deployment-memc0 and deployment-memc1 have 16GB of memory. They are being applied the role::memcached class which boot a single memcached instance having 90MB of memory.  We end up with only 180MB of memcache space.


ps -u nobody f
  PID TTY      STAT   TIME COMMAND
  995 ?        SLl    0:08 /usr/bin/memcached -m 89088 -p 11211 -u nobody -l 0.0.0.0 -c 25000 -k -n 5 -f 1.05 -D : -o slab_reassign
Comment 1 Antoine "hashar" Musso (WMF) 2013-08-30 09:22:15 UTC
Created attachment 13199 [details]
ganglia graph for memc0 showing 1 month of memcached memory usage

Apparently memcached grows up by itself as needed:

From top:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1058 nobody    20   0 1397m 1.2g 2424 S    0  7.4  48:38.38 memcached


Though according to the ganglia graph, it is limited at 1GB of memory.
Comment 2 Antoine "hashar" Musso (WMF) 2013-08-30 09:42:40 UTC
Created attachment 13200 [details]
stats output for memc0

Maximum cache size:
STAT limit_maxbytes 93415538688  ~ 93G

Currently used cache:
STAT bytes 1019756272  ~ 1G

Apparently it is not memory limited.
STAT evictions 0

Stats documentation is  in the protocol definition: https://github.com/memcached/memcached/blob/master/doc/protocol.txt


So apparently memcached memory usages grows up and maybe we dont need more memory ?
Comment 3 Antoine "hashar" Musso (WMF) 2013-08-30 09:53:03 UTC
So the real issue is that memcached is passed -m 89088, which would let the instances allocate roughly 89GB of memory when they only have 16GB.  Should limit to 15GB.
Comment 4 Gerrit Notification Bot 2013-08-30 11:40:59 UTC
Change 81905 had a related patch set uploaded by Hashar:
tweak memcached limit on beta (89GB -> 15GB)

https://gerrit.wikimedia.org/r/81905
Comment 5 Gerrit Notification Bot 2013-09-30 06:26:52 UTC
Change 81905 merged by Faidon Liambotis:
tweak memcached limit on beta (89GB -> 15GB)

https://gerrit.wikimedia.org/r/81905
Comment 6 Antoine "hashar" Musso (WMF) 2013-09-30 08:18:04 UTC
I have restarted memcached on deployment-memc{0,1}

ps shows:
 /usr/bin/memcached -m 15000 ..

Fixed!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links