LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-14-2014, 05:51 PM   #1
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Running Ubuntu 13.10 (LinuxMint 16) in ram


Hi all, have been running a custom version of LinuxMint 16 mate in ram for the last couple of weeks now, and I must say that I'm very impressed with the speed and overall performance. I found a script called RAM_Booster, which takes your currently installed distro, compresses it into an squashfs filesystem, and then mounts it to ram, then boots from it.

When I run this command, it shows some impressive write speeds.

Code:
sync ; time sh -c "dd if=/dev/zero of=testfile bs=100k count=1k  && sync" ; rm testfile
1024+0 records in
1024+0 records out
104857600 bytes (105 MB) copied, 0.0389547 s, 2.7 GB/s

real 0m0.243s
user 0m0.000s
sys 0m0.044s


Here are the specs of my pc

Core i7 4770 Haswell (gen 4)
16 gb of ram (2x8gb) G Skill 1333 mhz
2 gb ddr5 gtx560 Nvidia
120 gb agility 3 ssd read/write 430/400 mb/s

Love to hear some coments, especially if you have been doing the same.
 
Old 02-15-2014, 04:18 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by fotoguy View Post
have been running a custom version of LinuxMint 16 mate in ram for the last couple of weeks now, and I must say that I'm very impressed with the speed and overall performance. I found a script called RAM_Booster, which takes your currently installed distro, compresses it into an squashfs filesystem, and then mounts it to ram, then boots from it.
actually, this is what most Live systems have done for the last years. I've never thought about using that principle for a regular system; after all, there are some severe drawback, aren't there? Such as not being able to store configuration changes persistently or run system updates, because then you'd have to write that stuff into the squashfs at runtime.

If you really want to go for an "untouchable", unbreakable system, that may be an interesting concept, though.

Quote:
Originally Posted by fotoguy View Post
When I run this command, it shows some impressive write speeds.

Code:
sync ; time sh -c "dd if=/dev/zero of=testfile bs=100k count=1k  && sync" ; rm testfile
1024+0 records in
1024+0 records out
104857600 bytes (105 MB) copied, 0.0389547 s, 2.7 GB/s

real 0m0.243s
user 0m0.000s
sys 0m0.044s
I don't think this is really relevant. Sure, read and write operations with a RAM-resident system are blazingly fast (and I assume that /var and /temp are mounted to a tmpfs in RAM, too). But to actually use the system, you'd require a persistent partition, like /home being mounted to /dev/sda2 or the like. And that's where most write access will take place, apart from temp files or updating logs. Write access to the root filesystem should be negligible in normal operation.

Quote:
Originally Posted by fotoguy View Post
Love to hear some coments, especially if you have been doing the same.
Well, you asked for it. ;-)

[X] Doc CPU
 
Old 02-15-2014, 04:22 PM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by Doc CPU View Post
actually, this is what most Live systems have done for the last years. I've never thought about using that principle for a regular system; after all, there are some severe drawback, aren't there? Such as not being able to store configuration changes persistently or run system updates, because then you'd have to write that stuff into the squashfs at runtime.
Hi Doc CPU,

Yeah I know live systems have been doing this for some time now, made a few live distros myself. There are definetly some draw backs to this type of system like the log files being lost everytime you reboot or loose power, a UPS is on the card soon as I can afford one, but for my main desktop PC, that's fine, I certainly wouldn't recommend it for a server.

I am running /home on a seperate partition to hold or my configration files, should have mentioned that as well, programs like firefox still use the cache in the /home directory are still the same unless you move them to ram. I'm using a custom live version that I made so it already has all the software on it i'm going to use, so I don't need to update it all as far as software goes.

The developer of the script wrote an update script that remakes the squashfs filesystem for you, so any updates or new programs that I wont to keep, will then become part of the system permanetly, I also have another spare drive that I use for storage.


Quote:
Originally Posted by Doc CPU View Post
If you really want to go for an "untouchable", unbreakable system, that may be an interesting concept, though.
It is fun to play around with, and I always have a nice clean system everytime I boot.

Thanks for the feedback
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
geforce GT520 on Ubuntu 12.04,linuxmint 13 goseeped Linux - Desktop 1 06-26-2012 02:08 AM
LXer: Eveinstaller- A Great tool similar to Ubuntu Tweak for Ubuntu and LinuxMint LXer Syndicated Linux News 0 05-19-2011 01:20 AM
LXer: How to install Libreoffice RC1 in Ubuntu, LinuxMint, Debian and Fedora |PPA Ubuntu LXer Syndicated Linux News 0 12-06-2010 07:30 AM
Unable to shutdown computer running Linuxmint 10 rc Clived Linux Mint 5 11-11-2010 10:42 AM
[SOLVED] Trying to get Linuxmint up and running with a NVidia GeForce Graphics Card gribbsy Linux - Newbie 2 01-10-2010 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration