Questions tagged [page-caching]

95 questions
25
votes
1 answer

Does mmap directly access the page cache, or a copy of the page cache?

To ask the question another way, can you confirm that when you mmap() a file that you do in fact access the exact physical pages that are already in the page cache? I ask because I’m doing testing on a 192 core machine with 1TB of RAM, on a 400GB…
quinthar
  • 443
  • 4
  • 8
25
votes
2 answers

Linux Page Cache - Deleting a page from the page cache in kernel

My question is an extension of this one How to manipulate page cache in Linux? I was trying to do a small project that aims to limit the size of page cache used on a per file basis. The approach I used was as follows - Maintain a kfifo queue of…
Singh
  • 287
  • 2
  • 8
10
votes
2 answers

How to cache render :json

I have a controller index action which returns json output. render :json => my_array.to_json What type of caching do I have to use here. Does 'page caching' make sense for this. Or do I have to do action caching like below caches_action :index
user290870
  • 1,591
  • 3
  • 19
  • 27
10
votes
7 answers

Rails page caching and flash messages

I'm pretty sure I can page cache the vast majority of my site but the one thing preventing me from doing so is that my flash messages will not show, or they'll show at the wrong time. One thing I'm considering is writing the flash message to a…
KJF
  • 2,083
  • 4
  • 21
  • 38
8
votes
1 answer

Turn off page-level caching in a user control

I have a page with the following caching defined: <%@ OutputCache Duration="60" VaryByParam="None" %> I have a user control inside that page that i don't want cached. How can I turn it off just for that control?
Micah
  • 111,873
  • 86
  • 233
  • 325
7
votes
1 answer

How to manage page cache resources when running Kafka in Kubernetes

I've been running Kafka on Kubernetes without any major issue for a while now; however, I recently introduced a cluster of Cassandra pods and started having performance problems with Kafka. Even though Cassandra doesn't use page cache like Kafka…
kellanburket
  • 12,250
  • 3
  • 46
  • 73
5
votes
2 answers

caches_page :all

Is there any way to tell Rails 3 to cache all pages in a given controller without having to list them all when calling caches_page? I tried caches_page :all, but it doesn't work.
Shlomo Zalman Heigh
  • 3,968
  • 8
  • 41
  • 71
5
votes
2 answers

the linux page cache flush order

There is page cache before we write data to disk. So if I have two operations. write(fileA) write(fileB) Then if the system is suddenly shutdown. We don't initiative call the sync() call. I want to know if it is possible that the data we wrote to…
baotiao
  • 775
  • 6
  • 20
4
votes
2 answers

When does Rails 3.2 use the pages that it caches to disk?

In an old Rails project page caching works as I expect from reading doc online, in Rails 3.1 / 3.2 it does not work the same way. It appears like Rails writes the pages to disk but never uses them (and so I assume it's caching pages in…
user572896
4
votes
2 answers

Display customer specific information on product detail page - what about the caching?

We want to display customer (actually customer-group) specific information on product detail pages in Shopware 6. There seems to be the HTTP cache and we are afraid that the page would be cached if a specific customer group displays the page and the…
Alex
  • 32,506
  • 16
  • 106
  • 171
4
votes
2 answers

Page Caching with Memcached

I am using Memcached in my Ruby on Rails 3 app. It works great with action and fragment caching, but when I try to use page caching, the page is stored in the filesystem instead of in Memcached. How can I tell Rails to use Memcached for page caching…
Shlomo Zalman Heigh
  • 3,968
  • 8
  • 41
  • 71
4
votes
2 answers

Is it possible for a userland process to handle OOM error in linux?

Suppose I've disabled all the oom related features(no OOM killer). A process has occupied all the available memory and it's still trying to read some bytes from a mmapped disk file, which is not in any page caches. Will this process get a OOM signal…
Amos
  • 3,238
  • 4
  • 19
  • 41
4
votes
0 answers

Difference between Rack::Cache and page caching

We are currently updating our sites at work, and I am responsible for choosing/designing our caching strategy. Our sites are all article based magazine sites, however some of them have a user system for restricted articles that needs…
jokklan
  • 3,520
  • 17
  • 37
4
votes
2 answers

Page cache limit

I'm using Ubuntu with kernel 3.2.1, x86_64. I'm trying to benchmark a file system, and I want to limit the page cache size to avoid the file system cache taking up too much RAM, which would obviously improve performance (but would not reflect the…
user331398
  • 179
  • 2
  • 9
4
votes
1 answer

Rails page caching expires_in

In an arbitrary Rails controller will the line below work? caches_page :show, :expires_in => 1.days I use memcached, but am confused by how page caching works. Does it use the file system or will it put the pages in memory with memcached? EDIT: it…
TTT
  • 6,505
  • 10
  • 56
  • 82
1
2 3 4 5 6 7