Where is cache placed in a computer

Hi,
Where exactly is a computer cache placed. Please suggest a good article on cpu cache.
Can i determine the speed of cache/RAM/disk on my laptop through some software ??
Also can one programmatically store data in cache ?
Normally we can use program to store data in RAM or disk. But is there an alternative to this ??

Thanks
Rohit BajajAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mal OsborneAlpha GeekCommented:
CPU cache, in contemporary systems is usually on the CPU chip itself.
Lots of benchmarking software is out there. CPUID is pretty good for reading CPU details, and free. https://www.cpuid.com/
Data in cache cannot be directly manipulated. If you were really smart and had a lot of time to waste, it MAY be possible to load a particular pattern of bits into cache, but it would be a tedious and pointless exercise.
If you have a program running, and it keeps reusing a small about of data repeatedly, it will be automatically kept in cache. That is how  a cache works.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mal OsborneAlpha GeekCommented:
Here is   a pretty good, more general benchmark program.

https://www.sisoftware.co.uk/
SnAkEhIpSCommented:
Believe in Mal.
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

SnAkEhIpSCommented:
That one somewhat opens the nose. Here is an abstract from the IEEE and you can delve as deep as you like if you pay them: https://ieeexplore.ieee.org/document/6763007/
andyalderSaggar maker's framemakerCommented:
CPU die
The L3 cache is to the right in this image of a 6 core CPU, L2 cache are the purple squares and I think the L1 are the yellow squares.
The colours are from diffraction of light since the memory cells generate a repeating pattern. The actual processor cores appear multi-coloured because they do not have repeating patterns.
Gerald ConnollyCommented:
Please give us something me background on the reasons for this question?
RAM and cache are a complicated dance
Gerald ConnollyCommented:
It depends on what Cache you are talking about
The CPU uses multiple cache's (cachi?) for instruction and data
Disk I/O usually involves multiple cache's - Cache in the OS, Cache in RAID controller (if using RAID), Cache in Disk itself
Network Traffic similar to Disk, cache in OS, cache in adapter, cache in switches
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.