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

8
votes
1answer
887 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 ...
4
votes
1answer
2k views

What options are there for tuning Linux file system caching?

What various types of caching are possible in the ext3 file system and how can their values be changed using system calls or other methods? I don't want to use commands or tools.
3
votes
1answer
148 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 ...
2
votes
1answer
97 views

Monitoring file reads for cache warming

After adding more memory to my Linux machine I was tempted to use the cache more agressively. The thing is: I boot up my machine, go to bathroom, come back and log in. It takes like half a minute to ...
1
vote
1answer
8 views

Error while installing Bcache on centOS

I am trying to setup Bcache on my existing system(Its risky,but we are not worried about losing any data ) . So my make and make install works proper but when I run the command make-bcache i receive ...
1
vote
1answer
49 views

Using terminal to reset icon cache - which method?

I've been trying to find out how to reset the icon cache on my MacBook, and two methods seem to always be suggested. However, the two approaches differ slightly in the third line. Method 1 sudo find ...
1
vote
1answer
39 views

Reset Bash's memory used for auto-complete

After renaming a file to a similar name, I noticed TAB was still completing the old filename (if it matched the letters so far) and not showing the new one. No matter how many letters I typed, it ...
1
vote
1answer
399 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 ...
1
vote
1answer
587 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 I/O at the ...
0
votes
1answer
34 views

device-mapper: reload ioctl on cache1 failed: Device or resource busy

When I run the below command while setting up dm-cache on my CentOS system, I receive the error: device-mapper: reload ioctl on cache1 failed: Device or resource busy Command failed Command is: ...
0
votes
1answer
37 views

How to deactivate linux page/disk cache?

I would like to turn off the disk / storage cache on Raspbian. I have done a serie of benchmarks on the microSD (http://jgp.net/microsd-card-performance-raspberry-pi/) but some people recommended I do ...
5
votes
0answers
165 views

Why are slab objects not reclaimed automatically

Everyday after a full system backup, various programs are failing with read errors until I run echo 2 > /proc/sys/vm/drop_caches to free reclaimable slab objects. For example, here's the output of ...
4
votes
0answers
108 views

LVM cache and TRIM

I have set up LVM to cache a logical volume (located on an HDD) on a partition of an SSD (in writeback mode if this matters). As far as I can tell, this works correctly and the cache uses all ...
3
votes
0answers
94 views

How to interpret perf -e cache-misses:pp?

I find the behavior of perf top -e cache-misses:pp -p <my_pid> quite confusing. I own an Intel i5-3230M, running kernel 4.4.5 64 bit. If I just run that commmand, I get basically no samples ...
3
votes
0answers
63 views

How to cache block devices (for device mapper)?

problem / observed effect It seems that the page cache ignores block devices which are not opened. And worse: Reads from device mapper (DM) devices which use a cached device are not cached at all ...
3
votes
0answers
51 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 ...
3
votes
0answers
58 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
0answers
137 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
0answers
120 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 ...
3
votes
0answers
129 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
0answers
873 views

Route all HTTP traffic through polipo

I've set up polipo on my machine to listen to the default port 8123. To test it, I set the in-memory cache to a ridiculously high 2 GB and downloaded a 50 MB file using wget utilizing the proxy. ...
3
votes
0answers
1k 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 ...
2
votes
0answers
26 views

Which subsystem caches file reads?

I am trying to understand how exactly file reads are served from Page Cache. This will be useful when I will be implementing my own filesystem in the kernel. Is file content cached by VFS or ...
2
votes
0answers
175 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 ...
2
votes
0answers
211 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
80 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 ...
2
votes
0answers
76 views

Too large cache causes disks to grind, I/O to drop

This is a followup question to my earlier problem. In short I was experiencing massive I/O drops together with not-so-violent disk grinding, and with help I found out that the big caches were the ...
2
votes
0answers
979 views

Linux kernel slab usage growing on embedded system

I'm in the process of QA/debugging a project on a custom embedded linux system. The problem we're VERY tight on memory, and even a couple megs can cause issues with our software. What I'm seeing ...
1
vote
0answers
10 views

Which is the correct dm-cache version

I am trying to install dm-cache on my CentOS machine. Which dm-cache version should I use. I read on wikipedia as below: Another dm-cache project with similar goals was announced by Eric Van ...
1
vote
0answers
36 views

bcache not working as expected with ramdisk as cache device

I was trying out bcache but i don't have an SSD so wanted to use free memory as a substitute. As ramdisk is listed in /proc/devices as block device i assumed this would work OK but with below simple ...
1
vote
0answers
42 views

One SSD cache for two partitions on two separate disks?

I have two hard drives: one for my operating system and the other for other data. I recently bought an SSD drive that I would like to use an LVM cache for those two devices. The problem is that I ...
1
vote
0answers
159 views

OpenLDAP as a Proxy cache only, no local database

I am trying to get a local LDAP proxy cache running. The idea is this: Currently a computer (A) is sending all ldap requests to a remote ldap server (L) Instead of that, there should be a proxy ...
1
vote
0answers
26 views

what is left inside the cache even after clearing the page cache data?

I was trying to clear the cache using echo 3 > /proc/sys/vm/drop_caches Even after performing the above operation there remain some space inside the cache? When I check with free -m around it ...
1
vote
0answers
17 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 ...
1
vote
0answers
139 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 ...
1
vote
0answers
404 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 ...
1
vote
0answers
151 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 ?
1
vote
0answers
126 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 ...
1
vote
0answers
59 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
0answers
39 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
0answers
474 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 ...
1
vote
0answers
2k views

How to set up ZFS with ZIL and L2ARC SSD?

I have been considering bcache and flashcache. However my friend suggested me something called ZFS. In fact it says that formating disk with ZFS can actually do the exact same thing without kernel ...
0
votes
0answers
12 views

stop dm-cache from caching temporarily

I am want to benchmark my system(Centos) IOPS with dm-cache and without dm-cache.I have taken benchmark result for my system dm-cache .Now I want dm-cache to stop temporary so that I can take ...
0
votes
0answers
29 views

device-mapper error while setup of dm-cache

I am trying to setup dmcache using the tutorial https://wiki.mikejung.biz/Dmcache When I run the command `dmsetup create home-cached --table '0 976771120 cache /dev/mapper/ssd-metadata ...
0
votes
0answers
19 views

Is the iSCSI block device having client side-read cache (if yes how to disable)?

I have a remote block device with the test ext4 filesystem image. On the iSCSI initiator side, I have this device detected as let's say /dev/sdb. I am not mounting this filesystem but instead I use ...
0
votes
0answers
42 views

SSD + HDD performance from power on

I'm planing to buy a new laptop with a 128GB SSD and a 1TB HDD. And I would like to have reliability, performance and storage space from power up and during the whole runing time. During the running ...
0
votes
0answers
26 views

SSD as write target during reads

I have a real-time application which always writes data to a RAID 10 HDD configuration in a sequential manner at around ~50 MB/s. It uses mmap and writing should never be blocked due to waiting I/O. ...
0
votes
0answers
53 views

How to configure some proxy like Squid to download specific URL only once?

I have read article about Windows 10 spying my activity and blocked all mentioned addresses on my router's firewall. This included addresses az361816.vo.msecnd.net and az512334.vo.msecnd.net ...
0
votes
0answers
84 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 ...
0
votes
0answers
113 views

Real copy to Android device

When i copy files to the Android phone, they are copied to some cache, but they aren't written. I don't like it, because i don't know what is done. I've tried these methods: copying via thunar file ...