5 messages in ru.sysoev.nginxRe: Memcached
FromSent OnAttachments
Jason BowermanDec 21, 2006 4:56 am 
Igor SysoevDec 21, 2006 5:21 am 
Jason BDec 22, 2006 7:16 pm 
Igor SysoevDec 22, 2006 11:52 pm 
Jason BDec 27, 2006 6:05 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: MemcachedActions...
From:Jason B (jasj@public.gmane.org)
Date:Dec 27, 2006 6:05:32 pm
List:ru.sysoev.nginx

On 23/12/2006, at 6:52 PM, Igor Sysoev wrote:

On Sat, 23 Dec 2006, Jason B wrote:

On 22/12/2006, at 12:21 AM, Igor Sysoev wrote:

Thanks for the reply Igor

Is it possible to ask Nginx to look in Memcached, but if not found to look on the local filesystem before passing to the backend?

That would make things more efficient?

Yes, it's possible, but it would not be more efficient.

Sending file from local file system is most efficient way if kernel VM have cached that file: then sendfile() will be zero-copy operation: you save memory and CPU.

Working with memcached or backend requires 1) copy operations to kernel by memcached or backend, 2) then copy operations from kernel by nginx, 2) then copy operations to kernel by nginx

If memcached or backend are on the same computer as nginx, then all these operations involve context switches between nginx and memcached or backend.

Ah, thanks Igor. Please pardon my ignorance :)

Loving Nginx more and more.

Jason