Skip to main content

Questions tagged [caching]

1 vote
0 answers
56 views

In docs sites, blogs, tools and on StackExchange, I often see various caching terms used interchangeably (though I suspect they differ). Is there a theoretical difference between these terms: ...
lonix's user avatar
  • 111
0 votes
1 answer
94 views

C++ code: int main() { short int arr[4][4]; for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { arr[i][j] = i+j; } } return 0; } Is there ...
Luke's user avatar
  • 1
1 vote
1 answer
79 views

I'm working my way on a problem which requires me to store elements in fixed 4KB-sized pages on an SSD. Each page is requested once for some computation on its elements, and then the CPU requests for ...
Shikhar Jaiswal's user avatar
0 votes
1 answer
439 views

I was looking at paging in OS. It seems like there are two concepts with the same name but with different features, and I wanted to be clear about those, Paging and page cache. Before I thought paging ...
sy choi's user avatar
1 vote
2 answers
150 views

There are some different cache replacement policies could be implemented in CPU. As far as I know, ones have better hit ratio on specific type of code than others, but if that type changes (for ...
RedMurloc's user avatar
1 vote
0 answers
200 views

I tried referring a few material (videos on youtube and this link as well), but I still couldn't wrap my head around the concept. My (brief) understanding of the Virtually addressed, Physically ...
mahesh Rao's user avatar
4 votes
0 answers
71 views

I was trying to look for docs and libraries about a cache akin to RFC 5861 where objects can be in three age states, fresh and expired (as usual), and a third where it can be returned immediately (as ...
Nick T's user avatar
  • 141
1 vote
0 answers
191 views

Direct map cache uses a valid bit to effectively know if any data is present to a specific cache-slot (aka line/index). If this is the only use of this bit, then I believe, once a line has v-bit set, ...
KGhatak's user avatar
  • 229
1 vote
0 answers
369 views

I am currently reviewing for my exam in computer architecture. I've run into a question in the old exam sets that I can't really figure out. The question is regarding caches, more specifically block ...
Magnus Lund's user avatar
-1 votes
1 answer
12k views

How can I calculate the number of cache lines per set or the cache size with the given information? m (number of physical address bits): 32 C (cache size): unknown B (Block size in bytes): 32 E (...
schererdavid's user avatar
6 votes
1 answer
259 views

In a report on an open-source separation kernel (Muen kernel) I was reading, in the future work section, it says that cache coloring can be implemented to prevent covert/side-channel attacks. It is ...
nj2237's user avatar
  • 163
0 votes
0 answers
1k views

Assume a computer architecture with 32 bit address.The system has been designed with 1MB cache which comes with 64KB cache line(cache block size). 1.What is the maximum main memory capacity this ...
Kalana Mihiranga's user avatar
0 votes
1 answer
4k views

The following comes from Patterson & Hennessy Computer Org. and Design (5th ed., p. 390): How many total bits are required for a direct-mapped cache with 16 KiB of data and 4-word blocks, ...
Anton Rasmussen's user avatar
2 votes
2 answers
635 views

I know that the clock speed is determined by the slowest stage within the processor (usually fetch) because one clock cycle will take as much time as the slowest pipeline stage to ensure everything is ...
Fady's user avatar
  • 33
2 votes
1 answer
313 views

I know how Translation Lookaside Buffers work, and i also know we use them to improve the performance of data/program access by storing the recent page numbers - frame numbers in a memory cache. The ...
hexpheus's user avatar
  • 133

15 30 50 per page