Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [caching]

The tag has no usage guidance.

0
votes
1answer
73 views

Configuring Stub Resolver in RHEL 8: systemd-resolved not caching DNS queries

In RHEL 8, systemctl list-unit-files|grep resolved reports that systemd-resolved is both present and running by default. However, systemd-resolve --statistics shows no name:ip mappings are being ...
0
votes
1answer
98 views

systemctl enable tmp.mount

Consider the practice of mounting the /tmp directory on a tmpfs memory based filesystem, as can be done with: systemctl enable tmp.mount And consider the following: one justification: The use of ...
1
vote
0answers
78 views

Using a LVM Raid0 as a LVM Cache for / on Linux Mint

I have a pair of solid state drives (/dev/sda and /dev/sdc) and a hard drive (/dev/sdb). I would like to install the system to the hard drive, collect the SSD's into a Raid-0, and divide up that Raid-...
-1
votes
2answers
673 views

Why Linux does not clean up disk caches and swap automatically?

For example, when I archive a few gigs of files (using tar), Linux uses quite a lot of disk caching (and some swap) but never cleans it up when the operation has completed. As a result, because there'...
1
vote
2answers
55 views

Load program binaries at boot

I've written some utility scripts for my linux system. The problem is that the first invocation of programs lag a bit, I suppose it's the disk delay. Is there a way I can cache these scripts without ...
4
votes
0answers
2k views

Using dd on Mac OS: conv=fsync equivalent?

I'm running an experiment where I benchmark the speed of reading and writing with and without caching. On Linux, using 'conv=fsync' as an operand makes sure that the output file is entirely physically ...
5
votes
1answer
338 views

Key passphrases and sshd — cached authentication?

Asking a more precise question: It appears that I can complete an rsync-over-ssh, using a key that requires a passphrase, without entering the passphrase. For example, I can run the rsync from the ...
0
votes
1answer
39 views

Displaying replacement strategy of Level 1 Cache

I want to find out which replacement strategy my Level 1 Cache (8-way Set-associative) is using. Where can I find this information in Linux? Running dmidecode -t cache gives me all kinds of ...
2
votes
1answer
28 views

Is it possible to give caching preferences to the filesystem?

I have a directory (/srv/data) with a large number (20,000,000) with a number of small (4-40KB) files. These files are all located in subdirectories of /srv/data, where the concatenation of the ...
2
votes
0answers
333 views

dd command 4M block size - buff cache

dd if=/dev/urandom of=file1 bs=4M count=100 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ ---timestamp--- r b swpd free buff cache si so bi bo ...
1
vote
1answer
111 views

Is there disk-level caching in Solaris 11?

I have an iSCSI disk at /dev/rdsk/c5t6d0 I have made a partition (slice with UEFI label) at: /dev/rdsk/c5t6d0s0 Now I write some data to the slice: echo "...
2
votes
1answer
969 views

Use SWAP as disk cache in Linux

I am using different kind of disks on my server. Is it possible to use faster disk as SWAP and ask Linux to use it as Disk cache As I understand Linux use SWAP only for application data not disk ...
4
votes
0answers
413 views

bcache: writeback strategy

I'm using bcache with about 1 TByte of SSD caching for about 40 TByte of data. With writeback and 10% configured for bcache, about 100 GByte of dirty data exist only on the caching devices. I like ...
0
votes
1answer
1k views

Enable sssd caching and linux to honor that cache on CentOS 5

I wanted to enable sssd caching on CentOs and not to use nscd caching, because sssd itself is giving that option. However, authconfig is not giving the option for --enablecachecreds even on the ...
12
votes
2answers
4k views

How can I safely create and access temp files from shell scripts?

I've read that redirecting output to a fixed name file in /tmp can be a security risk, because if an attacker (or malcontent) notices that a file /tmp/tmpfileformyscript.tmp is created when I run my ...
3
votes
2answers
1k 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 ...
3
votes
1answer
78 views

Is it possible to set mod_expires directives dependent on REMOTE_ADDR?

Basically I have a bunch of mod_expires directives in my httpd.conf like so: ExpiresByType text/html "access plus 1 hour" I realize that ultimately, the user's browser determines how long to hold ...