Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

Ubuntu & Debian RAM Disk

What is RAM Disk

Why Use RAM disk

!! But We Have More RAM [ 4 GB ] !!

How to make RAM disk

Squashfs !!

Make squashfs file

Make Java run In RAM

!! Finish !!

A RAM disk or RAM drive is a block of RAM (primary storage or volatile memory) that a computer's software is treating as if the memory were a disk drive (secondary storage)

Step 3. Mount Java to RAM

Step 4. Set Java to default

Step 2. Create JAVA squashfs

Step 1. Create RAM disk

sudo update-alternatives --install "/usr/bin/java" "java" "/media/ramdisk/bin/java" 1

$shell > sudo mount /home/nancom/jdk6.sqsh /media/ramdisk -t squashfs -o loop

Speed

Check install java complete

RAM > SSD > HDD

!! Make it permanant on startup !!

Capacity & Price

sudo update-alternatives --config java

HDD > SSD > RAM

Edit /etc/fstab add line

/home/nancom/jdk6.sqsh /media/ramdisk squashfs ro,defaults,loop 0 0

!! And choose java in ram !!

Use tmpfs

$shell > sudo mkdir /media/ramdisk

$shell > sudo mount -t tmpfs tmpfs /media/ramdisk

Mount on Start up

edit file /etc/fstab add to last line

tmpfs /media/ramdisk tmpfs defaults,mode=1777 0 0

And reboot System

Compressed read-only file system for Linux. SquashFS compresses files, inodes and directories, and supports block sizes up to 1 MB for greater compression.

SquashFS is also free software (licensed under the GPL) for accessing SquashFS filesystems.

SquashFS is intended for general read-only file system use and in constrained block device/memory systems (e.g. embedded systems) where low overhead is needed. The standard version of SquashFS uses gzip compression, although there is also a project that brings LZMA compression to SquashFS.

Install squasfsh tools

sudo apt-get install squashfs-tools

Create .sqsh file

mksquashfs /usr/lib/jvm/java-6-sun-1.6.0.21 /home/nancom/jdk6.sqsh

Unsquash

unsquashfs [options] target [files/directories to extract]

Learn more about creating dynamic, engaging presentations with Prezi