Welcome! Log In Create A New Profile

Advanced

Re: memcached problems...

September 03, 2009 05:10AM
On Wed, Sep 02, 2009 at 05:56:04PM -0400, JG wrote:

> oh @#! forget it... my fault... i set the http port to 81 and was calling port 80 all the time in firefox. thats some way to spent time, too

I predict that you will see more CPU load and probably more IO load.
The reasons:

1) When nginx gets request from memcached, then 3 copy operations are done:
from memcached to kernel, from kernel to nginx, from nginx to kernel.
When file is sent from VM cache: this is a zero copy operation: sendfile()
manages network card to get data from memory using DMA.

2) When a file is not in memcached, then nginx passes the request to
a backend. The backend reads the file and stores it in memcached
with 3 copy operations. If your current IO load is big, this
means that physical memory is not enough to store hot content.
memcached will decrease more memory available for VM cache resulting
in more IO load.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

memcached problems...

Juergen Gotteswinter August 31, 2009 02:05PM

Re: memcached problems...

Igor Sysoev August 31, 2009 03:49PM

Re: memcached problems...

JG August 31, 2009 05:34PM

Re: memcached problems...

Istv August 31, 2009 05:41PM

Re: memcached problems...

JG August 31, 2009 06:15PM

Re: memcached problems...

JG September 02, 2009 05:37PM

Re: memcached problems...

JG September 02, 2009 05:56PM

Re: memcached problems...

JG September 02, 2009 05:58PM

Re: memcached problems...

Igor Sysoev September 03, 2009 05:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready