Fedora Linux Support Community & Resources Center
  #1  
Old 7th July 2012, 11:10 PM
user5031858 Offline
Registered User
 
Join Date: Sep 2010
Posts: 17
windows_xp_2003firefox
Question 32GB of SSD, how to use?

Hi there,
I have got ASUS UX32VD ultrabook, it is equipped with 500GB ordinary HDD and 32GB of SSD (mSATA) which is used in original windows configuration as invisible cache over the ordinary HDD (accumulates frequently accessed data).

I wounder how can I get maximum from this free add-on, I have the following options (more than one may apply I guess):
1. Put swap partition on this drive (doesn't it kill my SSD very quickly?)
2. Put /boot on this drive
3. Tune somehow to hibernate on this drive
4. Put system files (those heavily used during boot and Gnome start up), unfortunately I do not know how what is the best equivalent of C:\windows on linux
5. Use LVM, split SSD on 4-8 physical volumes, split HDD on N physical volumes, then mix them into logical volume groups as needed (trying to put maximum of system files on SSD and if not fit enlarge the space with physical volumes from HDD)
6. Use SSD as temporary storage for some operations that require fast filesystem (build scripts, image processing, etc.)
Reply With Quote
  #2  
Old 8th July 2012, 12:27 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfirefox
Re: 32GB of SSD, how to use?

This should give you a starting point for SSD under Linux.
first http://forums.fedoraforum.org/showthread.php?t=277082

Quote:
Originally Posted by user5031858 View Post
...
how can I get maximum from this free add-on, I have the following options (more than one may apply I guess):
1. Put swap partition on this drive (doesn't it kill my SSD very quickly?)
2. Put /boot on this drive
3. Tune somehow to hibernate on this drive
4. Put system files (those heavily used during boot and Gnome start up), unfortunately I do not know how what is the best equivalent of C:\windows on linux
5. Use LVM, split SSD on 4-8 physical volumes, split HDD on N physical volumes, then mix them into logical volume groups as needed (trying to put maximum of system files on SSD and if not fit enlarge the space with physical volumes from HDD)
6. Use SSD as temporary storage for some operations that require fast filesystem (build scripts, image processing, etc.)
1/ Not likely. If you are swapping a lot this would help, but if you are swapping a lot you should just buy more dram - even swapping to SSD will be ugly.
2/ No. Boot could go there- but the advantage of SSD is the brilliant access times and you only access boot once per system-session. Save a few seconds once but no impact on the workload.
3/ Maybe. You can hibernate there and it does make hibernate/restore a lot faster. To do this you need to set aside DRAM size swap (you can have multiple swaps) so then you may as well use the '1/' strategy. Depends on how often you hibernate. whether this makes sense.
4/ Yes - reasonable and C:/ is roughly the root '/' partition minus /home and /opt. You'd want to diddle the bootloader to use the SSD parttion as the root I think.
5/ NO ! NO! NO! LVM is too crude a tool. It doesn't balance load based on fast/slow disks. It only balances on a geometry basis. This would effectively throw the SSD advantages away. I do NOT recommend LVM for most users/and-laptops. It's good features are nearly useless there, but it does impose a performance penalty.
6/ YES - but how.

More to follow ...
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 8th July 2012, 09:24 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: 32GB of SSD, how to use?

A 32 GiB SSD should be large enough to install the whole operation system and still leave some room for a 16 GiB swap file. Not sure if Linux supports hibernating to a swap file, though.

6) Easy. Most programs use /tmp for temporary storage or at least you can configure where to put temporary files.
Reply With Quote
  #4  
Old 8th July 2012, 12:31 PM
user5031858 Offline
Registered User
 
Join Date: Sep 2010
Posts: 17
windows_xp_2003firefox
Exclamation Re: 32GB of SSD, how to use?

Quote:
Originally Posted by stevea View Post
1/ Not likely. If you are swapping a lot this would help, but if you are swapping a lot you should just buy more dram - even swapping to SSD will be ugly.
Agree that RAM is better, but even in 10GB (maximum for this utrabook) configuration swapping may be required sometimes.
So the real question is:
is it worth spending some of this small SSD on swap partition (or it may be used better way)? If I had 10GB RAM I would certainly put swap on HDD because swapping would be rare event and it will just help the system to run somehow... But currently I have only 4GB (planning expansion to 6GB) so quick swap may be welcomed.
But currently I tends to idea that if swap goes to SSD it may wear off very quickly because of frequent write operations and will not help much in case of swapping (will be far slower than real RAM). Probably there might a better way to get advantage of SSD in every day use (system files, etc.)

---------- Post added at 02:18 PM ---------- Previous post was at 01:24 PM ----------

Quote:
Originally Posted by stevea View Post
5/ NO ! NO! NO! LVM is too crude a tool. It doesn't balance load based on fast/slow disks. It only balances on a geometry basis. This would effectively throw the SSD advantages away. I do NOT recommend LVM for most users/and-laptops. It's good features are nearly useless there, but it does impose a performance penalty.
if it were to mix SSD with equal in size HDD, I would agree with you. But if I planned to create say 2 LVG: "system" and "user", and by default give all SSD to system and some of huge HDD to user, then in case system volume will not fit into SSD I can add some space from HDD to system LVG -- of course newly added libraries might sit on HDD now, but I need not to reinstall the whole system. Makes sense? ( I can even move all system files to HDD in case my SSD will show first signs of wear, does it sound too optimistic?)

---------- Post added at 02:31 PM ---------- Previous post was at 02:18 PM ----------

Quote:
Originally Posted by george_toolan View Post
6) Easy. Most programs use /tmp for temporary storage or at least you can configure where to put temporary files.
even easier -- I use NetBeans, Eclipse, IBM Rational tools they all just a massive bunches of primarily read-only but small files (tonnes of JAR files), usually I install this stuff as user (not under root) so I can only mount this 32GB SSD for such usage... And if SSD will fail one day I will just reinstall this software to HDD and forget about this 32GB nuisance... While having /tmp or /var in the SSD is a bit more risky.
Reply With Quote
  #5  
Old 8th July 2012, 01:39 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfirefox
Re: 32GB of SSD, how to use?

Quote:
Originally Posted by george_toolan View Post
... Not sure if Linux supports hibernating to a swap file, though.

6) Easy. Most programs use /tmp for temporary storage or at least you can configure where to put temporary files.
George. I see you SPECULATING and FUDing a lot when an answer is required.

Linux hibernates to swap - it's been that way since the 2.2 kernel. For this to work swap should be as large as dram.

/tmp is indeed used for SOME 'work' files, like compiler intermediates, but also for a lot of less dynamic uses. Browse to a video or a pdf file and you'll see the garbage remains in /tmp. I don't think it's real productive to put /tmp on SSD. If you do a lot of compiles and want the compile/cache on SSD, then just set CCACHE_DIR (see 'man ccache').

So /tmp isn't the main destination for working files that you might suspect.


Quote:
Originally Posted by user5031858 View Post
Agree that RAM is better, but even in 10GB (maximum for this utrabook) configuration swapping may be required sometimes.
Don't know your intentions for use - but it takes a pretty harsh load to get far into swap w/ 10GB DRAM. BUT keep in mind that swap is still a big performance hit even on SSD. For a interactive systems (as opposed to a backroom server) use of swap means the interactivity is badly crippled. You'll certainly consider a swapping laptop as basically unusable except as a doorstop. I did an Andoid build (~3GB in the source tree) last week on my laptop (SSD, 8GB DRAM) and used "make -j" (a poor idea) to allow make to exec an arbitrary number of threads. This pushed about 3GB into SWAP, and i couldn't even move the cursor except erratically, basic screen tools like gkrellm would update once every minute or two. This continued for the ~30 minute build.

Quote:
So the real question is:
is it worth spending some of this small SSD on swap partition (or it may be used better way)? If I had 10GB RAM I would certainly put swap on HDD because swapping would be rare event and it will just help the system to run somehow... But currently I have only 4GB (planning expansion to 6GB) so quick swap may be welcomed.
But currently I tends to idea that if swap goes to SSD it may wear off very quickly because of frequent write operations and will not help much in case of swapping (will be far slower than real RAM). Probably there might a better way to get advantage of SSD in every day use (system files, etc.)
IMO swapping performance is very awful in either case. Unless you really expect to swap often and accept that the system will be non-interactive until the swapping is done - then you really want to avoid heavy swapping at all costs. My approach would be to put Swap on the rotating disk, so long as I could generally avoid swapping.

Another approach is to take a SMALL amount of the tiny SSD (like 1GB) and set this up in addition to a full sized swap on rotating disk. In the fstab give the SSD swap higher priority (on the fstab options use pri=42 ), see the 'man swapon' page for details. This causes the SSD to be used preferentially for swap until it's 1GB is filled. IF you swap more than that, then the rotating disk swap is used.

=======


My actual approach to your dilemma would be to use one of the two 'SSD as cache approaches under Linux.

http://bcache.evilpiepirate.org/
http://git//evilpiepirate.org/~kent/linux-bcache.git
OR
https://github.com/facebook/flashcache/
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #6  
Old 8th July 2012, 02:12 PM
user5031858 Offline
Registered User
 
Join Date: Sep 2010
Posts: 17
windows_xp_2003firefox
Re: 32GB of SSD, how to use?

Quote:
Originally Posted by stevea View Post
4/ Yes - reasonable and C:/ is roughly the root '/' partition minus /home and /opt. You'd want to diddle the bootloader to use the SSD parttion as the root I think.
I think I need to put
/var/logs
/var/lock
/tmp
/var/tmp
on HDD, since they will wear off the SSD very quickly. There is only 3000 write cycles on SSD? I guess /tmp directory is updated very frequent...
Many programs install into /usr, will 32GB be enough?
Reply With Quote
  #7  
Old 8th July 2012, 03:33 PM
schotty Online
Registered User
 
Join Date: Jul 2005
Posts: 202
linuxchrome
Re: 32GB of SSD, how to use?

Well, I use the SSD (64GB) for root and /boot, and the rest (swap, /home) go onto my spinning disk (1TB).

Granted its getting a little less use than I would normally prefer, but I am unwilling to do much more there, as the swap is likely to pound that SSD a bit too harshly, and although I would love to put /home there, I have too many games :P
Reply With Quote
  #8  
Old 8th July 2012, 04:05 PM
user5031858 Offline
Registered User
 
Join Date: Sep 2010
Posts: 17
linuxfirefox
Re: 32GB of SSD, how to use?

Quote:
Originally Posted by stevea View Post
My actual approach to your dilemma would be to use one of the two 'SSD as cache approaches under Linux.

http://bcache.evilpiepirate.org/
http://git//evilpiepirate.org/~kent/linux-bcache.git
OR
https://github.com/facebook/flashcache/
Thank you,
I will probably install on HDD now and decide which caching technology to use, later.
Using this as a cache is actually a good idea:
1. it was original idea of vendor
2. if this SSD will be ruined during heavy read/write usage, I will not cry
All this SSD-revolution makes me angry -- they propose products that are only quicker in read but equal or worse in other aspects of storage. I just wonder how cheaper my device might be if there were not SSD installed.
Reply With Quote
  #9  
Old 8th July 2012, 07:34 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,708
linuxfirefox
Re: 32GB of SSD, how to use?

Personally I'd put / and /boot on the solid-state, and put /var, /home, /tmp and swap on the hard-disk. That gets you the benefit of fast boot and program starts, but keeps the larger space for files that are less frequently accessed or more frequently modified.
Reply With Quote
  #10  
Old 9th July 2012, 03:59 AM
jlpierce Offline
Registered User
 
Join Date: Jul 2012
Location: Pekin, Indiana
Posts: 78
linuxopera
Re: 32GB of SSD, how to use?

Quote:
Originally Posted by user5031858 View Post
I think I need to put
/var/logs
/var/lock
/tmp
/var/tmp
on HDD, since they will wear off the SSD very quickly. There is only 3000 write cycles on SSD? I guess /tmp directory is updated very frequent...
Many programs install into /usr, will 32GB be enough?
I don't know where you got the 3,000 write cycles from, but you will not wear it out in a month or even 2 years. It may abruptly die because of electronic failure (capacitor or cell failure.)

As far as writes go, windows will abuse a drive just as much as any linux distribution will.

Just my opinion.
Reply With Quote
  #11  
Old 9th July 2012, 11:27 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: 32GB of SSD, how to use?

It is virtually impossible to kill a SSD just by writing to it. That's at least 3000 write cycles per cell, so with intelligent wear levelling you get about 3000 * 30 GiB = 90 TiB writes ;-)

Swapping to HDDs is totally useless. If you must swap then at least use a SSD if you have one. Gkrellm will show about 10k - 15k swap operations per second where a normal HDD only allows a couple of hundred.
Reply With Quote
  #12  
Old 11th July 2012, 09:24 AM
user5031858 Offline
Registered User
 
Join Date: Sep 2010
Posts: 17
linuxfirefox
Re: 32GB of SSD, how to use?

Quote:
Originally Posted by jlpierce View Post
I don't know where you got the 3,000 write cycles from
from this post: http://forums.fedoraforum.org/showpo...52&postcount=3
the friend of mine said his SSD (probably of early generations) was worn out very quickly, he used it in home-brewn media center (running on Windose though, and despite he undertook special measures to reduce write operations)
Reply With Quote
  #13  
Old 11th July 2012, 12:53 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: 32GB of SSD, how to use?

Actually earlier generations of flash memory cells allowed more write cycles.

Have a look at this article http://www.storagesearch.com/ssdmyths-endurance.html

According to his calculations a SSD would only last for about 51 years ;-)
Reply With Quote
  #14  
Old 28th August 2012, 01:53 PM
user5031858 Offline
Registered User
 
Join Date: Sep 2010
Posts: 17
linuxfirefox
Re: 32GB of SSD, how to use?

after all I found the most practical to mount this device as /mtn/fast while having system installed on the ususal drive.
created ~/eclipse and ~/workspace as links to this filesystem /mnt/fast/eclipse and /mnt/fast/workspace and put a development Web server there... and I guess this is the best usage pattern for me -- since I boot OS once a day -- and everything frequently used got in usual in-memory cache of HDD, while I do deploy and undeploy large Java artifacts on the server and develop them...

I decided not to install OS on this small SSD because with original BIOS/EFII SSD sometimes got invisible
After BIOS was flashed -- disk appeared to be stable and I had to think how to use and how to use it better...

So for people developing large artfacts I recommend this pattern: link "problematic" parts of your home directory to this "fast" device (under problematic I mean big heaps of small files that should be read fast)
Reply With Quote
Reply

Tags
32gb, ssd, ultrabook, ux32

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


Current GMT-time: 03:55 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat