A location or process for storing of transitory or temporary data in order to improve application or system performance.

learn more… | top users | synonyms (1)

56
votes
11answers
12k views

Why drop caches in Linux?

In our servers we have a habit of dropping caches at midnight. sync; echo 3 > /proc/sys/vm/drop_caches When I run the code it seems to free up lots of RAM, but do I really need to do that. ...
42
votes
3answers
31k views

Disable caching when serving static files with Nginx (for development)

We are using Nginx to serve static files on a development platform. As it is a development platform, we'd like to disable caching so that each change is propagated to the server. The configuration of ...
31
votes
5answers
39k views

Setting expires headers for static content served from nginx

I'm using nginx to server my static content, is there a way that I can set the expires headers for every file that meets a specific rule? For example can I set the expires header for all files that ...
31
votes
5answers
25k views

Which PHP (opcode) cache one should use and why?

I keep hearing about some PHP (opcode) caches like - APC, XCache, Memcache, eAccelerator, etc. But I couldn't ever figure out how to go about choosing one. Apart from performance benefit, which a ...
28
votes
17answers
26k views

Caching/preloading files on Linux into RAM

I have a rather old server that has 4GB of RAM and it is pretty much serving the same files all day, but it is doing so from the hard drive while 3GBs of RAM are "free". Anyone who has ever tried ...
17
votes
3answers
5k views

How effective is LSI CacheCade SSD storage tiering?

LSI offers their CacheCade storage tiering technology, which allows SSD devices to be used as read and write caches to augment traditional RAID arrays. Other vendors have adopted similar ...
15
votes
3answers
7k views

Is there a way to get Cache Hit/Miss ratios for block devices in Linux?

Is it possible to see in Linux how many read and write requests from user space end up causing cache hits and misses for block devices?
14
votes
1answer
6k views

Hardware RAID controller cache battery failure frequency/lifetime?

I'm in an environment that contains many Supermicro servers equipped with Adaptec and LSI MegaRAID hardware RAID controllers. These controllers contain battery-backed cache modules to help boost write ...
13
votes
6answers
8k views

SATA Disks that handle write caching properly?

It's pretty common to see advice to disable the write cache on individual disks used for databases because otherwise some disks will acknowledge writes that haven't yet made it to the disk surface. ...
13
votes
1answer
5k views

deleting linux cached ram [duplicate]

I have a webserver that has 8GB of ram and is running a pretty intensive php site (1 site) that does file manipulation, graphing, emailing, forums, you name it. The environment is far from static ...
13
votes
1answer
10k views

For L2ARC and ZIL: is it better to have one large SSD for both, or two smaller SSDs?

Main references ZFS L2ARC (Brendan Gregg) (2008-07-22) and ZFS and the Hybrid Storage Concept (Anatol Studler's Blog) (2008-11-11) include the following diagram: Question Should I interpret the ...
12
votes
2answers
11k views

Varnish Cache - default TTL?

I have discovered that I can set the TTL in Varnish as follows in my VCL file: sub vcl_fetch { # 1 minute set obj.ttl = 1m; } But what is the default setting (assuming the backend server is ...
12
votes
7answers
5k views

SQL Server - Force DB in memory?

We have a beefy Windows 2008 x64 server (4 x 4 core CPU, 32GB RAM) running SQL Server 2005 64-bit. We have a small (6GB) but very important database that is somewhat slow to access until the pages are ...
12
votes
3answers
6k views

How do I remove a specific bad plan from the SQL Server query cache?

We have one particular SQL Server 2008 query (not a stored proc, but the same SQL string -- executes every 5 minutes) that intermittently caches a very bad query plan. This query normally runs in a ...
11
votes
1answer
3k views

Managing battery relearn cycles on LSI and similar RAID controllers

How do engineers deal with RAID controller battery "relearn" cycles? As noted in: What's a "battery relearn" on a LSI MegaRaid?, relearn cycle discharges the RAID controller battery ...
11
votes
3answers
6k views

Tuning Linux disk caching behaviour for maximum throughput

I'm running into a maximum throughput issue here and need some advice on which way to tune my knobs. We're running a 10Gbit fileserver for backup distribution. It's a two disk S-ATA2 setup on an LSI ...
11
votes
2answers
42k views

Clearning Chrome SSL cache?

I have a haproxy / stunnel server that handles SSL for our sites on AWS. During testing I created a self signed cert on this server and hit it from my desktop using Chrome to test that stunnel was ...
11
votes
5answers
13k views

How to load-balance SQL Server 2008 for high-usage ASP.NET applications?

Imagine that you have a successful web application that uses ASP.NET and IIS 7. It generates many calls to a SQL Server 2008 database, and is expected to be available to the public with 99.9% uptime ...
9
votes
2answers
3k views

ZFS and cache devices

I'm going to add a SSD drives to my ZFS storages as a cache. Anyone has any experience with this? What if cache device dies, will the any data be affected?
9
votes
3answers
32k views

How do I disable tomcat caching? I'm having weird static file problems

How do I prevent tomcat from caching? I have css and basic html files that I load and use via ajax, and unless I restart tomcat, the changes do not seem to reflect. Different machines, different ...
9
votes
1answer
2k views

Stop IIS 7.5 From Sending Out Cache-Control Max-Age on Error Codes

I have some static content with cache control Max-Age headers attached to it so clients will cache the static content. However, IIS 7.5 still sends this header out when there are error responses ...
9
votes
3answers
553 views

Irregular internet disruption: certain images and JS not loading

first time on ServerFault, and I've got a nice little conundrum. Since a few months now, we've been having issues with our internet connectivity. Environment: Servers: 2 Terminal Servers as an ...
8
votes
1answer
1k views

Vagrant NFS share doesn't show updated file if size doesn't change

When mounting /vagrant over NFS, a changed file on the host is not refresh on the guest if the size doesn't changes. Quick update/typo are not immediately reflected unless I make enough modification ...
8
votes
2answers
4k views

High disk I/O when cache is used?

A few days ago I noticed a disk I/O wait and disk activity drop (which was great). Then I also notice that my cache was full(*) and fragmented. Then I flushed cache. After that, disk latency and disk ...
8
votes
5answers
22k views

Is there a way to turn off client browser caching for specific websites?

This is a browser agnostic question but we're testing with IE9. One of the web apps our users visit is being randomly cached and changes aren't showing up when they should. No other site has this ...
8
votes
1answer
2k views

How does Varnish deal with running out of storage?

I am using Varnish 3.0.3 (the latest as of this writing) with more or less the default install, using the following for storage: # # Cache file location ...
7
votes
2answers
932 views

ISP grade Proxy

We are a ISP in Africa (bandwidth is expensive, more than 800 USD per Mbit). Instead of investing in more bandwidth I believe it can be worthy to invest on web proxy appliance. I prefer to use mature ...
7
votes
4answers
17k views

How to solve “ExpiresActive not allowed here” error message in .htaccess file?

I am trying to add Expires headers to the HTTP responses of the site I am working on. The only way for me to control the Apache 1.3 server is by editing my .htaccess file. I tried adding code such as ...
7
votes
5answers
5k views

Squid or Other HTTP Caches with SSD Cache Store?

I'm contemplating setting up a squid (or possibly varnish) cache on a system with SSD drives. The obvious benefit is that these systems have great READ speeds and I expect my hit ratios to be fairly ...
7
votes
2answers
2k views

Apache: Send pre-packed gzip'ed files

I want Apache to send static files gzip'ed over the wire, but also want Apache to not always gzip them over and over again. So I thought if it wouldn't be possible to deliver an .gz file if it exists. ...
7
votes
3answers
16k views

How do I flush IIS Cache without restarting web server?

I have a web site IIS 6.0 that places data into the cache. Sadly it hasn't had a expiration set on it. Is there a way (utility or command) to force this cache to be cleared without rebooting the ...
7
votes
2answers
2k views

Apache cache serving partial content 206 responses to requests for the full content

We're running Plone 3.3.6 behind Apache 2.2.19 with mod_cache. We've recently noticed that Apache is caching the 206 response to a range request and then serving that partial response when a request ...
7
votes
2answers
1k views

Can enabling a RAID controller's writeback cache harm overall performance?

I have an 8 drive RAID 10 setup connected to an Adaptec 5805Z, running Centos 5.5 and deadline scheduler. A basic dd read test shows 400mb/sec, and a basic dd write test shows about the same. When I ...
7
votes
1answer
182 views

Backup process flushes disk cache

I've got a backup process which reads quite a lot of data from disk, and therefore uses up all memory for disk cache, swapping off apps and other cached data in the process. There is no benefit to ...
7
votes
3answers
2k views

Caching youtube on LAN [duplicate]

Possible Duplicate: How can I cache YouTube videos with Squid Cache? I am an Administrator for a net cafe. We have limited monthly traffic allowance and in past our investigations showed ...
6
votes
4answers
7k views

What purpose does the battery serve on a battery-backed caching RAID controller if the server is on an uninterruptible power supply?

Is the battery redundant if the server is on a properly-sized UPS? There is an option to force write-back mode and I want to understand the risk. It is my understanding that it helps against power ...
6
votes
5answers
3k views

Free / Cached / Available memory on Linux

I have read that linux uses free memory for caching, to make system faster. However, both Nagios and Paessler PRTG monitoring system show me that my memory usage is critical. I could change Nagios ...
6
votes
2answers
119 views

Caching db results - need a nudge on how to start

I have a project coming up where one of the requirements will be to cache what's essentially read-only data in order to lessen the strain on the db. I'm just a bit confused on how caching works with ...
6
votes
2answers
910 views

Force request to miss cache but still store the response

I have a slow web app that I've placed Varnish in front of. All of the pages are static (they don't vary for a different user), but they need to be updated every 5 minutes so they contain recent data. ...
6
votes
2answers
332 views

What effect does https traffic have on web cache proxy servers?

I just took two university courses on computer security and internet programming. I was thinking about this the other day: Web cache proxy servers cache popular content from servers on the web. This ...
6
votes
2answers
12k views

How can I cache YouTube videos with Squid Cache?

we're using the Squid cache in our company. Is there any way we can cache YouTube videos? cheers :)
6
votes
1answer
952 views

How do I set a varnish response TTL dynamically?

my php script is sending a header X_Cache_ttl: 1h and in my varnish config file I have sub vcl_fetch { if(beresp.http.X-Cache-ttl){ set beresp.ttl = beresp.http.X-Cache-ttl; } } ...
6
votes
2answers
5k views

Squid not caching

I am trying to configure Squid as a caching server. I have a LAN where The webserver (apache) is at 192.168.122.11 squid is at 192.168.122.21 and my client is at 192.168.122.22. The problem is, when I ...
6
votes
1answer
4k views

Working Nginx fastcgi_cache php-fpm cache and static file caching configuration?

Nginx wiki is very vague with explanation as to how to properly setup nginx with php-fpm with fastcgi_caching for sites which have cookies i.e. wordpress, drupal, vbulletin etc. I downloaded a ...
6
votes
11answers
767 views

DNS as distributed cache

We have a use case to cache 300+ million pieces of such data each with a unique key. I know this is unorthodox but, it has been suggested at my company that DNS could be used as a fast distributed ...
6
votes
2answers
511 views

Windows File Cache drops suddently

I have a 64-bit Windows 2003 server with 48 CPU cores and 128GB of RAM running a single application (SQL 2008 Analysis Services). SSAS is currently using about 50GB of memory. SSAS relies to a ...
6
votes
1answer
513 views

Squid 3 reloading makes it stop serving requests

So, we use Squid 3 here (3.0.STABLE8-3+lenny4), pretty standard configuration (no dansguardian or similar) + NTLM authentication with LDAP background, circa 1000 users on a busy day, and our acls ...
6
votes
3answers
3k views

Configuring Windows DNS resolver cache

I asked this question on Stack Overflow several months ago and didn't get any useful answers. Perhaps somebody here has better info. Note that I'm talking about the client DNS resolver cache. This ...
6
votes
4answers
4k views

Slow Memcached: Average 10ms memcached `get`

We're using Newrelic to measure our Python/Django application performance. Newrelic is reporting that across our system "Memcached" is taking an average of 12ms to respond to commands. Drilling down ...
6
votes
2answers
3k views

Can you set a minimum linux disk buffer size?

I have a rather old Linux machine with 2GB of ram, no swap, and it's working very well, with the system using every unused piece of memory for caching with great effect. However, when I'm close to ...