The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
25 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
34 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
51 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 ...
2
votes
2answers
25 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 ...
2
votes
1answer
55 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
61 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
10 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 ...
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
47 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
14 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
359 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 ...
3
votes
0answers
33 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" ...
0
votes
0answers
36 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
63 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
59 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 ...
1
vote
1answer
153 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
170 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 ...
3
votes
3answers
164 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
888 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.
0
votes
0answers
92 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
51 views

Is there a way to prevent SWAP from collecting cached data?

Here is the following info: Do I need more swap? No, disk caching only borrows the ram that applications don't currently want. It will not use swap. If applications want more memory, they ...
0
votes
1answer
338 views

How to find the page size, associativity, and TLB size and number of entries?

Under an Ubuntu system, are there commands for looking up: the page size, n in n-way cache associativity, TLB cache's size and number of entries?
0
votes
1answer
80 views

When speaking about cache size of a CPU, we only need the size of the cache at the furthest level [closed]

When speaking about cache size of a CPU, do we only need to know the size of the cache at the furthest level (such as at level 3, when the cache hierachy is 3-level)? Instead of the sum of all the ...
1
vote
1answer
148 views

Web server seems to keep serving old images, issue with Apache & VirtualBox?

I'm asking this here because I'm pretty sure it's a Linux issue. I'm running Apache server locally on Ubuntu Server 12.10, which runs inside a virtual machine (VirtualBox) on Windows 7. The "www" ...
0
votes
1answer
31 views

How to print a Bind10 cache dump?

How can you print the current state of the bind10 cache? I searched the bind10 manual and tried to figure it out using bindctl.
0
votes
2answers
970 views

Clear file system cache on AIX

I'm using AIX 6.1 and for testing. I want to clear the file system cache. Something similar a this on linux : echo 2 > /proc/sys/vm/drop_caches Is this possible?
3
votes
1answer
379 views

SSD as a read cache for FREQUENTLY read data

I'm looking for ways to make use of an SSD to speed up my system. In “Linux equivalent to ReadyBoost?” (and the research that triggered for me) I've learned about bcache, dm-cache and EnhanceIO. All ...
2
votes
0answers
284 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. ...
2
votes
0answers
41 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 ...
1
vote
2answers
782 views

DNSCrypt, Unbound and DNSSEC

I would like to have an encrypted DNS queries + a DNS Cache + Domain Name System Security Extensions (DNSSEC) . I used this bash script to install DNSCrypt and I choosed to use dnscrypt.eu servers : ...
3
votes
0answers
506 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
0answers
51 views

looking for name of a userspace tool for disk/network caching? [closed]

I remember seeing a blog post a month back that used a tool in the command which acted like a user space caching tool to buffer/cache reads and writes in RAM to overcome disk or network contention. I ...
1
vote
1answer
76 views

External Cache not socketed

When I check my CPU Cache with command dmidecode, I get Cache configuration to be Not Socketed. What does that mean? prayag@prayag:~/hacker_/draobkcalb$ sudo dmidecode -t cache # dmidecode 2.11 ...
0
votes
1answer
561 views

How to reduce buffers\cache

A monitoring system keeps alerting that my machine is reaching\breaking through it's RAM utilization threshold which is 15 GBs. I've done some reading and understood that the apparent RAM utilization ...
5
votes
0answers
275 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
2answers
87 views

Configurable DNS cache for Linux

What I need is to configure a Linux machine, so that when user of that machine goes to www.somesite.com he/she is redirected to, say, 127.0.0.1. What is the best way to achieve it?
2
votes
1answer
62 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 ...
16
votes
1answer
10k 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?
4
votes
2answers
425 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 ...
1
vote
1answer
2k 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 ...
5
votes
2answers
522 views

Find/ls caching

It seems as though the first time I run find or ls on a directory, it takes a while to work. But, each time thereafter, it is fast, as though a list of the directory's contents has been cached or ...
4
votes
1answer
608 views

How can I tune Ubuntu for running from a flash drive?

I feel like this is a bit of a duplicate of this other question about making caching more aggressive, but I tried a lot of the suggestions there and I just can't figure out why I'm having trouble. My ...
1
vote
1answer
82 views

How to stop CACHE instance from Shell Script

I want to restart CACHE(database that I am using) Instance from shell script. What I did is created a function in the shell script named resatrt_cache. restart_cache() { ccontrol stop instancename ...
6
votes
1answer
703 views

How to configure Linux to cache file metadata in preference to contents?

I’d like to set the system up to use most RAM for file system metadata caching, but only a reasonably small amount for read/write caching and prefetching files. Ideally I would like to be able to ...
3
votes
1answer
110 views

Ubuntu filesystem buffers/cache always empty

I have a virtual server with ubuntu 10.04.4 LTS and plesk (preinstalled by hosting company). Now i have seen that the buffers/cache are always empty. Current uptime is 22 days. free and htop shows the ...
3
votes
1answer
527 views

How to guarantee writes are physically committed before reported completed?

When my system boots, as it probes the external, USB-attached hard drive, I get the message Assuming drive cache: write through in the dmesg output, tagged with the device name of the external drive. ...
4
votes
1answer
5k views

How can I tell which version of Varnish I'm running?

How can I get the installed Varnish cache version string from the command line?
2
votes
1answer
144 views

Keeping disk caches when hibernating

Is there a way to keep disk caches when hibernating Linux? I understand and agree that dropping them is the best option all-around. But my system is unresponsive after resume and I would like to give ...
8
votes
1answer
290 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
30k 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 ...