eli5: How does storage impact computer performance?

528 views

I was at work and some computers that were nearly maxed on storage were basically unusable. This doesn’t make sense because my understanding was RAM was the storage the computer uses to run tasks and the storage was for things downloaded

My guess would be that the storage is used for ‘long term’ RAM, something that will be needed for a while anyways but idk. Outside of that I can’t really think of anything else

In: 10

11 Answers

Anonymous 0 Comments

Computers will store the stuff that won’t fit into RAM on the hard drive in a Paging File (windows) or Swap (Unix/Linux). You don’t want to get over 95% drive utilization because it is now having to shuffle drive storage around a lot more than if it could just write anywhere it wants.

Anonymous 0 Comments

If you are taking about disk storage, older platter hard drives that have to actually move a plate and read head to access data can degrade in performance over time and with increased data due to something called fragmentation.

The files on your computer aren’t monolithic entities. They can be broken down into chunks and retrieved and put together again later. When you start running out of disk space, the size of each empty space may be smaller than the total file size of your file, and it will get split up and stores in pieces, which are slower to retrieve.

Imagine you had to store 10 balls. If you could put them all in one bucket in a single room, then it’s pretty quick for you to grab them when you need them. If you don’t have anywhere that can fit 10 balls, you have to put 2 in your kitchen, 1 in the bathroom, 2 in the bedroom, etc. Then, when you need to get them all, you spend a lot of time running around your house collecting all the balls before you can use them

Anonymous 0 Comments

You’re right about how RAM vs disc storage is used – but there’s more to it.

First off, the computer only has a certain amount of RAM available to use. While newer computers have a lot more than earlier versions, newer computers are also better at juggling multiple tasks. Each of those juggled tasks needs memory for their operations.

Depending on the task being done, the computers master controller in charge of overseeing all those other parallel tasks may need to free up some space in RAM. When it does this, it needs to store the current state of the RAM for whatever process it’s taking it from.

So think of it like this: RAM is the space on your desk where you can put your papers in order to work. The disc is the filing cabinet beside your desk, where your papers are stored when you’re not using them.

In order to do more work, you need more desk space. You neatly organize some papers on your desk not currently needed, open the file cabinet, find the right place for them by referring to a master list of “where things go”, put the files away, then you look up the files you need now, pull them out, and put them on your desk.

If your desk is really full it’s not great but if your FILING cabinet is really full – and worse if your filing cabinet is really full and a disorganized mess – putting things away and pulling new things out takes longer. Full enough and you can spend more time moving papers around than you do working on them.

More space helps (both more RAM *and* more disc space to an extent in each case) – so does keeping your drive neat and well organized – so clean up your trash, defrag your hard drives, and also reboot periodically (daily) to ensure the desk isn’t loaded up with stuff you don’t actually need but is kinda stuck hanging around anyway.

Anonymous 0 Comments

In addition to what others have said: RAM is temporary storage. Data in RAM goes away if the computer crashes, power fails, a program aborts, etc. Storage systems, whether they use HDDs or SSDs, are designed to store far more data, and to keep it around for as long as you want.

However, while fast, storage systems are not infinitely fast. Suppose you are running a job to process payroll. Every employee’s data has to be accessed. Payroll records have to be written to storage where they will last. But the amount of actually computing on that data is pretty small. So this job’s speed will likely be limited by how fast the employee time-card data can be read from storage and how fast the payroll records can be written to storage.

Even if the total amount of data you need to process is small enough that it could be in RAM, that isn’t where the data is, and the process of reading it into RAM will take some amount of time.

Anonymous 0 Comments

There are multiple meaning of storage.

RAM would be primary storage, directly accessible from the CPU and fast. Most primary storage today is volatile which mean the information is lost when not powered

A hard drive or an SSD would be secondary storage, it is not directly accessible by the CPU data need to be copied to primary storage. It is a lot slower than the primary storage but also cheaper so you can have more of it. Secondary storage is also non-volatile so information is retained without constant electrical power.

Offline storage is any type you can remove like a CD, USB memory, SD card etc IT requires a human to connect it.

There is tertiary storage too, which would be removable storage with a robotic mechanism like a tape library. This is not consumer produce but are used by companies.

Storage can mean just a single type or a combination of types depending on context and person. I would never call RAM just storage, I would only use of for secondary storage and below that but it is not uncommon that people use the word storage for RAM.

So the statement “the computer has run of storage” can have multiple meanings and it is hard to know which is used.

A computer gets slow when the program needs more RAM than is available. You can use secondary storage as fake ram often called virtual memory. The problem is the speed will be slower by a factor of 100-1000 times. This is likely what you talk about.

It is just not that the program needs more RAM. The operation system will recently access files on the secondary storage in RAM so you can read and write to them faster. If programs use up all RAM there is no left for this disk cache and it has to be written to and from the secondary storage all the time. It is not just Secondary storage that is faced like that. Programs that access data after the internet can user RAM to cache that data too.

The ram requirement then increases with new updates of suotware. This is because more features are usually added and the programmers assume people have more RAM. If you do use more RAM you can make stuff fast for some applications.

So update so software, will both the operation system and software you install usually increase RAM usage- More and more programs tend to be installed over time too. Lots of them have parts that are always on this alos increases RAM usage

The best upgrade of a computer that has become slow today is to get more RAM and to upgrade the disk the operation system is on to an SSD. CPU performance has not increased that much in the last decade. So enough RAM and an SSD instead of an HDD make a huge difference. It is likely not enough to play the latest game but for more everyday usage that in large part will be web browsers that require a lot of RAM today the difference or computers made today is not that large.

Anonymous 0 Comments

RAM is short for random access memory, it’s very fast, but the contents go away when the power is cut. It’s temporary.

The hard drive, or more common now, solid-state drive is permanent storage that holds your files, programs, and the operating system.

This storage is much slower than the RAM, so you want to load from it only when needed for performance reasons.

When the system runs out of RAM, it will use what is called a swap, or page file. This is stored on the hard drive or solid-state drive, and it allows the operating system to swap out idle parts of RAM to that file, recalling it when needed.

This is generally done as a last resort because of how much slower permanent storage is compared to RAM.

Anonymous 0 Comments

This subreddit sure has turned into “explain in painstakingly ridiculous detail that a 5 year old would never understand.”

Your computer is constantly doing things which don’t happen in the RAM, but need the hard drive (including opening things up into the RAM). You are absolutely correct, though, that many computers can and do run for a very long time without any free disk space.

It’s just that random, bloated desktops don’t do so well in that way because they have way too much stuff happening at the same time.

Anonymous 0 Comments

There are 3 different levels of memory for your PC to use.
The Main Storage (Hard Drive or SSD) which holds data even when the computer is off. Depending on the medium, motherboard…this can range from very slow to not that slow and can hold as much as you want depending on how many drives you have.

The secondary Intermediate storage is your RAM. It only holds data when the computer is on, and applications access RAM when it knows the data it needs has already been loaded there. If it’s not there, the data is pulled from the HD and placed there for convenient use. This ranges from pretty dang fast to REALLY pretty dang fast. This can range from not enough to a n awful lot depending on your motherboard and RAM choice.

Finally, you have the cache. This is data that the CPU needs NOW and is in fact where data from RAM goes when the CPU accesses it. It memory stored directly on the CPU and is so fast it’s effectively instantaneous (compared to the other mediums). The issue is it isn’t very large and even the cache has several levels, with each level being faster, but smaller.

The way your HD or SSD effects performance is when a program is constantly having to access data that is NOT in RAM. Files your application is making/editing for example, databases, things like that will all remain in the main storage and thus slow things down.
The coding of applications can make things faster/slower. For example in most programming languages, arrays of thinks like integers/strings/floats can be directly stored in the cache in what’s called the heap. If programmed to use this, an application can have extremely fast data-access times.

It’s more complicated to program though so many applications do not overly focus on optimizingb performance to that level however.

Anonymous 0 Comments

Things stored in ram come from somewhere, and those things are often served up from the computer’s storage drives. Desktop backgrounds, text programs, web browsers, etc. Running things also frequently saves items to hard drives, such as when you download a picture. If your storage drives are slow, even if you have enough RAM, you’ll see speed issues.

If your computers are using Hard drives, slowdowns can be caused by fragmentation. Hard drives are divided into physical magnetic disks that are read by a moving arm. As you create and delete files on the drive, free areas left over may not be the right size for all new files. Files can then be split over multiple smaller sectors, but since an arm needs to physically move and the disks need to spin, fragmented files take longer to read and write as they’re not right next to each other physically. Defragmentation can fix this, as files are moved around to be contiguous again.

If your computers are using SSD’s, though they’re quite fast, a nearly-full SSD still has problems. As the bits within an SSD can be worn down over time, files are written in such a way that every bit is used at the same rate, basically one after the other in sequence. If a new file cannot fit contiguously in the next sequence of bits, data is copied forward so that the new file can fit. As an SSD fills, it becomes less likely that there is a contiguous area of the SSD large enough for new files, so the Garbage Collector must move data around much more often, which can cause noticeable slowdowns at ~20% free space or less.

Anonymous 0 Comments

When your hard drives are stuffed to the brim and it’s degrading performance, it’s not the storage itself, but what’s stored on it.

If you have a shit ton of programs installed on the storage that are all running at the same time, they will degrade overall performance. If you have a bunch of photos stored on your hard drive, it won’t affect your computer’s performance at all!