The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
24 views

Cache directory and file list to prevent hard drive access when browsing contents

I have 7 hard drives that are in a virtual pool (mhddfs) so they appear as one directory. I put them to sleep after 5 minutes of inactivity to save a significant chunk of power. The problem with this ...
0
votes
1answer
21 views

How to enable a non-root user to empty the linux buffer cache

I'm required to empty the linux buffer cache in a python script, that runs on a Debian wheezy VM. As root I run sync; echo 3 | sudo tee /proc/sys/vm/drop_caches, but the script is run by a user, ...
8
votes
2answers
340 views

Linux cache evictions

Looking at how the VFS cache on my Linux machine behaves, I can see that even when effectively idle (crond and most other daemons stopped, interfaces down) the amount of free memory gradually ...
4
votes
3answers
537 views

Are there any ways or tools to dump the memory cache and buffer?

As the title, I want to check out what files are loaded in buffer. Just so it's clear, the buffers & cache I'm referring to are what show up when you run the free -m command: $ free -m ...
2
votes
1answer
58 views

What is being cached?

I have an embedded system with a low amount of memory. The system has allocation issues. Maybe due to fragmentation: Memory allocation issue on NOMMU? The platform is a NOMMU platform and so I suspect ...
5
votes
1answer
51 views

List all files that are present in the cache

This question answers to the question on how to find the what is part of cache. However, in the fincore executable you have to pass the filename to check if it is part of cache. Is there a tools or a ...
2
votes
2answers
25 views

Buffering (named) pipe in GNU OS

In the GNU OS a process can only write data to a pipe if another process reads the same data (from the same pipe) at the same time. Is there something like a pipe which lets the 1st process write and ...
12
votes
4answers
786 views

Drop a specific file from the Linux filesystem cache?

I know I can drop everything from the Linux filesystem cache, but is there a way to drop just one specific file? Or prevent a file from being cached? Or tell a process not to cache any files it ...
1
vote
0answers
38 views

How shareable is /var/cache?

I know that some subdirectories of /var/cache are pretty much shareable, for example /var/cache/pacman (in case of ArchLinux), and possibly others (/var/cache/man?), but at least /var/cache/ldconfig ...
3
votes
1answer
52 views

dnsmasq - how to measure DNS cache efficiency / cached items

I've configured dnsmasq as a caching-only DNS server on a Debian server, and it's working well (I'm seeing improved DNS response times via dig). However, I'd like to understand what dnsmasq is ...
1
vote
2answers
47 views

Increasing performance of clear text file reads

In our bioinformatics application we have large files (up to 900MB, typically 100MB). These files contain a clear text representation of a genome, and are essentially a 1 line file with a sequence of ...
1
vote
1answer
59 views

Request header for Cache-Control not working

I have set Cache-Control in apache for 1 week for my JS Files but when i check in the browser Cache-Control shows no-cache. Where i am missing the configuration ? Below is my configuration in apache ...
5
votes
0answers
333 views

Cleanup of temporary file ~/.cache/duplicity/temp failed

Often when I run Duplicity I see an error message like this at the end of the run: Cleanup of temporary file ...
1
vote
0answers
19 views

Avoid -dbg_version packages on apt-cacher-ng server

We have created a apt-cacher-ng server to provide cached packages to our users that have Ubuntu 14.04 installed. Combined with the cached packages, we are doing a weekly "mirror" of some Ubuntu ...
0
votes
1answer
165 views

flashcache tuning

I installed flashcache version 3.1.1 and created a write-back cache. The performance is good as long as the percentage of dirty blocks is not too high. My application does heavy IO at the beginning ...
0
votes
1answer
32 views

Memcached on a webserver

We host a Magento webshop hosted by Amazon EC2, and we have speed issues. We're currently looking at moving to another provider. We found one hosting provider where we have a test account now. Speed ...
75
votes
3answers
16k views

How do I clear Bash's cache of paths to executables?

When I execute a program without specifying the full path to the executable, and Bash must search the directories in $PATH to find the binary, it seems that Bash remembers the path in some sort of ...
0
votes
0answers
30 views

Very strange issue, something is blocking specific links on local domain

I have a very strange issue and I ran out of ideas. The major problem is that the symptoms are not consistent. I have a short link website hosted on 2 virtual machines, one with nginx+php-fpm and one ...
1
vote
1answer
71 views

file access time after loading file into the cache

I read from here that I could load file into RAM for faster accessing using the below command. cat filename > /dev/null However, I wanted to test if the above statement is really true. So, I ...
0
votes
1answer
52 views

Difference between route cache and neighbor table

Our Ubuntu server runs as a router for thousands of devices. With the growing number of connecting clients we have noticed 3 overflow problems in the kernel log: 1. Route cache chain too long 2. ...
1
vote
0answers
87 views

Ubuntu: Restore not printed document from browser cache

I was at work today faced with a situation where I have to prove that I did not make a mistake. Without going into detail, yesterday I generated an important document which was to be printed. For ...
0
votes
1answer
41 views

What dev folder allows you tell the OS to cache something?

Someone told me that there is a sub folder off of dev that basically allows you to tell the OS to keep the contents of that folder cached in RAM. So if I put some files & directories in ...
2
votes
1answer
94 views

Spawn multiple dirty page flusher threads per device

In earlier 2.6.X kernels, pdflush was used and it would spawn more pdflush threads if all current pdflush threads were busy for a second (read from The Linux Page Cache and pdflush). Since the ...
2
votes
1answer
153 views

Fix “Route hash chain too long” without restart

On our production server (ubuntu 12.04, 3.2.0-63 kernel) routing cache reached its capacity. Modifying rhash_entries is out of the question, since it is a kernel boot param, and we can not restart the ...
3
votes
2answers
86 views

How should I restore /var/cache?

I just restored my Raspberry Pi server from an rsync image. During the backup, I had excluded /var/cache/*, thinking that this would restore an empty directory. This worked, but when I rebooted, a ...
3
votes
3answers
3k views

/proc/cpuinfo “cache” category: L1, L2 or total?

When I look in /proc/cpuinfo, one of the lines tells me I have 6144 KB of cache. Is this L1 cache, L2 cache, or the sum of both of them? In any case, how do I find out how much L1 and L2 cache my ...
33
votes
1answer
36k views

How do you empty the buffers and cache on a Linux system?

Prior to doing some benchmarking work how would one free up the memory (RAM) that the Linux Kernel is consuming for its buffers and cache?
3
votes
0answers
54 views

Figuring out physical cache layout in FreeBSD

I'm trying to figure out they physical cache layout of my CPU in FreeBSD 10. I see the following from sysctl kern.sched.topology_spec kern.sched.topology_spec: <groups> <group level="1" ...
3
votes
1answer
77 views

Artificially prime buffer cache?

Is it beneficial to artificially prime the buffer cache when dealing with larger files? Here's a scenario: A large file needs to be processed, line by line. Conceptually, it is easy to parallelize ...
1
vote
0answers
18 views

Can not analyze output from Squid and varnish

I'm using one Squid server between tow cache server. I get from headers following information: X-Cache MISS, HIT from cache-zz X-Cache-Age 515 X-Cache-Control public, max-age=3600 X-Cache-Lookup HIT ...
4
votes
3answers
9k views

How to clear memory cache in Linux

Is there any command that by using I can clean the cache in RHEL? I used this command: sync; echo 3 > /proc/sys/vm/drop_caches but it didn't work.
0
votes
0answers
16 views

how to find where buffers/cache are and how to clean them up? [duplicate]

I want to create 20gb ram disk for ANSYS to work in yet on free -g I see: And personally I have not created any ram drives yet. So I wonder how to maximize avaliable ram: how to locate what is using ...
2
votes
0answers
69 views

Reduce cache size of flash storage devices

For various benefits Linux uses a memory cache for writes to removable stogare devices like memory sticks. This cache seems to be quite large on my system, which leads to some annoying behavior. For ...
2
votes
0answers
28 views

In meminfo, sometimes Mapped more than Cached

In /proc/meminfo, AFAIK Cached >= Mapped But after /proc/sys/vm/drop_caches, it goes to Cached < Mapped Cached: 66132 kB Mapped: 67792 kB /proc/meminfo contents ...
3
votes
1answer
3k views

Is “sync” before drop_caches necessary?

I have read a lot of docs saying, it is good idea to do a sync before doing echo [1,2,3] > /proc/sys/vm/drop_caches. I am not able to understand why it is needed, since drop_cache is a ...
3
votes
1answer
2k views

Is no caching mode page a serious error?

My server log displays the following error messages in RED: kernel: sda: sda1 sda2 kernel: sd 0:1:0:0: [sda] No Caching mode page found kernel: sd 0:1:0:0: [sda] Assuming drive cache: write through ...
4
votes
3answers
40k views

How to flush local DNS cache in CentOS

(I am aware that googling this question gives me tons of stuff, but literally none worked) I'm looking for a way to flush the local DNS cache on a Centos 6 system, it is not running any DNS server or ...
0
votes
0answers
55 views

Can't configure NGINX to cache images

I have been trying to cache images that are stored in nginx server, I am quite new here and to nginx I have installed it and configure it with php5-fpm, I have been reading many tutorial regarding ...
1
vote
1answer
82 views

Random application crashes in Linux

Sometimes after booting my computer, some applications fail to start: they crash. They're usually the largest ones, such as firefox, thunderbird or virtualbox. Rebooting or cleaning the cache usually ...
0
votes
1answer
113 views

should I reduce /dev/shm size?

I have a server wity 8 GB RAM Mem: Total 8031464 Used 5146344 Free 2885120 If I execute # df it always returns this tmpfs 4015732 0 4015732 0% /dev/shm What does it ...
3
votes
0answers
675 views

Tune write disk cache flushing algorithm

I would like to use the free memory for write cache. Linux does that automatically, but it has some weird flushing algorithm that I would like tuned for my use. I have recently used ddrescue to copy ...
1
vote
4answers
8k views

How to clean up the RAM memory that is being used as cache memory?

My processor is using a big part of my RAM memory as cache and I want to clean it up because of that; will it prejudice something?
7
votes
5answers
15k views

DNS queries not using nscd for caching

I'm trying to use nscd (Nameservices Cache Daemon) to cache DNS locally so I can stop using Bind to do it. I've gotten it started and ntpd seems to attempt to use it. But everything else for hosts ...
3
votes
2answers
366 views

linux disk caching affects access times reported by stat?

On Ubuntu 12.04 I did the following stat a file cat the same file stat the file again cat the file again after 5 min stat the file The access time reported at 3. reflects the point at which 2. was ...
1
vote
1answer
305 views

Clear Memory Cache on Amazon EC2

In our project we have a few tests which run for about 3-4 hours continuously. In due course, the tests fail as they couldn't find enough memory. On googling, I found that running the following ...
5
votes
1answer
303 views

How to use an SSD for caching, so my hard disks can spin down?

I've got a file server with a bunch of disks running together in a BTRFS pool and want to add an SSD for caching. I'm not mainly after speeding up things, but want to catch the regular small accesses ...
26
votes
3answers
3k views

Does grep use a cache to speed up the searches?

I have noticed that subsequent runs of grep on the same query (and also a different query, but on the same file) are much faster than the first run (the effect is easily noticeable when searching ...
3
votes
3answers
278 views

Speed up copying 1000000 small files

I have 1000000 4-20 kb files in a dir. I need to copy that dir. But it seems I have to do a seek for each files so this takes quite a while. Is there a way in which I can speed this up? I am ...
5
votes
2answers
2k views

what does it mean by cold cache and warm cache concept?

I read a paper and it used terms “cold cache” and “warm cache”. What does it mean by cold cache and warm cache concept? I visit this but I need something more.
15
votes
4answers
14k views

Where are stored the Youtube videos cache in Google Chrome?

Google Chrome used to store YouTube videos in /tmp, but not for the last two versions. Nor could I find those files in ~/.cache/google-chrome. Googling for this query produces Windows-specific ...