You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Should I install a swap partition on an SSD?

Author (Read 11910 times)

0 Members and 2 Guests are viewing this topic.

Re: Should I install a swap partition on an SSD?
« Reply #6 on: April 30, 2015, 11:41:44 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
I guess I was just planning/thinking ahead(bit OCD also), and just try to keep all my installs consistent/standard

So on 1st Disk(SSD) I have / and swap, and if I want to have multiple OS's the /swap is there for all to share(save disk space, and I don't hibernate)
2nd disk /home /mnt/data /rescue /vbox  ~ and I bind certain /home/??? dir's to matching dir's in /mnt/data/??? ~ and the /rescue is for local quick backups/recovery

I can then be quite selective on what/when get's backed up to my NAS

I guess we all have different ideas...
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Should I install a swap partition on an SSD?
« Reply #5 on: April 30, 2015, 10:48:09 AM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1255
    Posts
  • Reputation: 139
    • View Profile

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
How much ram on this unit? I see 16 gig in your profile so if we are talking 16 gig of ram in computer.
Why put /swap on SSD?

Running a SSD here with 5 gig (profile drop down only gives 4 or 6 as options) and I survive just fine on

Code: [Select]
$ sudo parted -l
[sudo] password for harry:
Model: ATA D2CSTK181M11-018 (scsi)
Disk /dev/sda: 180GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  9438MB  9437MB  primary  ext4         boot
 2      9438MB  180GB   171GB   primary  ext4


Model: RIM BlackBerry SD (scsi)
Disk /dev/sdb: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      4201kB  15.9GB  15.9GB  primary  fat32        lba


Model: RIM BlackBerry (scsi)
Disk /dev/sdc: 922MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  922MB  922MB  fat16


Just wondering is all.
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
 

Re: Should I install a swap partition on an SSD?
« Reply #4 on: April 30, 2015, 07:19:08 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi,

I have Samsung SSD's, 3X standard 2.5" and 2 X mSATA
On my Laptop only have a 2.5" SSD, and on small Pico ITX I only have mSATA, so did not have a choice.
Some of these devices are now rated for Terrabyte daily read/write access.

Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Should I install a swap partition on an SSD?
« Reply #3 on: April 30, 2015, 06:50:46 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
Thanks Dave, this is really helpful.
My SSDs are all newly bought, so presumably will be robust enough, as you mention, for occasional swap activity

Mike
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: Should I install a swap partition on an SSD?
« Reply #2 on: April 30, 2015, 06:37:36 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi,

There is/was a number of different technologies used in making SSD's.
The older 1st generation disks did suffer from "cell wear", the sector would be marked bad, and set "Read Only".

The newer generation of disk are magnitudes more reliable.
Most come with 3-5 years warranty, they are being used 24/7 in data centres, so I wouldn't worry, I don't, I have 5.


But to answer you question...

The use of a swap file really comes down to your usage and how much memory you have.?
If you want to hibernate your devices, you need a swap file
If you don't want to hibernate, and have 4GB+ again probably don't need one for normal usage.

They are typically needed when you you are using apps doing intensive memory/disk/file access, like Video/Audio editing.
I have swap on my systems, I don't think it's ever been used.

Dave

Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Should I install a swap partition on an SSD?
« Reply #1 on: April 30, 2015, 01:23:15 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
I've seen one or two sources on the internet say that creating a swap partition on an SSD is inadvisable, as it would shorten the life of the SSD significantly due to the continual rewrites.  I am a bit sceptical about this, as when my LL laptop is configured correctly, it hardly uses much swap.  Also on my setups swap areas are never more than 4 to 10 GB in size, so the purported wear-n-tear would be only on a limited area (2-5% of the total size) for a drive that is around 250 GB total size.  I'd appreciate your views...

Many thanks
Mike
« Last Edit: April 30, 2015, 03:57:18 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section