Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Enable mod_cache
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  22 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
yaoxing zhang  
View profile  
 More options Nov 3, 10:02 pm
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Wed, 04 Nov 2009 11:02:30 +0800
Local: Tues, Nov 3 2009 10:02 pm
Subject: Enable mod_cache
Hi,
Just want to know, do I need to add -enable parameter when running
configure?
This  is the final enabled list I get, seems there's no mod_cache. I
don't know if it's enabled or not.
enabled:
   mod_access
   mod_accesslog
   mod_alias
   mod_auth
   mod_cgi
   mod_compress
   mod_dirlisting
   mod_evhost
   mod_expire
   mod_extforward
   mod_fastcgi
   mod_flv_streaming
   mod_indexfiles
   mod_mysql_vhost
   mod_proxy
   mod_redirect
   mod_rewrite
   mod_rrdtool
   mod_scgi
   mod_secdownload
   mod_setenv
   mod_simple_vhost
   mod_ssi
   mod_staticfile
   mod_status
   mod_trigger_b4_dl
   mod_userdir
   mod_usertrack
   mod_webdav
disabled:
   mod_magnet

--
Regards,
YX


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 3, 10:51 pm
From: shellcode <shellc...@gmail.com>
Date: Wed, 4 Nov 2009 11:51:55 +0800
Local: Tues, Nov 3 2009 10:51 pm
Subject: Re: Enable mod_cache

mod_cache isn't in official lighttpd distribution, you need to patched
lighttpd source from http://code.google.com/p/lighttpd-improved/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Yu  
View profile  
 More options Nov 3, 11:41 pm
From: Kevin Yu <flyin...@gmail.com>
Date: Wed, 4 Nov 2009 12:41:46 +0800
Local: Tues, Nov 3 2009 11:41 pm
Subject: Re: Enable mod_cache
or
www.linux.com.cn/modcache

Kevin Yu
Mail: flyin...@gmail.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 4, 1:34 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Wed, 04 Nov 2009 14:34:27 +0800
Local: Wed, Nov 4 2009 1:34 am
Subject: Re: Enable mod_cache
yeah, that's the version I'm using. It seems I still can't get memory
cache enabled. I enabled debug, and my configuration now looks like below
cache.max-memory-size = 256
cache.debug = "enable"
cache.refresh-pattern = ("^[\s\S]+$" => "21600 use-memory")

And nothing is in /var/log/lighttpd/error.log
I asked this question like 2 weeks ago if you still remember. I also
read your blog about what situations can't mod_cache work. But my server
is just a static image server with about 2000000 small images (15kb in
average). The HTTP headers are correctly set, and no back end server
running.

I ran an http_load stress testing with 100 sessions,180 seconds, and
access for like 3000 sample image, which takes at least 45M memory in
total. However, in htop, lighttpd takes always about 60M memory, no
change at all. I think memory cache is not working properly. Any ideas?

Regards,
YX

On 2009年11月04日 11:51, shellcode wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 4, 2:39 am
From: shellcode <shellc...@gmail.com>
Date: Wed, 4 Nov 2009 15:39:01 +0800
Local: Wed, Nov 4 2009 2:39 am
Subject: Re: Enable mod_cache

how about change

cache.refresh-pattern = ("^[\s\S]+$" => "21600 use-memory")

to

cache.refresh-pattern = ("." => "21600 use-memory")


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 4, 3:05 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Wed, 04 Nov 2009 16:05:07 +0800
Local: Wed, Nov 4 2009 3:05 am
Subject: Re: Enable mod_cache
Still the same.
I also tried "\.(?i)(jpg|jpeg|gif|png)$", doesn't work either.

Regards,
YX

On 2009年11月04日 15:39, shellcode wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 4, 3:27 am
From: shellcode <shellc...@gmail.com>
Date: Wed, 4 Nov 2009 16:27:38 +0800
Local: Wed, Nov 4 2009 3:27 am
Subject: Re: Enable mod_cache

please post http response header of  using curl -o /dev/null -v
http://xxx/xxxx


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 4, 3:27 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Wed, 04 Nov 2009 16:27:00 +0800
Subject: Re: Enable mod_cache
Is it possible that some modules maybe conflicting with mod_cache?
I have the following modules enabled:
mod_cache
mod_rewrite
mod_access
mod_expire
mod_accesslog
and configured with
--with-fam
--with-ssl
Regards,
YX

On 2009年11月04日 15:39, shellcode wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 4, 3:30 am
From: shellcode <shellc...@gmail.com>
Date: Wed, 4 Nov 2009 16:30:01 +0800
Local: Wed, Nov 4 2009 3:30 am
Subject: Re: Enable mod_cache

no mod_proxy?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 4, 3:31 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Wed, 04 Nov 2009 16:31:33 +0800
Local: Wed, Nov 4 2009 3:31 am
Subject: Re: Enable mod_cache
no mod_proxy. it's a image server that only serves static images.
And here is the curl result:
 > GET /ProductImages/sku_0005_1.jpg HTTP/1.1
 > User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5
OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
 > Host: 75.126.135.148
 > Accept: */*
 >
< HTTP/1.1 200 OK
< Expires: Fri, 04 Dec 2009 08:30:21 GMT
< Cache-Control: max-age=2592000
< Content-Type: image/jpeg
< Accept-Ranges: bytes
< ETag: "3213402665"
< Last-Modified: Sun, 18 Oct 2009 12:05:40 GMT
< Content-Length: 11345
< Date: Wed, 04 Nov 2009 08:30:21 GMT
< Server: lighttpd/1.4.23-devel-42M
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11345 100 11345 0 0 6307 0 0:00:01 0:00:01 --:--:-- 7108Connection
#0 to host 75.126.135.148 left intact

Regards,
YX

On 2009年11月04日 16:30, shellcode wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 4, 3:52 am
From: shellcode <shellc...@gmail.com>
Date: Wed, 4 Nov 2009 16:52:28 +0800
Local: Wed, Nov 4 2009 3:52 am
Subject: Re: Enable mod_cache

for local static file caching, you need mod_mem_cache, not mod_cache

mod_mem_cache doc is
http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModMemCache


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 4, 5:32 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Wed, 04 Nov 2009 18:32:04 +0800
Local: Wed, Nov 4 2009 5:32 am
Subject: Re: Enable mod_cache
Thank you. Does it mean, mod_cache must work with a back end proxy?
Regards,
YX

On 2009年11月04日 16:52, shellcode wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 4, 5:51 am
From: shellcode <shellc...@gmail.com>
Date: Wed, 4 Nov 2009 18:51:47 +0800
Local: Wed, Nov 4 2009 5:51 am
Subject: Re: Enable mod_cache

mod_cache is to cache remote files to local disk/memory, so mod_proxy is
needed for mod_cache.
mod_mem_cache is to cache local files into memory


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 4, 6:22 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Wed, 04 Nov 2009 19:22:27 +0800
Local: Wed, Nov 4 2009 6:22 am
Subject: Re: Enable mod_cache
I see. Thanks for explainning.
Regards,
YX

On 2009年11月04日 18:51, shellcode wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
任晓磊  
View profile  
 More options Nov 4, 8:16 pm
From: 任晓磊 <julycl...@gmail.com>
Date: Thu, 5 Nov 2009 09:16:43 +0800
Local: Wed, Nov 4 2009 8:16 pm
Subject: Re: Enable mod_cache
I think operating system should cache frequently accessed files into
memory, lighty does not need to control it. Am I right?

2009/11/4 shellcode <shellc...@gmail.com>:

> mod_cache is to cache remote files to local disk/memory, so mod_proxy is
> needed for mod_cache.
> mod_mem_cache is to cache local files into memory

--
Ren Xiaolei

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Yu  
View profile  
 More options Nov 4, 9:28 pm
From: Kevin Yu <flyin...@gmail.com>
Date: Thu, 5 Nov 2009 10:28:15 +0800
Local: Wed, Nov 4 2009 9:28 pm
Subject: Re: Enable mod_cache
mod_cache now natively support cache files into memory, do not need
load mod_mem_cache any more.

Kevin Yu
Mail: flyin...@gmail.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
任晓磊  
View profile  
 More options Nov 4, 9:30 pm
From: 任晓磊 <julycl...@gmail.com>
Date: Thu, 5 Nov 2009 10:30:20 +0800
Local: Wed, Nov 4 2009 9:30 pm
Subject: Re: Enable mod_cache
your answer seems not to fit my question.

2009/11/5 Kevin Yu <flyin...@gmail.com>:

--
Ren Xiaolei

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 4, 9:38 pm
From: shellcode <shellc...@gmail.com>
Date: Thu, 5 Nov 2009 10:38:23 +0800
Local: Wed, Nov 4 2009 9:38 pm
Subject: Re: Enable mod_cache

OS try to cache every files recently accessed into memory, then OS will drop
some cached files at any time.
mod_mem_cache/mod_cache caches files that are useful for web service only.

In summary, sometimes OS cache isn't good enough for faster web service and
application cache works good enough


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
任晓磊  
View profile  
 More options Nov 4, 10:42 pm
From: 任晓磊 <julycl...@gmail.com>
Date: Thu, 5 Nov 2009 11:42:30 +0800
Local: Wed, Nov 4 2009 10:42 pm
Subject: Re: Enable mod_cache
Should application cache open files with NO CACHE flags to inform OS
not to cache it?
Or else, there would be two copies in memory, one is app's ,the other is OS's.

2009/11/5 shellcode <shellc...@gmail.com>:

> OS try to cache every files recently accessed into memory, then OS will drop
> some cached files at any time.
> mod_mem_cache/mod_cache caches files that are useful for web service only.
> In summary, sometimes OS cache isn't good

--
Ren Xiaolei

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Nov 4, 10:58 pm
From: shellcode <shellc...@gmail.com>
Date: Thu, 5 Nov 2009 11:58:43 +0800
Local: Wed, Nov 4 2009 10:58 pm
Subject: Re: Enable mod_cache

when one file is cached in application, then there has no disk read access
to it for long time, so OS will remove it from cache soon for caching other
files.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 5, 12:15 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Thu, 05 Nov 2009 13:15:31 +0800
Local: Thurs, Nov 5 2009 12:15 am
Subject: Re: Enable mod_cache
Hi again,
I tried mod_mem_cache, it works fine. But I also noticed that expires
header is removed. I'm not sure yet whether it's because of lighttpd
upgrading or mod_mem_cache patch. is there any known issue of mod_mem_cache?

Regards,
YX


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yaoxing zhang  
View profile  
 More options Nov 5, 12:25 am
From: yaoxing zhang <yaoxing.zh...@gmail.com>
Date: Thu, 05 Nov 2009 13:25:51 +0800
Local: Thurs, Nov 5 2009 12:25 am
Subject: Re: Enable mod_cache
alright, find the solution. simply move mod_mem_cache after mod_expire
would resolve the problem.
thank you for your patient help.

Regards,
YX

On 2009年11月05日 13:15, yaoxing zhang wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google