Coder Social home page Coder Social logo

tiny-ramdisk's Introduction

TinyRAMDisk • Persistent RAM Drive for Linux

TinyRAMDisk RAM Drive OpenGraph Image TinyRAMDisk RAM Drive OpenGraph Image - Dark Theme

What is a RAM Disk?

RAM drive functionality can significantly benefit older computers with slow hard drive speeds. Hard Disk (HDD or SSD) read and write operations are moved to the Random Access Memory (RAM). Therefore depending on the particular computer hardware, user may experience up to 10x productivity boost.

High file operation speeds are crucial when user puts heavy I/O on the filesystem. RAM disk not only provides better read and write speeds, but also takes the stress off the hard drive which increases its life expectancy.

Possible scenarios for the RAM disk can be:

  • Working with large project in Integrated Development Environments (IDEs).
  • Running computational analysis of numerous small size files.

Why Choose TinyRAMDisk?

Simplicity is often the key. TinyRAMDisk has a minimal footprint on the system. Program consists from a few bash scripts and systemd service. Below please find some of the program features:

  • Persistent. Files are saved back and restored from the hard drive each time user logs off.
  • High speeds. Data only resides in RAM (ramfs, not tmpfs) and will never end up on the swap partition.
  • Dynamic size. RAM disk partition dynamically increases in size as more files are added.
  • Multi user. Each user on the system can install and use his instance of RAM disk.

Important

User is responsible to keep track of the amount of data stored on the RAM disk. Ensure it does not exceed available RAM size. Otherwise system may have unpredictable behavior.

How to Install

Prerequisites. Any GNU/Linux distribution with systemd suite and PolicyKit component. Ensure that rsync, systemd, and notify-send are installed on your computer (provided by default with most distributions). Next, open Terminal emulator and enter following commands:

git clone https://github.com/petrstepanov/tiny-ramdisk
cd ./tiny-ramdisk
chmod +x ./install.sh && install.sh

The RAM disk is mounted in the RAMDisk folder in home folder. On logout or restart files are saved in the hidden ~/.RAMDisk folder.

Tip

When working with a large amount of files on the RAM drive, it is reasonable to turn off your desktop environment indexing and search functionality on the RAM drive. In GNOME desktop environment this will be under Settings → Search → Search Locations...

How to Uninstall

Execute following command inside the program folder:

chmod +x ./uninstall.sh && uninstall.sh

After uninstalling the RAM disk files are copied in the ~/.RAMDisk home directory.

tiny-ramdisk's People

Contributors

petrstepanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tiny-ramdisk's Issues

Syntax Error in Readme.MD

Hi,
the line
chmod +x ./install.sh && install.sh does not work

It needs to be: chmod +x install.sh && ./install.sh

The same error is found in the "how to uninstall" section.

Another thing:
Could you please advice on how to mount /var/log into the existing Ramdisk via /etc/fstab?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.