On 21. juli 2011, at 19.16, dormando wrote: >> Is it normal to have a 16 percent virtual memory overhead in memcached >> on x86_64 linux? memcached STAT bytes is reporting 3219 megabytes of >> data, but virtual memory is 16 percent higher at 3834. Resident memory >> is 14 percent higher at 3763 megabytes. >> >> Is there a way to tune linux/memcached to get memcached to consume >> less virtual memory? >> > > Are you using some bizarre VM system where virtual memory actually > matters? I can start up apps with terabytes of VM "allocated" just fine. > > The overhead in RSS is normal. you lose some memory to buffers, pointers, > the hash table structure, etc.
Are you running out of virtual memory ;) Please note that you may also tune the slab classes if your object size doesn't match the default slabclasses causing a poor memory utilization... Trond