> 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.