Loading a large Linux distribution such as Ubuntu into mapped partitions on RAM such as DDR4 Is there any way of booting from SSD/USB/NVMe/eMMC to have a Linux OS, such as Ubuntu, plus applications, services and containers load entirely into partitions created in RAMs such as DDR3 or DDR4. This should ideally allow for use of other partitions, on say SSD or HDD for file storage regardless of which OS loads, probably FAT32 or exFAT for cross-OS support.
This is because even large Linux distributions use a few tens of gigabytes, and many users want to use the same hardware for lots of distributions, e.g. home entertainment, software development, gaming, media production, office productivity, where users could select their environment from say a boot-loader or different USB keys, and run that environment entirely in RAM where user files reside on SSD's or HDD's, and there is a shut-down process, manual procedure or automated syncing of files in RAM archiving back to the original non-volatile drive.
For example, you could have a customised Steam-based OS for gaming, switching to a media-streaming OS for relaxation or parties, switching to a office productivity OS and then an Education OS, from either USB keys or SSD partitions or similar, sharing user folders among different volatile-to-non-volatile loads of differing OS's. A large cheap RAID array or single SSD could function to store files such as games, files, media, but utilising the RAM for core OS, application, library and code and services etc.
Load times would increase but the OS, applications, services and databases, containers, plus gaming and media production speeds could be improved utilising lots of RAM and small cheap loaders/archives or SSD rather than having to fork out on the cost of a large SSD or NVMe drive to accommodate those needs, which would load faster but be less responses than loading the OS and apps into RAM.
The ability to run entire drive in RAM is also important in server scenarios especially databases which are not entirely suited to SSD's and more suited to RAM in terms of seek times, read and write times, bandwidth and numbers of rewrites and failures. For example, running a Linux Server OS including a Docker container of databases, server, code, libraries etc on one or more RAM partitions, utilising other drives for user files. Also RAM swap file areas would be useful in backup or media production scenarios also.
Comments welcome.