Jump to content

More operating systems should run on RAM by default

Speaking from experience, I support this statement, because I've experienced having a hard drive being damaged (admittedly from improperly shutting down the computer). However, there are a few other advantages I can think of:

  • RAM is faster than ROM, so one can have some performance gains using it, at least for more basic tasks.
  • It might be more secure, especially if you run it off a USB so that the data doesn't remain within the machine at all times unlike a hard drive.
  • One can save storage space on other drives, because operating systems and updates can take up drive space unnecessarily.
  • If one is running the operating system from a USB, it's easier to replace it than a SSD or HDD if they suspect any signs of the storage mediums reaching their end of life stages.
  • If one needs to access files quickly from a USB, or even change how the system runs in the same manner, they can do so easily through USB OTG with a compatible smartphone and/or tablet.

Fortunately, this can be easily done with the Linux kernel, but are there any reasons as to why this isn't widely used? Are there any disadvantages to this? Do you think my points can be refuted?

Linus' earrings suit him

Please check out this thread: https://linustechtips.com/main/topic/659360-saints-row-2s-features/

 

Rizen and Vehga 2017

Link to comment
Share on other sites

Link to post
Share on other sites

 

 

Doesn't say much about OS but it lays out the pros and cons

 

Est. Completion: Jan 2017

i5 6600k (4.6Ghz) | Cryorig H5 Ultimate | Gigabyte Z170X Gaming 6 | ASUS Strix GTX 1070 | EVGA 2x8Gb 3200Mhz DDR4 | NZXT H440 Black/Red | 2x Samsung 850 Evo 500Gb Raid 0, Toshiba 1Tb HDD |

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, divided_throwaway said:

Speaking from experience, I support this statement, because I've experienced having a hard drive being damaged (admittedly from improperly shutting down the computer). However, there are a few other advantages I can think of:

  • RAM is faster than ROM, so one can have some performance gains using it, at least for more basic tasks.
  • It might be more secure, especially if you run it off a USB so that the data doesn't remain within the machine at all times unlike a hard drive.
  • One can save storage space on other drives, because operating systems and updates can take up drive space unnecessarily.
  • If one is running the operating system from a USB, it's easier to replace it than a SSD or HDD if they suspect any signs of the storage mediums reaching their end of life stages.
  • If one needs to access files quickly from a USB, or even change how the system runs in the same manner, they can do so easily through USB OTG with a compatible smartphone and/or tablet.

Fortunately, this can be easily done with the Linux kernel, but are there any reasons as to why this isn't widely used? Are there any disadvantages to this? Do you think my points can be refuted?

This is a statement made by someone who simply doesn't understand how pages work.  Its impossible to do this.

 

Another note, ROM is (typically) 100 times faster than RAM.  Its just ROM is more or less useless in day to day use.

Please spend as much time writing your question, as you want me to spend responding to it.  Take some time, and explain your issue, please!

Spoiler

If you need to learn how to install Windows, check here:  http://linustechtips.com/main/topic/324871-guide-how-to-install-windows-the-right-way/

Event Viewer 101: https://youtu.be/GiF9N3fJbnE

 

Link to comment
Share on other sites

Link to post
Share on other sites

Volatile storage doesn't have any protection from power surges or outages, whereas higher end HDDs and SSDs do. Some operating systems, such as Windows, also require more space that people have in RAM. While there are Linux distros that can be loaded entirely on RAM, they are small and typically created for specific purposes, such as system rescue or network penetration testing.

RAM is faster than HDD/SSD, but it is also more expensive per GB, and the performance difference of using RAM as storage is negligible.

USB drives are just as secure as hotswap or external HDD/SSDs. There are also various encryption tools out there.

Come Bloody Angel

Break off your chains

And look what I've found in the dirt.

 

Pale battered body

Seems she was struggling

Something is wrong with this world.

 

Fierce Bloody Angel

The blood is on your hands

Why did you come to this world?

 

Everybody turns to dust.

 

Everybody turns to dust.

 

The blood is on your hands.

 

The blood is on your hands!

 

Pyo.

Link to comment
Share on other sites

Link to post
Share on other sites

Corruption of files due to improper shutdowns can happen to USB drives as well so I don't see an advantage of doing that.

 

A USB is easier to replace than a SSD or HDD. Please explain, because the way I see it, I'll need to find another PC or someway to get into a clean OS to re-image my new USB drive because if I suspect that my current one is having issues, I'm certainly not doing the re-imaging off an OS booted from the problematic drive. With an internal drive, just unplug the old one, plug in the new one, and re-install your OS and programs.

Intel® Core™ i7-12700 | GIGABYTE B660 AORUS MASTER DDR4 | Gigabyte Radeon™ RX 6650 XT Gaming OC | 32GB Corsair Vengeance® RGB Pro SL DDR4 | Samsung 990 Pro 1TB | WD Green 1.5TB | Windows 11 Pro | NZXT H510 Flow White
Sony MDR-V250 | GNT-500 | Logitech G610 Orion Brown | Logitech G402 | Samsung C27JG5 | ASUS ProArt PA238QR
iPhone 12 Mini (iOS 17.2.1) | iPhone XR (iOS 17.2.1) | iPad Mini (iOS 9.3.5) | KZ AZ09 Pro x KZ ZSN Pro X | Sennheiser HD450bt
Intel® Core™ i7-1265U | Kioxia KBG50ZNV512G | 16GB DDR4 | Windows 11 Enterprise | HP EliteBook 650 G9
Intel® Core™ i5-8520U | WD Blue M.2 250GB | 1TB Seagate FireCuda | 16GB DDR4 | Windows 11 Home | ASUS Vivobook 15 
Intel® Core™ i7-3520M | GT 630M | 16 GB Corsair Vengeance® DDR3 |
Samsung 850 EVO 250GB | macOS Catalina | Lenovo IdeaPad P580

Link to comment
Share on other sites

Link to post
Share on other sites

 

8 minutes ago, Drak3 said:

Volatile storage doesn't have any protection from power surges or outages, whereas higher end HDDs and SSDs do. Some operating systems, such as Windows, also require more space that people have in RAM. While there are Linux distros that can be loaded entirely on RAM, they are small and typically created for specific purposes, such as system rescue or network penetration testing.

RAM is faster than HDD/SSD, but it is also more expensive per GB, and the performance difference of using RAM as storage is negligible.

USB drives are just as secure as hotswap or external HDD/SSDs. There are also various encryption tools out there.

I don't know, but hot-swappable HDDs/SSDs have become rare these days. The current USB standard does make up for it somewhat, but even that is slow compared to SATA, eSATA and M.2.

I'm wondering if drives will be protected if you still have the original files in ROM and you do not use the RAM by itself. Is flash storage also more immune to power surges as well?

Linus' earrings suit him

Please check out this thread: https://linustechtips.com/main/topic/659360-saints-row-2s-features/

 

Rizen and Vehga 2017

Link to comment
Share on other sites

Link to post
Share on other sites

"oh no, power went out, now I have to reinstall windows"

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, divided_throwaway said:

I haven't got into RAM drives yet; strictly speaking, all the storage will go in 

 

I don't know, but hot-swappable HDDs/SSDs have become rare these days. The current USB standard does make up for it somewhat, but even that is slow compared to SATA, eSATA and M.2.

I'm wondering if drives will be protected if you still have the original files in ROM and you do not use the RAM by itself.

If you have a backup in ROM, then you lose some benefit of RAMdisks, how much depends on the frequency of the backups.

What you've described has its uses, but general use, it isn't practical.

Come Bloody Angel

Break off your chains

And look what I've found in the dirt.

 

Pale battered body

Seems she was struggling

Something is wrong with this world.

 

Fierce Bloody Angel

The blood is on your hands

Why did you come to this world?

 

Everybody turns to dust.

 

Everybody turns to dust.

 

The blood is on your hands.

 

The blood is on your hands!

 

Pyo.

Link to comment
Share on other sites

Link to post
Share on other sites

Also memory cells are more sensitive than hard drives of flash memory (ssd),  bits can occasionally flip due to various reasons (cosmic radiation, interference from outside the computer, glitches in the power supply feeding the memory chips etc.

RAM can be used to speed up operating systems (and most modern systems already do this by default, using free memory as file cache) but it's not feasible to have operating systems be loaded in ram at boot and run from ram until shut down.

As for running from ROM, Microsoft tried that in the DOS days. They even had Windows 95 capable of starting from ROM. It didn't work well for lots of reasons and they abandoned it.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, mariushm said:

Also memory cells are more sensitive than hard drives of flash memory (ssd),  bits can occasionally flip due to various reasons (cosmic radiation, interference from outside the computer, glitches in the power supply feeding the memory chips etc.

RAM can be used to speed up operating systems (and most modern systems already do this by default, using free memory as file cache) but it's not feasible to have operating systems be loaded in ram at boot and run from ram until shut down.

As for running from ROM, Microsoft tried that in the DOS days. They even had Windows 95 capable of starting from ROM. It didn't work well for lots of reasons and they abandoned it.

One can use ECC memory, but I don't think that's cost effective for the common user.

Linus' earrings suit him

Please check out this thread: https://linustechtips.com/main/topic/659360-saints-row-2s-features/

 

Rizen and Vehga 2017

Link to comment
Share on other sites

Link to post
Share on other sites

More operating systems should run on lasers because lasers are light and light is fast and fast is good

Edit: good is great

Edited by mok

Photography / Finance / Gaming

Link to comment
Share on other sites

Link to post
Share on other sites

I ran Ubuntu on a flash drive, but it became too slow after a while, and I feared they would prematurely wear out. I run a version of Puppy Linux called Tahrpup. The only problem I have with it is that its file system can't be used by other Linux distros.

Linus' earrings suit him

Please check out this thread: https://linustechtips.com/main/topic/659360-saints-row-2s-features/

 

Rizen and Vehga 2017

Link to comment
Share on other sites

Link to post
Share on other sites

I don't think I'm following your train of thought here... are you trying to suggest that the OS gets installed directly to RAM and only ever stored there?  What if you want to turn off the computer?

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, Ryan_Vickers said:

I don't think I'm following your train of thought here... are you trying to suggest that the OS gets installed directly to RAM and only ever stored there?  What if you want to turn off the computer?

spend 2 hours reinstalling the OS every time... duh 
 

Photography / Finance / Gaming

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, Ryan_Vickers said:

I don't think I'm following your train of thought here... are you trying to suggest that the OS gets installed directly to RAM and only ever stored there?  What if you want to turn off the computer?

This is what im thinking too.

Link to comment
Share on other sites

Link to post
Share on other sites

We used to have computers that ran mostly from ROM, Acorn Achimedes for example. The primary problem with it was the inflexibility of program and operating system updates as well as the severe restrictions on application sizes allowed as ROM is considerably more expensive than a hard drive. In the end price/performance won out with the PC.

Link to comment
Share on other sites

Link to post
Share on other sites

46 minutes ago, divided_throwaway said:

I ran Ubuntu on a flash drive, but it became too slow after a while, and I feared they would prematurely wear out. I run a version of Puppy Linux called Tahrpup. The only problem I have with it is that its file system can't be used by other Linux distros.

A flash drive is non volatile memory.........RAM is.

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, divided_throwaway said:

I ran Ubuntu on a flash drive, but it became too slow after a while, and I feared they would prematurely wear out. I run a version of Puppy Linux called Tahrpup. The only problem I have with it is that its file system can't be used by other Linux distros.

ECC doesn't actually cost that much more. Just got 8GB for 35ish dollars.

Link to comment
Share on other sites

Link to post
Share on other sites

11 hours ago, bobhays said:

ECC doesn't actually cost that much more. Just got 8GB for 35ish dollars.

The motherboard that can support it will cost more 

 

13 hours ago, Ryan_Vickers said:

I don't think I'm following your train of thought here... are you trying to suggest that the OS gets installed directly to RAM and only ever stored there?  What if you want to turn off the computer?

Let's just say yes, probably there. 

Linus' earrings suit him

Please check out this thread: https://linustechtips.com/main/topic/659360-saints-row-2s-features/

 

Rizen and Vehga 2017

Link to comment
Share on other sites

Link to post
Share on other sites

42 minutes ago, divided_throwaway said:

Let's just say yes, probably there. 

 

2 hours ago, Enderman said:

A flash drive is non volatile memory.........RAM is.

Basically, unless you want to install Windows over and over again every day, don't bother think about it. 

USEFUL LINKS:

PSU Tier List F@H stats

Link to comment
Share on other sites

Link to post
Share on other sites

ahhh yes great idea, let's store the OS on the RAM, the part of the system that gets completely wiped clean when turned off or on again.

 

read that sentence and you will know the biggest problem of RAM as normal storage.

May the light have your back and your ISO low.

Link to comment
Share on other sites

Link to post
Share on other sites

What do you mean by "run on RAM"? The phrase itself makes no sense.

We don't install OSes on RAM because

1) We would require a lot of RAM. A fresh copy of Windows is like 20GB, and it just keeps growing with updates and other things.

2) RAM gets erased when power is cut. So if you installed your OS on RAM then you would have to reinstall it every time you turned your computer off.

 

Modern OSes, such as Windows 7 and up (might even be Windows Vista) loads all the components needed to work into RAM at boot. You can try this if you want by turning your computer on, and then unplugging your hard drive. The computer will continue to work, but you will get an error when you try to access something that was stored on the drive you unplugged (so you can't launch a game for example, or start a video).

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, LAwLz said:

What do you mean by "run on RAM"? The phrase itself makes no sense.

We don't install OSes on RAM because

1) We would require a lot of RAM. A fresh copy of Windows is like 20GB, and it just keeps growing with updates and other things.

2) RAM gets erased when power is cut. So if you installed your OS on RAM then you would have to reinstall it every time you turned your computer off.

 

Modern OSes, such as Windows 7 and up (might even be Windows Vista) loads all the components needed to work into RAM at boot. You can try this if you want by turning your computer on, and then unplugging your hard drive. The computer will continue to work, but you will get an error when you try to access something that was stored on the drive you unplugged (so you can't launch a game for example, or start a video).

 

I don't think he knew that RAM gets cleared when the PC turns off Or maybe he was playing pretend.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Fluxus said:

I don't think he knew that RAM gets cleared when the PC turns off Or maybe he was playing pretend.

I was just probably thinking too much of Linux distros that run off of RAM, some are still bound to the ROM.

Linus' earrings suit him

Please check out this thread: https://linustechtips.com/main/topic/659360-saints-row-2s-features/

 

Rizen and Vehga 2017

Link to comment
Share on other sites

Link to post
Share on other sites

Ram is far more expensive than solid state storage, by about two orders of magnitude. Secondly, when you power off the system (pray it doesn't shut down improperly) it will need to save everything to a storage drive anyway and reload it all again when you turn it on, significantly lengthening the process. Third, you're basically begging to lose your data.

9 minutes ago, divided_throwaway said:

I was just probably thinking too much of Linux distros that run off of RAM, some are still bound to the ROM.

No they don't, only live images and a few ultra small distributions do that and both will either lose all changes or save them to storage when shut down. Live images also still use their support medium for a lot of things, they only load the kernel and the bare essentials on RAM. Also, ROM does not mean storage.

8 hours ago, TheRandomness said:

Basically, unless you want to install Windows over and over again every day, don't bother think about it. 

Windows aside, there are ways for the OS to load a big part of itself into ram at startup, but you run into the tradeoffs mentioned above.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×