LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-22-2018, 05:47 AM   #1
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Rep: Reputation: 16
Slackware based system - SSD or tmpfs - more bang for the buck?


A Slackware based netbook question. Which provides more bang for the buck as far as system performance - SSD or tmpfs?

I am still trying to get a system working on my Acer Aspire One 725 that is to my liking. The constraints are as follows:
  • Better video performance than is available with any installed, lightweight distro that I have tried, including Slacko.
  • Vivaldi (preferred) or Google Chrome are needed as browser for their MIDI capabilities.
  • Storage capacity for my music scores which get synced to the cloud (which if for no other reason, probably rules out the persistent USB pen drive alternative).

At this time, I have Salix64 XFCE 14.2 installed, but I don't have a problem trying this with a full Slackware64 14.2 install, but system resources as well as storage space are at a premium.

I don't know much of anything about tmpfs, but I understand that persistent USB pen drive systems use something similar to this?

An SSD up to around 250 GB would be OK as far as storage space is concerned, but the price is potentially a concern.

I am putting so much effort into this netbook, because it was relatively cheap, has a relatively small form factor and is lightweight, which is important to me when carrying my gear on the road, or using it in my rehearsal room.

Last edited by globetrotterdk; 04-22-2018 at 05:49 AM.
 
Old 04-22-2018, 06:08 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
No filesystem can outperform tmpfs. End of discussion.

Whether you understand the nuances of what you are asking is a different matter.
 
Old 04-22-2018, 07:24 AM   #3
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
No filesystem can outperform tmpfs. End of discussion.

Whether you understand the nuances of what you are asking is a different matter.
Thanks for your reply. Can / should the entire /root be configured to boot as tmpfs in the /etc/fstab? Are there specific Slackware related issues in trying this?
 
Old 04-22-2018, 07:42 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by globetrotterdk View Post
Thanks for your reply. Can / should the entire /root be configured to boot as tmpfs in the /etc/fstab? Are there specific Slackware related issues in trying this?
I think you should stop here and read a bit about what a tmpfs actually is.
When you run a Live OS, the files are loaded from the storage (mostly a USB stick) but any changes you make are kept in RAM, in a tmpfs (because that is what it is, a RAM based filesystem which does not touch your harddisk). Upon reboot, your changes to the Live OS are gone because they only lived in your RAM. A persistent Live OS still writes it changes back to the USB storage!

Now, you want to install Slackware on a SSD. That in itself will make your installation a lot faster and more responsive than with a regular harddisk with spinning platters. What some people do to speed up the daily operations is to put /tmp on a RAM disk (tmpfs). Compilations use /tmp for intermediate results and by writing all that to RAM your compilations will be a lot faster.
But there's really no sense in putting more than /tmp in RAM. What you are thinking of, to put all of the root filesystem onto tmpfs, how did you think you were going to achieve that? It would take an hour to just copy / to RAM and then re-mount the RAM-based copy. Let alone that you would have to re-write several Slackware boot scripts to do it.
 
1 members found this post helpful.
Old 04-22-2018, 08:21 AM   #5
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Not sure what you want to achieve with this, but I'll share some of my thoughts and opinions on tmpfs.

Root should ideally be stored somewhere, like a CD or HDD, there's no point having it in RAM because there is generally no dynamic data being written in /
In tmpfs you may want to store data which is being written and re-written all the time, so more or less just /tmp and ~/.cache (you can also symlink ~/.cache into /tmp)
It is useful when you have a lot of application profiles in /home and they all want to cache "permanent" data on your drive, so if you don't want permanent clutter, you just link it into tmpfs and it's all gone as soon as the power is out.
Web streaming cache is a good candidate for tmpfs, it's being loaded much faster from there, and it's just temporary data anyway.
 
1 members found this post helpful.
Old 04-22-2018, 08:35 AM   #6
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Alien Bob View Post
I think you should stop here and read a bit about what a tmpfs actually is.
When you run a Live OS, the files are loaded from the storage (mostly a USB stick) but any changes you make are kept in RAM, in a tmpfs (because that is what it is, a RAM based filesystem which does not touch your harddisk). Upon reboot, your changes to the Live OS are gone because they only lived in your RAM. A persistent Live OS still writes it changes back to the USB storage!
Yes, I actually had speculated about a persistent Live OS, but the main drawback for me is not enough storage space for syncing my sheet music, and various other files that I need access to from the cloud and to sync to the cloud.

Quote:
Originally Posted by Alien Bob View Post
Now, you want to install Slackware on a SSD.
As an alternative to tmpfs, yes.

Quote:
Originally Posted by Alien Bob View Post
That in itself will make your installation a lot faster and more responsive than with a regular harddisk with spinning platters. What some people do to speed up the daily operations is to put /tmp on a RAM disk (tmpfs). Compilations use /tmp for intermediate results and by writing all that to RAM your compilations will be a lot faster.
As my main concern here is video and audio performance, minimizing lag but not necessarily low latency, and largely (but not only) in reference to the web browser, is /tmp where it is all happening?

Quote:
Originally Posted by Alien Bob View Post
But there's really no sense in putting more than /tmp in RAM. What you are thinking of, to put all of the root filesystem onto tmpfs, how did you think you were going to achieve that? It would take an hour to just copy / to RAM and then re-mount the RAM-based copy. Let alone that you would have to re-write several Slackware boot scripts to do it.
The Vivaldi browser is normally installed in /opt, not sure about Google Chrome as that is installed from the extras section with slackpkg, would making /opt tmpfs feasible? The problem is sometimes things are HTML5 and other times Flash or Pepper player are used for Flash content, so again - only /tmp or does /opt also make sense for tmpfs?

If SSD and possibly /tmp as tmpfs is the way to go, then I could use some advice from the forum on reasonably priced SSDs.

Last edited by globetrotterdk; 04-22-2018 at 08:37 AM.
 
Old 04-22-2018, 08:47 AM   #7
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by elcore View Post
Not sure what you want to achieve with this, but I'll share some of my thoughts and opinions on tmpfs.

Root should ideally be stored somewhere, like a CD or HDD, there's no point having it in RAM because there is generally no dynamic data being written in /
Thanks. That is useful information.

Quote:
Originally Posted by elcore View Post
In tmpfs you may want to store data which is being written and re-written all the time, so more or less just /tmp and ~/.cache (you can also symlink ~/.cache into /tmp) It is useful when you have a lot of application profiles in /home and they all want to cache "permanent" data on your drive, so if you don't want permanent clutter, you just link it into tmpfs and it's all gone as soon as the power is out.
Web streaming cache is a good candidate for tmpfs, it's being loaded much faster from there, and it's just temporary data anyway.
Very interesting. Vivaldi browser, which I normally use, is configured as follows:
/home/username/.cache/vivaldi/Default/ and then it branches to either /Default/Cache/ or to /Default/Media Cache/. I assume that this is what you are referring to. So the idea would be to create a symbolic link for /Default/Media Cache/ to /tmp and then load /tmp as tmpfs?
 
Old 04-22-2018, 08:50 AM   #8
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by globetrotterdk View Post
A Slackware based netbook question. Which provides more bang for the buck as far as system performance - SSD or tmpfs?

I am still trying to get a system working on my Acer Aspire One 725 that is to my liking. The constraints are as follows:
  • Better video performance than is available with any installed, lightweight distro that I have tried, including Slacko.
  • Vivaldi (preferred) or Google Chrome are needed as browser for their MIDI capabilities.
  • Storage capacity for my music scores which get synced to the cloud (which if for no other reason, probably rules out the persistent USB pen drive alternative).

At this time, I have Salix64 XFCE 14.2 installed, but I don't have a problem trying this with a full Slackware64 14.2 install, but system resources as well as storage space are at a premium.

I don't know much of anything about tmpfs, but I understand that persistent USB pen drive systems use something similar to this?

An SSD up to around 250 GB would be OK as far as storage space is concerned, but the price is potentially a concern.

I am putting so much effort into this netbook, because it was relatively cheap, has a relatively small form factor and is lightweight, which is important to me when carrying my gear on the road, or using it in my rehearsal room.
Your beloved Acer Aspire One 725 sports an AMD C60 processor, which is one of the slowest and worst things made by AMD in the last years. Compared with it, even an Intel Atom is a powerful monster CPU.

My sincere suggestion is to buy another (and this time real) notebook instead of a 250GB SSD for this lame duck, err... netbook.

For gods sake, the words "AMD C60" and "performance" makes no sense in the the same phrase.

Last edited by Darth Vader; 04-22-2018 at 09:02 AM.
 
Old 04-22-2018, 09:09 AM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by globetrotterdk View Post
Very interesting. Vivaldi browser, which I normally use, is configured as follows:
/home/username/.cache/vivaldi/Default/ and then it branches to either /Default/Cache/ or to /Default/Media Cache/. I assume that this is what you are referring to. So the idea would be to create a symbolic link for /Default/Media Cache/ to /tmp and then load /tmp as tmpfs?
I've worked on a shared webcache project and we used to tar clean user profiles (~/.mozilla and ~/.cache/mozilla) and then untar (on boot) both the profiles and fresh cache into tmpfs through rc.local.
So it's technically possible, but you don't see that every day. I do have a couple of SSDs too, but I wouldn't let just anyone write there, especially when they're writing a db.
 
Old 04-22-2018, 10:25 AM   #10
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Darth Vader View Post
Your beloved Acer Aspire One 725 sports an AMD C60 processor, which is one of the slowest and worst things made by AMD in the last years. Compared with it, even an Intel Atom is a powerful monster CPU.

My sincere suggestion is to buy another (and this time real) notebook instead of a 250GB SSD for this lame duck, err... netbook.

For gods sake, the words "AMD C60" and "performance" makes no sense in the the same phrase.
Yes, it is looking more and more like a ball and chain.
 
Old 04-22-2018, 10:42 AM   #11
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by elcore View Post
I've worked on a shared webcache project and we used to tar clean user profiles (~/.mozilla and ~/.cache/mozilla) and then untar (on boot) both the profiles and fresh cache into tmpfs through rc.local.
So it's technically possible, but you don't see that every day.
Interesting. Can you suggest some documentation as to a practical configuration?
 
Old 04-22-2018, 11:33 AM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Here is the default user setting in Slint for the cache:
Code:
didier[~]$ cat .profile
export XDG_CACHE_HOME=/dev/shm/$(whoami)
mkdir -p /dev/shm/$(whoami)
chmod 700 /dev/shm/$(whoami)
export XDG_RUNTIME_DIR=$XDG_CACHE_HOME
This puts in RAM what would be in ~/.cache without user setting.

I just checked installing Vivaldi using the latest-vivaldi.sh script (thanks ruario!). I didn't do any further setting in Vivaldi and its cache is where I expected it to be:
Code:
didier[/dev/shm/didier/vivaldi/Default/Cache]$ ls -1|wc -l
296
didier[/dev/shm/didier/vivaldi/Default/Cache]$ du -sh
5,3M    .
didier[/dev/shm/didier/vivaldi/Default/Cache]$
Of course the cache will be wiped out when I reboot.

This handle all software that honor the XDG Base Directory Specification. A lot of desktop software do, e.g.:
Code:
didier[/dev/shm/didier]$ ls -1 && du -sh
dconf
fontconfig
gvfs
keyring
mate
mozilla
pulse
thunderbird
vivaldi
23M	.
didier[/dev/shm/didier]$
PS To be clear, this setting does not fiddle with the config files in ~/.mozilla and ~/.thunderbird (or any config file in ~/.config, like in the ~/.config/vivaldi directory), only the cached files are in concern.

Last edited by Didier Spaier; 04-22-2018 at 12:09 PM.
 
3 members found this post helpful.
Old 04-22-2018, 02:38 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
what kind of storage you worried about, as you made mention of sdd. 32GB sdd about 20 bucks US. 5GB for system, tmp in ram about 1GB, swap? that now days is an iffy, unless you hibernate the system.

I had an old netbook 1GB RAM ran Ubuntutu, Debain, and a few others on it. I went to Slackwhere later.

The only issue I had was movies that where so data saturated it was hard for the CPU to push it through to the player, choppy sometimes, but I did coding and what not on it. it was an Acer D250 w/ATOM N260 the first ones out. of and that liteel screen got to be too much, especially trying to code on it.

your specs CPU
Code:
 AMD C-70 1GHz Dual-Core Accelerated CPU
the 1GHz is the only thing holding you back, that is just slow cycle times for what software is out there now days, MO.

250gb ssd price $60 ~ $80 US.

Pawnshop special, from the guy that just needed some fast cash so he let go of a decent Laptop, so buyer gets it cheaper.

that is where I use to go for mine. if you know what to look for then you'll cut down the worry. I'd crack them open and look at what kind of HDD it takes and ram and upgradeabiltiy stuff, boot it and hit the F' keys to get into the BIOS to see what it has etc.. 50 to 100 bucks and I got a few nice laptops doing it that way.
 
1 members found this post helpful.
Old 04-23-2018, 05:10 AM   #14
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by globetrotterdk View Post
Interesting. Can you suggest some documentation as to a practical configuration?
I don't do documentation, sorry. I bashed the thing together in the most primitive way possible.
It's mostly just tar, coreutils, bash, rc, and squid for fast https filtering in tmpfs.
 
Old 04-23-2018, 07:44 AM   #15
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by elcore View Post
I don't do documentation, sorry. I bashed the thing together in the most primitive way possible.
It's mostly just tar, coreutils, bash, rc, and squid for fast https filtering in tmpfs.
That wasn't a personal request I just thought that you had based it on some specific documentation.
 
  


Reply

Tags
netbook, slackware64, ssd, tmpfs



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
LXer: 5 tips for getting the biggest bang for your cover letter buck LXer Syndicated Linux News 0 10-31-2017 04:03 AM
what is your biggest bang for the buck? BW-userx General 16 05-12-2016 06:26 AM
LXer: Talk About HPC Bang For Your Buck, How About Ka-Boom For The Server Room LXer Syndicated Linux News 0 09-17-2010 04:00 PM
best mobo bang for the buck...? WingNut Linux - Hardware 3 10-07-2003 04:34 AM

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

All times are GMT -5. The time now is 11:57 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