Questions tagged [cpu-cache]

High speed RAM which is used by the computer processor to store often-used operations for the purpose of taking less time to perform large computational tasks

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 views

Is there one way to view cpu opcache parameter infos like size or associativity in linux?

I recently use perf to benchmark the program. It has one event de_dis_uops_from_decoder.opcache_dispatched which shows "Count of dispatched Ops from OpCache." (here is the related source ...
zg c's user avatar
  • 21
0 votes
1 answer
198 views

Multicore multiprocess performance issue on Linux ARM environment

I am developing a Linux application on 4-core ARM CPU. There are two processes in the application and I allocated each process to the cpu like below. core1 : process1 (GUI) core2-4 : precess2 (...
Yusuke Kadowaki's user avatar
13 votes
4 answers
6k views

Is whatever I see on the Internet temporarily present in the RAM?

Whatever I browse on the Internet, whatever page, is stored in the browser cache on my HDD. The browser cache is stored in the Temporary Internet Files folder on the C drive on the HDD. But was it ...
Yashveer Singh's user avatar
2 votes
3 answers
4k views

How the CPU determines whether to put data in L1i or L1d

How does CPU decides what cache to use to store data just retrieved from memory? As far as I know the smallest unit of memory that CPU can access (read or write) is 64 Bytes (x86_64, DDR3/DDR4) which ...
turbocoder's user avatar
2 votes
1 answer
576 views

Can one core perform several operations/instructions during one tick (because core has different execution units)?

A core has its own execution units and load/store buffers (additional "cache" - in addition to L1). Do those execution units have their own registers? Do cores also have their own dedicated registers?...
Code Complete's user avatar
1 vote
0 answers
37 views

How a program is executed on a CPU with 3 level of caches? [closed]

We have a system optimization problem that requires a clear workflow of the execution of a CPU. How does a modern CPU (e.g. Intel Xeon) with multiple levels of caches execute a program originally ...
logan_white's user avatar
6 votes
1 answer
2k views

How is the micro-op cache tagged?

According to Real World Technologies’ article on “Intel’s Sandy Bridge Microarchitecture”: “Sandy Bridge’s uop cache is organized into 32 sets and 8 ways, with 6 uops per line, for a total of 1.5K ...
Lewis Kelsey's user avatar
5 votes
3 answers
3k views

Do process switch between different cores?

Will a process switch between different cores to increase performance? If the process does jump between cores, which components are shared across cores? L1-L3 cache, registers or memory?
FunctionBlock's user avatar
1 vote
0 answers
225 views

"Missing" L3 Cache in Opteron 6274 on Windows Server

I have 4x AMD Opteron 6274 CPUs in an HP DL585 G7 server. Windows Server 2016 only shows these CPUs as having 12MB ea. of L3 cache, although every source on the internet says they should have 16MB (...
C.P.'s user avatar
  • 11
-1 votes
1 answer
49 views

From which memory do CPUs actually read data?

In accordance with my own understanding, for data to be processed by CPU, it should be placed in RAM, in the meantime CPUs themselves have cache memory, that is also used to access data. It's a pretty ...
The Dreams Wind's user avatar
-2 votes
2 answers
788 views

Direct-mapped cache: how to determine address decomposition

Let's assume I have a 32 bits addressable memory and a 4 kib direct-mapped cache. Let's say that every entry (line) of the cache is composed of a unique word (32 bits). We can infer that the index's ...
Arthur Feldman's user avatar
1 vote
1 answer
583 views

Memory Caches - Sizes of individual levels

I was just wondering when a program such as CPU-Z or CPU-ID detects your cache levels and it says, for example: L1 D-Cache Size: 16Kb "x 8" (4 way set associative) L1 I-Cache Size: 64 Kb "x 4" (2-way ...
Tyler's user avatar
  • 13
7 votes
1 answer
24k views

What does L4 cache hold on some CPUs?

All modern multi-core CPUs have at least a three-level cache (refer to Why do we need multiple levels of cache memory?). L1 is the fastest and smallest, L2 has slightly more latency but is larger, ...
MathuSum Mut's user avatar
0 votes
0 answers
82 views

What software can write to Cache memory?

I was working through a Higher Computing past paper and the following question came up Describe a situation where the cache memory would not improve the processor’s performance (1 mark) The ...
Kerr_Max's user avatar
  • 179
1 vote
0 answers
225 views

How to force MS word to "cache" a large doc —while opening? (And not after beginning working on it)

I am working with large documents which (probably) requires word to "cache" large amount of data. So it freezes, (high CPU, fan) during few minutes, after few minutes of editing. The freezing probably ...
JinSnow's user avatar
  • 784
-3 votes
2 answers
419 views

Is it possible to run Windows 98 SE from L3 cache with no RAM installed?

Modern CPUs can have L3 cache in the range of tens of megabytes (e.g. 24MB). W98SE requires at least 16MB of RAM to run (24MB recommended). Is it possible to use the L3 cache as RAM, without any ...
SoniEx2's user avatar
  • 2,597
0 votes
1 answer
347 views

which one of these units is not located in the microprocessor?

I'm doing a test on general computer science and I think the answer sheet is wrong. The question is as follows: which one of these units is not located in the microprocessor? 1) Cache memory ...
Sepideh Abadpour's user avatar
1 vote
0 answers
423 views

Is ARM PL310 only in Cortex A9 processor?

I know that ARM Cortex A9 processor can be equipped with PL310 cache controller. However, I'm not sure if other ARM processors may support PL310 cache controller? I searched Cortex A7, A53, and A57, ...
Mike's user avatar
  • 121
1 vote
0 answers
2k views

L3 data cache ECC error

I happened to have a terminal window open in Linux (Debian) and, as I was browsing the web, I heard a beep so I looked to see what happened and I found the following message in the terminal window: ...
f.ardelian's user avatar
0 votes
0 answers
1k views

How many bits are in the address field for a directly mapped cache?

Here is the problem I am working on: The Problem: " A high speed workstation has 64 bit words and 64 bit addresses with address resolution at the byte level. Assuming a direct mapped cache with 8192 ...
committedandroider's user avatar
0 votes
2 answers
1k views

My L3 cache size showing zero in wmic (cmd)

I purchased a desktop system which has 6 MB Cache. When I checked the L3 cache in the BIOS I didn't find a L3 cache. I the tried to use another method in from the command line to confirm the L3 cache ...
Abdul Rehman's user avatar
-2 votes
1 answer
566 views

How is addressing done of L1/L2/L3 cpu caches vs. ram allocation? [closed]

As cache sizes on cpus increase, how is it managed vs. RAM? Do considerations need to be made while making an application to ensure you're getting the most out of your Cache or is that completely at ...
Volumetricsteve's user avatar
18 votes
3 answers
3k views

When is CPU cache flushed back to main memory?

If I have a CPU with two cores, each core has it's own L1 cache, is it possible that Core1 and Core2 caches a same part of memory at the same time? If it is possible, what the value of the main memory ...
CarmeloS's user avatar
  • 293
2 votes
0 answers
185 views

Missing L1 cache characteristic

I wrote simple program (with help of Igor Ostrovsky's article 'Gallery of Processor Cache Effects') which supposed to examine levels of cache in my processor. According to Coreinfo provided by ...
user2551229's user avatar
0 votes
4 answers
4k views

Is too big cache a bad idea? [duplicate]

I am going to pack a new computer for myself and I thought about Xeon series as main processor. Xeons tend to have very big caches even up to 32MB. And here is a question: Is it a big advantage to ...
oneat's user avatar
  • 3,271
3 votes
1 answer
3k views

In L1, L2 cache and DRAM, is sequential access faster than random access?

In L1, L2 cache and DRAM, is sequential access faster than random access because of the possibility to establish read-ahead? I know in HDDs this is of-course faster in orders of magnitude.
Binary's user avatar
  • 33
-1 votes
1 answer
366 views

Why is loading chunks of data into the cpu cache an efficient way of processing?

I know that loading instructions into the cache increases the speed of processing overall. Is the answer to the question connected to organization and speed?
user3324945's user avatar
1 vote
0 answers
2k views

Syslogd: hardware error

The machine has been sending these messages to the terminal, paired with beeps from the speaker on the motherboard. These messages appear every 5 minutes, sometimes naming CPU2, sometimes CPU3. ...
SillySyslogd's user avatar
14 votes
1 answer
19k views

Processors cache L1, L2 and L3 are all made of SRAM?

Are Processor caches L1, L2 and L3 all made of SRAM? If true, why L1 is faster than L2 and L2 is faster than L3? I did not understand this part when I read about them.
Acaz Souza's user avatar
1 vote
2 answers
19k views

Tradeoff: CPU Clock Speed vs Cache [closed]

If you had two choices in processors, one with 2.7GHz @ 6M cache, and the other with 3.0GHz @ 4M cache, which do you choose? This is not a shopping question, what I'm looking for is a general rule ...
Soviero's user avatar
  • 325
0 votes
1 answer
278 views

Is CPU cache (L1 - Ln) equal to TLB

If we are talking about CPU cache. Is Ln synonym for saying 'TLB (translation lookaside buffer) of type Ln' or does Ln include also somethin else than just TLB?
ps-aux's user avatar
  • 3,715
6 votes
1 answer
19k views

Why do we need multiple levels of cache memory?

In general a cache memory is useful because the speed of the processor is higher than the speed of the ram (they are both increasing in speed but the difference still remains). So reducing the number ...
Kami's user avatar
  • 165
2 votes
2 answers
12k views

Too much RAM "in cache"

I am having the following problem: I am having a completely new Notebook with 8 GB RAM and Windows 8. I do not use software that requires a lot of RAM and I do not have a thousand programs running. ...
Xin Wang's user avatar
  • 155
15 votes
1 answer
37k views

Why is SRAM faster than DRAM?

In modern multi-core processors, the processor caches (L1,L2 and L3) are made up of SRAM with decreasing speeds(L2 caches are higher speed SRAM than L3 caches which is a cost trade-off). The main ...
Geek's user avatar
  • 1,541
2 votes
0 answers
106 views

Back of the envelope calculation for speed of matrix multiplications [closed]

I'm trying to develop an intuition for how feasible/scalable machine learning algorithms are. The dominant cost is always matrix multiplications, but there seem to be no readily Google-able resource ...
AatG's user avatar
  • 131
0 votes
1 answer
191 views

Is it a big downside for a cpu to not report the L1 Cache?

I am reading information for a processorAMD FX-8320 Eight-Core My primary question is why the L1 cache is not in the information. Would this imply that it does not have registers that it can access ...
Leonardo's user avatar
  • 197
6 votes
2 answers
59k views

How can I get to know CPU cache size on Windows 7

WMIC CPU command displays a lot of information about the CPUs on a machine. It only displays the information about L3 cache, is there a way to figure out the size of L1 and L2 caches using a command ...
coder_bro's user avatar
  • 161
14 votes
2 answers
28k views

L2 and L3 Cache Difference?

While I understand that the computer cache is: A CPU cache is a cache used by the central processing unit of a computer to reduce the average time to access memory. The cache is a smaller, faster ...
L84's user avatar
  • 3,831
2 votes
2 answers
3k views

meaning of files in cpu folder of linux

What's the meaning of files in the folder /sys/devices/system/cpu/cpu0/cache/index0? I see these files in the folder: coherency_line_size number_of_sets shared_cpu_list size ...
worldterminator's user avatar
0 votes
1 answer
180 views

how to make caches with equal bitline and wordline lengths?

We know to minimize delay of cache structures in microprocessors, the bitline wire length and wordline wire length should be relatively the same. So in other words, cache modules in processors should ...
aminfar's user avatar
  • 139
1 vote
1 answer
2k views

shared L2 in multicore: regarding miss per kilo instruction (MPKI) counting

I am using multicore simulator marss http://marss86.org. I am using 4-core simulation, with shared L2 cache. Each core is run for say, 100M instructions. Since different cores progress at different ...
user984260's user avatar
2 votes
1 answer
1k views

CPU L3 cache miss and hit ratio details

I am on a Linux server with Xeon X7560 CPU. How can I see the CPU L3 cache miss and hit ratio details?
Nikesh PL's user avatar
  • 123
8 votes
6 answers
40k views

Is the cache size or number of cores more important when weighing CPU performance?

I'm shopping for a laptop for my son to use for school, so it doesn't need to be a gaming machine. I've put together PC's from scratch before, but it's been a while. I've noticed that a number of ...
David's user avatar
  • 381
7 votes
2 answers
14k views

What is a processor cache?

I recently downloaded CPU-Z just to check things out, and saw a tab marked Cache on it. It shows what appears to be different memory sizes, and I have seen processors being advertised with an X sized ...
0 votes
1 answer
5k views

Size of L1 cache

Typically, how big is L1 cache today?
tony_sid's user avatar
  • 14k
1 vote
3 answers
20k views

Is Cache memory located in the CPU or at the motherboard?

I have a doubt whether cache memory is located in the processor or at the motherboard?
student's user avatar
  • 21
6 votes
3 answers
13k views

L2 Vs. L3 CPU cache speed and performance

In the past few years, looking at Intel CPUs, there has been a move from large size L2 cache to large size L3 cache. A lot of this is due to having more cores on the CPU and wanting to share the cache ...
thedrs's user avatar
  • 314
4 votes
2 answers
261 views

Which property of CPUs is good for what?

Back in the days clock frequency used to be THE criteria to compare CPUs (or perhaps you had to take into account whether it was a DX or SX). The world was simple back then, but in these fast evolving ...
erikric's user avatar
  • 353
43 votes
6 answers
53k views

Where exactly L1, L2 and L3 Caches located in computer?

Where exactly L1, L2 and L3 Caches Located in computer ? I know, we use Cache to increase performance by picking DATA and INSTRUCTIONS from Cache rather than Main Memory. Following are my questions ...
user avatar
0 votes
4 answers
3k views

Running programs in cache and registers

In my operating systems class we were shown a picture depicting a hierarchy of memory starting from most expensive and fastest at the top and least expensive and slowest at the bottom. At the very top ...
tony_sid's user avatar
  • 14k