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)

65
votes
4answers
56k 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 ...
62
votes
11answers
20k 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. ...
46
votes
5answers
62k 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 ...
41
votes
17answers
34k 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 ...
38
votes
5answers
32k 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 ...
19
votes
3answers
83k views

How do I clear Chrome's 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 ...
19
votes
3answers
8k 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 ...
18
votes
2answers
17k 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 ...
17
votes
5answers
8k 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?
16
votes
3answers
13k 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 ...
15
votes
1answer
6k 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 ...
14
votes
6answers
9k 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. ...
14
votes
1answer
11k 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
7answers
6k 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 ...
13
votes
2answers
13k 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
3answers
9k 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
1answer
6k 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
5answers
16k 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 ...
10
votes
2answers
2k 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 ...
10
votes
4answers
48k 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 ...
10
votes
3answers
761 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 ...
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
5answers
26k 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 ...
9
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 ...
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
1answer
3k 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 ...
8
votes
5answers
19k 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 ...
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
2answers
922 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 ...
8
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
4answers
12k 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 ...
7
votes
2answers
13k views

Debian/Ubuntu is it possible to reinitialize /var/lib/apt/lists and /var/apt/cache after deleting them?

Is it possible to restore the functionality of /var/lib/apt/lists and /var/apt/cache after deleting them or minmizing them in some wa I am trying to shrink down an Ubuntu VM to the smallest size and ...
7
votes
2answers
1k 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
1answer
298 views

Is there a standard time duration before DNS caches are cleared?

Is there a standard time duration before DNS caches are cleared, so that if a distracted operator or stuck key turns a TTL of 86400 into 864000000 you don't end up with an authoritative resource ...
7
votes
2answers
1k views

Linux disable disk cache for a single command

Our server is performing decently, but when backups or other scan processes run it will tank the entire server. Something like clamd will run and scan many files. While we expect slow performance, ...
7
votes
3answers
19k 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
4k views

Linux; What is stripe_cache_size and what does it do?

I am currently building a software RAID under Linux using mdadm utility and I've read a few articles that describe how to increase the stripe_cache_size value for that RAID and how to calculate an ...
7
votes
1answer
203 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
4k 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 ...
7
votes
1answer
317 views

Windows Server 2003/Terminal Services - DLL Caching?

Does Windows Server 2003 cache specific DLLs on a per-user basis when in a terminal server environment? Back-Story: We recently had to update some DLLs for our application, and a couple clients are ...
6
votes
6answers
14k views

Does my ISP cache the DNS?

I went to my zoneedit.com, changed mydomain.com to point to a different IP. But changes haven't taken affect yet. Is this because my ISP DNS is caching?
6
votes
3answers
33k views

How can I clear the “authentication cache” in Windows 7 to a password protected samba share?

I have a Linux samba server and have explicitly listed users that can access the folder. I have successfully congfigured Samba to require a username and password when accessing the share from windows ...
6
votes
5answers
4k 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
3k views

ZFS with L2ARC (SSD) slower for random seeks than without L2ARC

I am currently testing ZFS (Opensolaris 2009.06) in an older fileserver to evaluate its use for our needs. Our current setup is as follows: Dual core (2,4 GHz) with 4 GB RAM 3x SATA controller with ...
6
votes
2answers
123 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
1k 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
3answers
10k views

Configuring Varnish to rewrite Expires/Cache-Control headers for client-side caching

How do I configure Varnish so that all responses to requests matching say "*.css" gets cached in the client's browser for 30 days? What I'm trying to achieve is making Varnish set the correct ...
6
votes
2answers
14k 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 :)