cache is a component that stores data so future requests for that data can be served faster; the data stored in a cache might be the results of an earlier computation, or the duplicates of data stored elsewhere.

learn more… | top users | synonyms

2
votes
1answer
10 views

How to enable package caching in dnf?

I started using fedora 22 and started learning dnf only to find out about two annoying facts: Almost every time I install or upgrade anything it has to rebuild the whole repository metadata cache ...
0
votes
1answer
23 views

why does my Ubuntu Virtual Machine slow down after a number of searches, and builds?

I recently learned that my Ubuntu Linux file system may cache the result of some commands such as searches, sorts, and perhaps build commands such as make. I run Ubuntu in a VM, and although I have ...
1
vote
0answers
6 views

CVMFS file access slow, although file is in cache

I have a directory in which there is a symlink to a file on CVMFS. When I first boot up, and do ls, it takes a long time (~a minute). The reason is that ls does fstat on each file to determine what ...
2
votes
1answer
44 views

How run free command by crontab

I want to run this command: free && sync && echo 3 > /proc/sys/vm/drop_caches && free -m by cron that why I'm able to free my RAM and cache in ubuntu system. I'm using ...
1
vote
0answers
41 views

Opcache and shared memory issue

I installed zend_opcache on my server box , but I can not increase opcache.memory_consumption over 1600 . (example : 2048) . after increase following error occur in server : Fatal Error Fatal Error ...
0
votes
0answers
14 views

Will btrfs snapshots ever share page cache?

It's common to run multiple container images based on the same parent. In theory you should be able to share page cache between these containers automatically. E.g. some of the code in shared ...
2
votes
1answer
25 views

Directory traversal cache eviction despite having plenty of memory?

I have a huge Mercurial repository (take a guess how many directories it has -- it's gonna be more than you guessed). The time taken to do basic repository operations is heavily dependent on whether ...
3
votes
0answers
25 views

What could cause dropping cache to be extremely slow on a large cluster?

I'm attempting to time file I/O on my disks. In order to make sure all the I/O is happening off the hard drives and not from ram, before I time any read, I run a drop cache command. Specifically, I ...
-1
votes
1answer
55 views

What is ~/.cache/weather.xml?

I use a clock-date-weather conky and I noticed that it is related to the file ~/.cache/weather.xml. I am curious: was this file created by conky or by what other program? Is it present on the system ...
1
vote
0answers
114 views

ssd caching in loop device on btrfs

I have an ssd and 2TB hard disk. The ssd is used for the root filesystem which uses only around 20G of the 120G available. Is there a way to use an image/loop on the root filesystem (btrfs) as a cache ...
13
votes
3answers
823 views

Is it safe to remove ~/.cache?

When I scanned my $HOME directory with baobab (Disk Usage Analyzer), I found that ~/.cache is consuming about half a GB. I also tried to restart and again check size but no difference. So, I am ...
3
votes
0answers
24 views

Is posix_fadvice / POSIX_FADV_DONTNEED functional in Linux?

If I am doing once only scanning across big files then do I need to worry about impact on the page cache or does the OS take care to avoid my scan causing pointless churn in the page cache. I want to ...
3
votes
1answer
59 views

Linux doesn't drop FS Caches. Instead Memory starts Swapping

I'm quite confused about this behaviour of linux memory caching. total used free shared buffers cached Mem: 15953 14188 1765 64 ...
3
votes
0answers
60 views

Limit the inode cache used by a command

I want to run a task with limits on the kernel objects that they will indirectly trigger. Note that this is not about the memory, threads, etc. used by the application, but about memory used by the ...
0
votes
2answers
50 views

Precaching the list of files of the filesystem

I was wondering where and in what form a list of files and directories is stored on the ext4 filesystem. The problem is that whenever I try to access a certain directory for the first time since boot ...
5
votes
1answer
45 views

What memory is not used by processes and freed by `echo 3 > /proc/sys/vm/drop_caches`?

Without programs open, my computer uses about 512M of memory. Yesterday, I had nothing open, yet 2 GB of mem use (used - cache = 2153): total used free shared buffers ...
1
vote
1answer
33 views

Reading ELF file after dropping caches

I have an eMMC backed Linux 3.10 development device (Android) and I am trying to better understand when Linux is actually reading from the eMMC as opposed to the page cache. Specifically, I am ...
1
vote
1answer
47 views

Change Linux Bcache device type

I have accidentally configured my SSD as a backing device instead of a caching device. Simply trying either one of the following: sudo make-bcache -C /dev/sdb1 sudo make-bcache -C /dev/sdb Gives ...
1
vote
0answers
76 views

how to clear NFS client side cache and server side cache?

I would like to know what is the cache size NFS is using at client side and server side. How to clear it.? Is there a difference between system cache and network cache ?
3
votes
0answers
73 views

How to generate graphs from lmbench results?

I need to use the lmbench benchmarking tool to get the system performance statistics. I am able to execute and run the results. In the results folder this is a MakeFile with this information # ...
3
votes
2answers
96 views

How and where is file system meta data cached in Linux

My earlier question apparently had a wrong premise. I thought file system meta data was cached in the inode and dentry cache, but apparently not. When I do: # time find . > /dev/null real ...
1
vote
0answers
63 views

Out of Memory with unused memory and swap

I have a strange error on my Raspberry Pi2. System is archlinuxarm. Short after boot (about 30 secs), the system states that it is out of memory, resulting in closing many applications, most time ...
2
votes
1answer
94 views

how to check default cache mode for disk in kvm

KVM/qemu support various types of cache - none, writethrough, writeback. How to check which one is default and is used on system when no cache= is specified? For RHEL6 i found that it's writethrough ...
0
votes
0answers
48 views

Linux - is it possible to limit VFS cache usage on a per-process basis

I'm trying to investigate performance degradations while running background copy operations (using dd to write or read large disk-images). Is it possible to limit VFS cache usage for a single ...
4
votes
2answers
75 views

How to determine whether the data is written to disk or cached?

I'm learning file operation calls under Linux. The read() and write() and many other functions use cache to increase performance, and I know fsync() can transfer data from cache to disk device. ...
2
votes
1answer
58 views

How to get all CPU cache information without SU access

I am trying to find out the cache mapping scheme for all the levels of class of a linux server, however I do not have root access. I would just use DMIdecode for this but you need root access. Is ...
0
votes
0answers
91 views

Using Varnish + Nginx Forcing SSL

i'm using Varnish and i would like to force communication only with SSL. My server is Nginx. What's the best way to do so? Or the easiest? I read about Pound proxy and installed it but guides were too ...
3
votes
0answers
81 views

Discover what is cached by dm-cache

I am using dm-cache successfully for quite a while now. Now I would like to know which files are being currently in the cache. I understand that dm-cache works with blocks, not files, but since there ...
1
vote
1answer
114 views

Booting from an lvm-cached volume

I created a cache pool following this article. The process seems to be successful. After doing an upgrade-grub and rebooting, Grub complains that it can not find the root volume (showing a UUID). - ...
2
votes
0answers
93 views

Restore /var/cache files

I've accidentally deleted all contents of /var/cache files. I managed to reinstall most by doing dpkg -S /var/cache and apt-get --reinstall install PACKAGE_NAME (see here) on every package that I've ...
3
votes
1answer
72 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
254 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, ...
6
votes
1answer
425 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
3answers
99 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 ...
1
vote
0answers
47 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 ...
1
vote
2answers
65 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
218 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 ...
4
votes
1answer
81 views

Avoid -dbg_version packages on apt-cacher-ng server

Intro: 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
2answers
107 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 ...
1
vote
0answers
36 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
222 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
267 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
347 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 ...
2
votes
1answer
118 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 ...
0
votes
1answer
55 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 ...
3
votes
1answer
440 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 ...
5
votes
2answers
332 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
1answer
309 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 ...
3
votes
1answer
120 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 ...
0
votes
0answers
18 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 ...