Questions tagged [cache]

a cache stores temporary data nearby so that it can be retrieved much more quickly than fetching it from the real backing store (disk, network), or recalculating some result all over again

Filter by
Sorted by
Tagged with
2 votes
1 answer
5k views

How to auto clear cache on ubuntu 17.10?

The .cache folder(The folder with cache) is eating up my space most of the time and I always how to clear it. How do I get Ubuntu to automatically delete every cache file, including clearing the ...
0 votes
0 answers
27 views

File caching creates problems when big folders are transferred

All the systems that experience problems during big folder transfers are running Xubuntu 22.04.4. One is using Kernel 6.5.0-26-generic and is equipped with 16 GB of RAM and two are using Kernel 5.15.0-...
139 votes
5 answers
81k views

Drawbacks of using preload? Why isn't it included by default?

I would like to know what are the drawbacks of using preload? If there would be no downside, preload would be enabled by default, so I guess there are some. Okay you need a bit more RAM, but most ...
4 votes
3 answers
4k views

How to get Windows-like caching behavior for USB external drive

The problem: Thunar claims that it's written my files to a thumb drive, then I spend 15 minutes waiting for the drive to unmount. I understand it has to do with the write cache. I hope there's a way ...
0 votes
1 answer
4k views

Error opening cache E: read error -read (5:input/output error)

I tried to install 13.04 after downloading and burning on a boot disc, or 12.04 from a disc from a magazine over windows 7 on a netbook but got the following code an error occurred, please run ...
0 votes
0 answers
30 views

Unable to retrieve cache information using standard commands (lscpu, cat /proc/cpuinfo, etc.) on Raspberry Pi; seeking assistance to resolve the issue

I'm encountering difficulties retrieving cache information on my Raspberry Pi using standard commands like lscpu, cat /proc/cpuinfo, and lstopo. Despite attempting these commands with elevated ...
1 vote
1 answer
2k views

LVM cache does not give any performance enhancement

I'm using Ubuntu 16.04.4 and it's running on a VM. The disk that has the origin data has an I/O limit on 1MB/s and disk for cache has no limit. I have followed the guide at fibervillage to create ...
-1 votes
1 answer
66 views

yahoo sites at ubuntu hang

I have issues accessing yahoo sites, such as mail.yahoo.com om Ubuntu 22, with latest updates. Tested with latest Firefox (122, no ad-ons) and Opera. Some times pages load but most of the time the ...
2 votes
1 answer
8k views

Cannot boot. TPM Interrupt not working

I have installed Ubuntu 22.04 on my Acer C720 Chromebook. When I cleared the cache, I tried to boot Ubuntu with Ctrl+Alt+L, which resulted in this screen: [ 0.260118] tpm tpm0: [Firmware Bug]: TPM ...
0 votes
0 answers
50 views

Why do cp, and nocache cp, clog up and slow down/freeze after 2-4 TB, but rsync is effective indefinitely?

Is there a setting I'm missing in CP and nocache CP that frees up resources after each file? I looked around, and read that cp and nocache cp are MUCH faster, and use more RAM instead of CPU, but not ...
13 votes
2 answers
17k views

View size of CPU cache through the command-line?

How do I view the size of my CPU cache using the command-line? I want to view information on L1, L2 and L3 cache. Also, would it be possible to ouput only information on cache, so that all other ...
10 votes
1 answer
13k views

How to clean cache and orphan dependencies in snap and flatpak?

Is there an equivalent of sudo apt clean in snap and flatpak (to delete the cached installation files)? That might free up a considerable amount of space. Also, is there any equivalent of sudo apt ...
5 votes
2 answers
20k views

Very high cache usage causing slowdown

I'm trying to identify the culprit of what's causing my personal computer to be extremely sluggish. The biggest suspect is memory. When the computer is running fast my cache memory looks normal. ...
0 votes
0 answers
579 views

How to clear all cache data of google-chrome (installed on lubuntu 22.04) by commands executed by a bash script?

Initially I have written this question for a system with lubuntu 18.04 installed and for that distribution the question is off-topic. But I have to solve exactly the same problem for the distribution ...
3 votes
2 answers
6k views

How would I place the Chromium cache on tmpfs (ram)?

Some background: Today I have realized that my system SSD is almost full (90% full) for the /home dir. I have realized that the main culprit is (are) the 77 chromium profiles that I use on my ...
38 votes
3 answers
57k views

How do I reset the thumbnail cache?

I have a lot of images on my laptop as I work in graphics. On the same system, I also have a folder containing my family pictures. I would like to do two things: Empty the already cached images and ...
0 votes
0 answers
44 views

How to resolve "broken cache" when installing shiny-server with gdebi

I am trying to install this shiny-server software (https://posit.co/download/shiny-server/) on Ubuntu 22.04.02. I receive an installation error and can't see any of the details due to this "...
0 votes
1 answer
203 views

kmv/qemu vm guests and host are connected through shared memory to collect and cache data beteween them

0 The configuration: host: Ubuntu:20.04 OS, guest: Ubuntu20.04 OS. The two files use the 9p file system for interworking. The current progress is as follows: the mmap function in C language is used to ...
0 votes
0 answers
39 views

Optimize system for rapidly loading large volumes of data

I'm running a complex Matlab program on my Ubuntu computer. It needs to load several .MAT files, each of which is several GB on disk and larger in RAM. I know it is possible to run this program - a ...
0 votes
1 answer
2k views

' Unknown Error: '<class 'KeyError'>' ("the cache has no package named 'linux-headers-5.19.0-41-generic:amd64'")'

I am relatively new to Ubuntu, and have just installed version 20.04 onto a 120GB solid state drive. I have just gotten this error and noticed that neither my WiFi nor my Ethernet are working, I have ...
1 vote
1 answer
185 views

How to recover data from drives in bcache configuration

I'm trying to recover the data in hard drives that was set up in raid and bcache. I'm using ubuntu 22.04 and just migrate the two hard drives in raid 1 to another computer. I have no longer the ssd ...
1 vote
1 answer
973 views

How to Increase RAM cache/buffer on ubuntu 22.04 desktop

i have 32GB Ram I noticed my Cache is usually around 5gb or less. The most of my ram is wasting. in my understanding RAM's Cache is to speed up system and performance. so I was wondering are there ...
-2 votes
1 answer
337 views

Is it a good practice to restart VPS server everyday?

I am building an app server using Ubuntu 20.04 and will be serving thousands of clients with potentially a million http messages everyday. I wanted to ask if it is a good practice to restart my server ...
1 vote
0 answers
382 views

How to configure common folder as pip cache for across all users?

Situation: I have multiple users with their home folders under /home. All of them are added to a group, e.g., pipcache, with read-write permissions on a common folder (e.g., /home/pipcache). Yet, I'...
-2 votes
1 answer
2k views

How to Download entire Ubuntu Software Repository in to the cache for easy offline use when no internet connection

How to fill apt-cache of all programs. Download the entire Ubuntu Software center into apt cache for offline use. sudo apt-get install --download-only * Deb files. Size Don't Matter Binary 64x deb ...
4 votes
4 answers
5k views

What Updated Web Cache Servers are available (Caching HTTP Proxy)

I am going to install Ubuntu 11.10 Server (And soon 12.04 Server) and wanted to know what Web Cache servers (Caching HTTP proxy) come with Ubuntu 11.10/12.04 to improve performance and reduce ...
0 votes
1 answer
93 views

Can I blacklist a website from DNS cache Ubuntu 22.04

I'm having trouble with a specific university related site on Ubuntu 22.04. I have to flush DNS cache every time I want to access it as it seems that the main link and the link with a path point to ...
0 votes
0 answers
1k views

Unable to Boot - Stuck on "[sda] Assuming drive cache: write through"

How do I boot to Ubuntu desktop? I am running Ubuntu 18.04 on VMWare Workstation. It was running fine until I had to expand my hard drive. Then, it showed the "SMBus Host Controller not enabled!&...
48 votes
6 answers
445k views

How to clean /var/cache?

When I woke up this morning, I found my root had filled overnight du -hx --max-depth=1 / 132M /boot 4.0K /media 16K /lost+found 16M /root 702M /lib 4.0K /OLDHOME 8.2G /usr ...
6 votes
0 answers
1k views

Is there anything in ~/.cache that is not really cache?

My machine has lots of memory, so I moved ~/.cache/google-chrome into /tmp, which is a tmpfs RAM disk. This makes the browser run faster and reduces SSD usage. When I reboot, it all goes away, but it ...
8 votes
2 answers
49k views

Can we clear memory cache in Ubuntu

In my Ubuntu 20.04 I see 8.7 GB Memory cache in system monitor. Can I clear this, what is the best way to do so?
1 vote
3 answers
6k views

Use excess RAM as cache for Samba?

I have a older workstation with 32gb of RAM that I've repurposed as a server running Ubuntu Server 18.04. Since 32gb is way more than necessary given the limited use (mainly just file sharing and ...
7 votes
3 answers
121k views

See terminal text. 'Waiting for cache lock' error. How to fix? I'm on Ubuntu 21.04

advait@advait-Bravo-15-A4DDR:~$ sudo apt install ubuntu-restricted-extras Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 43843 (synaptic) Waiting ...
3 votes
2 answers
6k views

Clear cache -- "Operation not permitted" even with sudo

I'm running the following command to clear the cache: $ sync; sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" sh: 1: cannot create /proc/sys/vm/drop_caches: Operation not permitted $ free ...
9 votes
1 answer
15k views

How can I see the systemd-resolve DNS cache?

Using sudo systemd-resolve --statistics I can see the current DNS cache statistics, for example: Cache Current Cache Size: 68 Cache Hits: 412 Cache Misses: ...
0 votes
1 answer
3k views

Ubuntu 20.04 Error: Opening the Cache

I have been getting this error for months: Error: Opening the cache(E: can not open /var/lib/apt/lists/ E: The package lists or status file could not be parsed or opened This usually means your ...
2 votes
0 answers
1k views

Use a file on SSD as cache for an HDD

I'm using Ubuntu Server 22.04. The server has an HDD in it, and I'd like to be able to speed up disk access for that HDD. My system boots from an SSD, so my idea is that maybe I can use space on the ...
26 votes
2 answers
50k views

how to clear DNS cache in 22.04? [duplicate]

How is the DNS cache cleared in 22.04? The method that worked in 20.04: systemd-resolve --flush-caches no longer works.
2 votes
0 answers
269 views

Ubuntu 20.04, Memory cache exhausts immediately upon booting

I'm not a supernerd, but I know some stuff, and I'm pretty sure my system is not supposed to work like this. I recently reinstalled Ubuntu 20.04 from the bones up on my home-built desktop because I ...
4 votes
2 answers
2k views

What do these apt commands do?

What do these commands do? Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update Acquire::http::Max-Age "0"
1 vote
0 answers
366 views

Any issues with disabling local DNS Cache on Ubuntu Server 18.04 or 20.04 or 22.04

My Ubuntu 18.04 server is used to create websites and initiate SSL's via an Admin panel. The issue is that when I initiate the SSL I like to have the server check the DNS record, but since the client ...
1 vote
0 answers
115 views

encrypted ubuntu

I am new to zfs. I read, and sucessfully tested, that encrypted zfs is working. This is a professional laptop so full encryption is required. Current (20.04) setup is separate / and /home, both luks ...
3 votes
3 answers
15k views

Where are stored cache, temporary files and all data in Brave Browser?

I am currently using Ubuntu 18.04 and Brave downloaded and installed as a snap. I suspect that in spite of I have set Brave configuration to erase cookies and history, etc, information is been held ...
7 votes
2 answers
22k views

Does anyone know if VS-Code Cache's data anywhere other than `~/.cache`?

Everywhere I look on google, I find out how to clear the VS-Code cache data on windows. To be fair, even though it is an open source project, its being built from Microsoft's dollar, and by MS ...
2 votes
0 answers
547 views

Write cache / delay as long as possible

I am trying to setup Linux to delay the writes as much as possible (minutes). To those wondering why: this is Chia plotting. It is very write intensive done in SSD/NVMe, if the system crashes you have ...
0 votes
1 answer
1k views

drop_cache Permissions Denied

I was following https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/ and I realized that I had no permissions for /proc/sys/vm/drop_caches. I even used sudo su and it still ...
1 vote
0 answers
152 views

drop_caches hangs for 1-2 min and maxes cpu before completing

If I have been logged into the Ubuntu 18.04 graphical console for a while and run either: echo 2 >| /proc/sys/vm/drop_caches echo 3 >| /proc/sys/vm/drop_caches the process takes almost 2 ...
1 vote
0 answers
141 views

KDE KIO caches all network media before viewing

What is kioexec? Why does it run every time I try and open a picture or video? It appears to copy the entire file to ~/.cache before viewing. Same happens w/ VLC and other media applications as well....
21 votes
4 answers
24k views

How to clean var/cache/apt in a way that it leaves only the latest versions of each package

I want to know a way to clean the var/cache/apt folder in a way that it only leaves the latest version of a package if it has several versions or it leaves a package if it is the only one of that ...
1 vote
1 answer
2k views

How do you make a SSD cache for a Raid 5 HDD array Ubuntu NAS?

I'm trying to make a NAS in Ubuntu as I like the OS more, and I can install it on a partition of a drive, as opposed to FreeNAS or any dedicated NAS operating systems. However, one thing I liked about ...

1
2 3 4 5
7