Solid State Drives
I'll be shortly upgrading from 14.1 to 14.2 at the same time will install a Solid State Drive (SSD) the result will be that I will have /dev/sda (128G SSD) and /dev/sdb (1000G HDD). I will also increase the ram to 16G.
My current thoughts are to have
In setting up the drives I will be using fdisk. Will it be acceptable to go with whatever fdisk suggests for heads and sectors as long as the first partition starts at sector 2048 and I size the partitions in increments of Gigabytes? Of course the other option is to plunge into LVM. Thanks in anticipation. Alex |
I have a similar setup, which I built only a week or so back. I moved some of the /var stuff off, but left most of it on the SSD. I moved the slackbuilds cache off.
But, I left my /home on the SSD - especially to take advantage of the speed for web browsing (firefox) and email (thunderbird). I moved my multimedia (movies, flacs, mp3's etc) off to the HD, via soft-link. I would chuck the /swap totally. Honestly - with 16 GB you will be fine. (I have same and I also chucked it). |
If you want to move /var/ over just to minimize the writing to the SSD from the logs, there really is no need. SSDs are now quite capable of writing many orders of magnitude of what the average person would need before they fail (and I mean almost completely rewriting the contents of the drive every day for several years). If you want to read a fun article, check out this final article in a series by techreport where they attempt to cause SSDs to fail by writing too much data to the drives (they link all the previous articles in the series in there as well). The first drive didn't fail until 700TBs had been written (that's almost 400GBs per day for 5 years).
As to your question on mounting /dev/sdb2 under a folder on your home folder, that will work without issue. Just make sure the folder is created and you can mount any partition to any location on any drive. It's one of the great features of Linux. You can either mount it manually via the mount command or automatically using an entry in your /etc/fstab Depending on your normal memory usage, as Mark Pettit suggested, you could probably get away with not creating a swap. Personally, I couldn't, because I occasionally use more than my amount of RAM (32GB), but I know my use-cases are not normal. Even then, if you really needed a swap, you can create a swap file and turn it on (using swapon) when necessary (like compiling a really big program). This could simplify your partition scheme slightly. As to fdisk, you're correct in that you can just use the defaults. It has supported partition alignment for many versions. You may also want to look into changing the schedular from the default noop (first in first out) to deadline (prioritizes reads over writes, so your system could be more responsive during heavy disk activity). While noop tends to perform higher in benchmarks, deadline tends to give better real-world performance. You can do this by creating a rule in /etc/udev/rules.d/ (I called mine 55-ssd-scheduler.rules) that contains the following: Code:
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline" Good luck! SSDs are a great addition to a system. |
Member response
Hi,
I believe that the default scheduler for Slackware is [cfq] not [noop]. I set my SSD scheduler to [noop] and find no issues. If you are using a large Dbase then possibly some advantage to the [deadline]; Code:
From '/etc/rc.d/rc.local'; Hope this helps. Have fun & enjoy! :hattip: |
Interesting. My SSD has noop and my HDD has cfq and I have done nothing to set it up this way. Is my kernel smart enough to do it by itself?
|
Quote:
Code:
# do not edit this file, it will be overwritten on update Really, noop is a decent selection for SSDs, but if you ever happen to have your drive go crazy with writes (whether from copying, compiling, swapping, etc), deadline will prioritize reads over writes, so it is less likely to cause you hangups in your usage of the machine. However, depending on your intended use of that machine, that may not be desirable. Quote:
|
So in general I'm on the right track :D
In respect to the discussion regarding noop, deadline and cfq I didn't realise that such things existed. Had to look them up on the web for an explanation. Quote:
I'm now swaying to leave the default set up as is, in respect of scheduling, whilst taking on board the following and monitor what happens Quote:
Alex |
aikempshall --
Yes, sounds like you're on track :) I've been meaning to send my $0.02 but I've been crazy-busy at work. In addition to the excellent stuff bassmadrigal posted, there is also 'stuff' you can optimize in /etc/fstab and in /etc/sysctl.conf You might want to add the noatime option to the entries in /etc/fstab for the partitions on your SSD ( :) maybe even add it to all your partitons, unless you run mutt as a mail reader :) ) If you're running a pure SSD Box and your swap partition(s) are on the SSD, you would want to modify your /etc/sysctl.conf ( see below ). And, since you mentioned VMs, if you host Virtual Machines, you might want to research the sysctl: vm.vfs_cache_pressure Finally, there was another fairly recent, longish thread here on LQ about SSD tuning: Fine Tuning a new SSD for Slackware. ... LOTS of juicy tidbits there :) HTH and have fun ! -- kjh # # I have a 'pure-SSD' Laptop ( swap is on SSD Partitions ) and I run VMWare Workstation 12.x on my Slackware 14.2 System so BOTH of the following sysctl settings apply: # Code:
# cat /etc/sysctl.conf # I don't run the mutt mail reader so noatime won't hurt me in /etc/fstab # Code:
# cat /etc/fstab |
Member response
Hi,
Quote:
I've procrastinated on my new Laptop purchase so I guess that I will bite the e-bullet and get it now. I did get a new 'SSD' 480GB at a great price and I am waiting to install on that with the new Dell Laptop. I still use my Dell XPS702 Intel i7 16MB, 240GB SSD, 320GB HD secondary, Optimus & Intel GPUs. I would like to get the new XPS but that's a lot more than what I want to spend. I'll back down to the Dell Inspiron with a 15" screen. I will wait to find a Dell refurbished factory certified at a reduced cost. A great deal if you find the right one. <snip> Too many things on my TODO list and I need to start hitting it hard. Have fun & enjoy! :hattip: |
Quote:
|
Member response
Hi,
Both Intel and the Optimus have their pluses. Most times I will use the Intel just for the power savings. Plugged in and needing the Optimus, I am sure to use my Laptop cooler to keep things cool on the LapDesk. Bumblebeed is getting long in the tooth but still works for my needs. I am looking at the Dell Inspiron 17 at a refurbish certified price. It has Intel chipset and still provides 1600 x 900 so good enough for my needs and a good price. I am spoiled with my Dell XPS702 17" Laptop with dual drive bays that spoil you but it's getting old. Still usable Laptop and I am needing/wanting a new Laptop anyway. Have fun & enjoy! :hattip: |
Quote:
For SSD: https://www.youtube.com/watch?v=1cjZeaCXIyM For HDD: https://www.youtube.com/watch?v=ZeNbS0rzpoY On his web site he has more detailed statistics and stuff. http://algo.ing.unimo.it/people/paolo/disk_sched/ |
my working machine has a couple of 250 gb ssd drives. I use one for containing the operating systems for slackware and win7 and another is for holding a large bioinformatics dataset primarily. having the bioinformatics databases on the ssd saves a lot of time. I have a 1 tb and a 2 tb drive in ntfs format for backup and for easy sharing with windows. I have used default settings for the ssd since the beginning and have used this machine for almost 3 years now with no issues.
A few months ago I added an ASUS Mini (nividia) graphics card which handles multi-monitoring better than the stock Intel display on the motherboard, but it gives me a chance to set nividia kernel modules up each time i update -current. Nouveau is ok but just sorta ok. The Nividia drivers suit me better. I still need windows sometimes for reading files that some folks send me that just wont open right with LibreOffice, and for running VPN. I am hoping to learn how to do the VPN in Linux. I have built some other systems for the lab using ssd drives. There have been zero problems so far, but I do like the samsung ssd's better than other brands I have tried. This system works great for me. the motherboard is an ITX and i have the whole thing powersupply and all fastened to a wooden base. the whole thing drops into a luggage-like laptop case so that I have a luggable machine. I do provide a swap drive but i have 8 gb of memory and the swap drive is seldom used except when doing some large compiles. I had tried putting an ssd into an old fujitsu laptop. it then ran so fast that the laptop would get hot and shut itself down. Heat dissipation and power supplies seem to be the bottleneck in faster processing speeds now that I am using SSD's. I have burned up several low wattage and mid wattage power supplies. Now I have a Great Wall 1000W supply and it works like a champ, amazing better than some more famous main brand power supplies that are RIP in the junk box. I have tried some different heat dissipation devices and also fan-less power supplies. Those will burn up eventually with my older generation 4-core -i7 chip I have built some 2-core -i7's and some baytrail 4-thread machines that function fine on the silent fanless power supplies but my main machine demands lots of cooling if it is running at full tilt boogie. |
Interesting Info Regnad Kcin
I would never have imagined that running a faster drive could cause overheating in the CPU ( or GPU ) but it does kinda-sorta make sense if the other subsystems are running on the verge of overheating ... Thanks. One to keep in the back of my mind when trouble-shooting overheating issues ! -- kjh |
laptops dont really have very good cooling. it ran a lot faster with the ssd.
I dont use laptop these days as i am so used to an instantaneous response machine that the waiting and waiting gets me upset. I remember though using an Epson QX-10 with 2 floppies and i thought it was awesome sitting there buzzing at me. |
All times are GMT -5. The time now is 02:46 PM. |