Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

SSD with or without swap partition?


  • Please log in to reply
29 replies to this topic

#1 devilus

devilus

  • Members
  • 335 posts
  • OFFLINE
  •  
  • Local time:03:35 AM

Posted 22 March 2018 - 03:48 AM

Some people say a swap partition would shorten SSD's life. Not sure if I should create a swap partiton when I'm ready to install Linux Mint. Have 4 GB RAM.


Self-built PC, Lian-Li PC-A70B, GA-EX38-DS5, Intel Core 2 Duo 3GHz, Leadtek 9600GT, Kingston 4GB DDR2, Enermax Galaxy 850W

Selective boot (F12):

Vista Ultimate SP2 32bit, installed 2008, Samsung HD502HJ (500GB, SATA)

Windows 7 Ultimate SP1 64bit, installed 2016, Samsung 850 EVO (120GB, SSD)

Linux Mint 18.3 Cinnamon 64 bit, installed 2018, Intel 320 (120GB, SSD)


BC AdBot (Login to Remove)

 


#2 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 12,373 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:11:35 AM

Posted 22 March 2018 - 04:34 AM

I wouldnt worry about it, Create the swap partition on the SSD. With 4 GiB of ram you shouldnt need more than 1 GiB swap.


Edited by NickAu, 22 March 2018 - 04:34 AM.


#3 Rocky Bennett

Rocky Bennett

  • Members
  • 2,535 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Mexico, USA
  • Local time:07:35 PM

Posted 22 March 2018 - 04:38 AM

With just 4 gb of RAM I would create a swap partition. I have 16 gb of RAM so I do not create a swap partition. Your choice though.


594965_zpsp5exvyzm.png


#4 devilus

devilus
  • Topic Starter

  • Members
  • 335 posts
  • OFFLINE
  •  
  • Local time:03:35 AM

Posted 22 March 2018 - 05:00 AM

With just 4 gb of RAM I would create a swap partition. I have 16 gb of RAM so I do not create a swap partition. Your choice though.

 

 

I wouldnt worry about it, Create the swap partition on the SSD. With 4 GiB of ram you shouldnt need more than 1 GiB swap.

 

Thanks. I'll do it. :thumbup2:


Self-built PC, Lian-Li PC-A70B, GA-EX38-DS5, Intel Core 2 Duo 3GHz, Leadtek 9600GT, Kingston 4GB DDR2, Enermax Galaxy 850W

Selective boot (F12):

Vista Ultimate SP2 32bit, installed 2008, Samsung HD502HJ (500GB, SATA)

Windows 7 Ultimate SP1 64bit, installed 2016, Samsung 850 EVO (120GB, SSD)

Linux Mint 18.3 Cinnamon 64 bit, installed 2018, Intel 320 (120GB, SSD)


#5 devilus

devilus
  • Topic Starter

  • Members
  • 335 posts
  • OFFLINE
  •  
  • Local time:03:35 AM

Posted 22 March 2018 - 05:08 AM

And how would you partition an SSD 120GB, please? /boot, /root, /swap, /home whatever.. Regarding partition sizes!


Self-built PC, Lian-Li PC-A70B, GA-EX38-DS5, Intel Core 2 Duo 3GHz, Leadtek 9600GT, Kingston 4GB DDR2, Enermax Galaxy 850W

Selective boot (F12):

Vista Ultimate SP2 32bit, installed 2008, Samsung HD502HJ (500GB, SATA)

Windows 7 Ultimate SP1 64bit, installed 2016, Samsung 850 EVO (120GB, SSD)

Linux Mint 18.3 Cinnamon 64 bit, installed 2018, Intel 320 (120GB, SSD)


#6 mremski

mremski

  • Members
  • 491 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NH
  • Local time:09:35 PM

Posted 22 March 2018 - 06:50 AM

Why not just see what the defaults are from the installer?  Most distributions wind up doing a /boot, a /swap and the rest as one big /.  If your hardware permits it, I prefer to have a separate device (disk) for /home and any other user data directories.  Makes it much easier when you upgrade the OS or you have to recover something.  Your user data is the critical part of a computer, the OS and applications can always be reinstalled, but loss of your user data is usually a show stopper.

 

Just my opinions, take it for what it cost you.  Others may agree, disagree, that's fine. 


FreeBSD since 3.3, only time I touch Windows is to fix my wife's computer


#7 devilus

devilus
  • Topic Starter

  • Members
  • 335 posts
  • OFFLINE
  •  
  • Local time:03:35 AM

Posted 22 March 2018 - 07:06 AM

Why not just see what the defaults are from the installer?  Most distributions wind up doing a /boot, a /swap and the rest as one big /. ...

I didn't know that there are default ones during installation. Thanks.


Self-built PC, Lian-Li PC-A70B, GA-EX38-DS5, Intel Core 2 Duo 3GHz, Leadtek 9600GT, Kingston 4GB DDR2, Enermax Galaxy 850W

Selective boot (F12):

Vista Ultimate SP2 32bit, installed 2008, Samsung HD502HJ (500GB, SATA)

Windows 7 Ultimate SP1 64bit, installed 2016, Samsung 850 EVO (120GB, SSD)

Linux Mint 18.3 Cinnamon 64 bit, installed 2018, Intel 320 (120GB, SSD)


#8 MadmanRB

MadmanRB

    Spoon!!!!


  • Members
  • 2,604 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:No time for that when there is evil afoot!
  • Local time:09:35 PM

Posted 22 March 2018 - 08:27 AM

I dunno I dont think its a good idea to have your swap on a SSD, if this is a laptop then i guess you have no choice but if a desktop please put it on a platter drive.


You know you want me baby!

Proud Linux user and dual booter.

Proud Vivaldi user.

 

ljxaqg-6.png


#9 devilus

devilus
  • Topic Starter

  • Members
  • 335 posts
  • OFFLINE
  •  
  • Local time:03:35 AM

Posted 22 March 2018 - 09:33 AM

I dunno I dont think its a good idea to have your swap on a SSD, if this is a laptop then i guess you have no choice but if a desktop please put it on a platter drive.

This will be the third drive in my desktop case. I have several spare disks lying around and the smaller one is an Intel 320 SSD (120GB). I don't want to use one with bigger capacity (say, 1 TB WD HDD).

 

I am confused now. To create or not to create. That is the question. :rolleyes:


Self-built PC, Lian-Li PC-A70B, GA-EX38-DS5, Intel Core 2 Duo 3GHz, Leadtek 9600GT, Kingston 4GB DDR2, Enermax Galaxy 850W

Selective boot (F12):

Vista Ultimate SP2 32bit, installed 2008, Samsung HD502HJ (500GB, SATA)

Windows 7 Ultimate SP1 64bit, installed 2016, Samsung 850 EVO (120GB, SSD)

Linux Mint 18.3 Cinnamon 64 bit, installed 2018, Intel 320 (120GB, SSD)


#10 MadmanRB

MadmanRB

    Spoon!!!!


  • Members
  • 2,604 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:No time for that when there is evil afoot!
  • Local time:09:35 PM

Posted 22 March 2018 - 10:05 AM

Well you dont need that big of a swap partition, 4gigs will do so you can carve up that 1TB drive and dedicate it as a storage drive.

You are using SSD's so you could just partition that HDD to be divided between windows storage and /home.

I just know that a SSD isnt that great for swap, many linux communities say no to that


Edited by MadmanRB, 22 March 2018 - 10:06 AM.

You know you want me baby!

Proud Linux user and dual booter.

Proud Vivaldi user.

 

ljxaqg-6.png


#11 jonuk76

jonuk76

  • Members
  • 2,137 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Wales, UK
  • Local time:02:35 AM

Posted 22 March 2018 - 10:38 AM

I think the concerns about swap files etc. causing wear on SSD's are probably overblown these days anyway.  Perhaps it was more valid in the early days of SSD's (what, 8-10 years ago), but now they are mainstream, and a pretty stable technology which mostly will outlast the computer they are installed in...

 

I think with 8 Gb RAM I've only seen it used when I was editing a large QHD video on it.  99% of the time in Linux for me anyway, the system reports that 0% swap space is in use.  I think I can say with confidence Windows uses the swap file a lot more than Linux.  And I don't hear of many Windows users these days moving their swap file to a mechanical HDD which will kill virtual memory performance.


7sbvuf-6.png


#12 mremski

mremski

  • Members
  • 491 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NH
  • Local time:09:35 PM

Posted 22 March 2018 - 11:00 AM

Intel spec sheet on the 320 series SSDs says https://www.intel.com/content/dam/support/us/en/documents/ssdc/hpssd/sb/Intel_SSD_320_Series_Product_specification.pdf

 

Minimum Useful Life/Endurance Rating     5 years
The SSD will have a minimum of five years of useful life under
typical client workloads with up to 20 GB of host writes per day

FreeBSD since 3.3, only time I touch Windows is to fix my wife's computer


#13 paul88ks

paul88ks

  • Members
  • 1,272 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Dallas,Texas
  • Local time:08:35 PM

Posted 22 March 2018 - 12:21 PM

Depending on the manufacturer of your SSD,you will need to "provision" the the Drive with about 10% empty at the end of the drive. Samsung drives do this automatically,but I don't know about other drives. Doing this will lengthen the life of your SSD. As far as swap,I don't use a swap partition on any of my SSD's,but I have a lot of RAM 32 gigs,so I don't need a swap partition.



#14 devilus

devilus
  • Topic Starter

  • Members
  • 335 posts
  • OFFLINE
  •  
  • Local time:03:35 AM

Posted 22 March 2018 - 12:38 PM

Depending on the manufacturer of your SSD,you will need to "provision" the the Drive with about 10% empty at the end of the drive. Samsung drives do this automatically,but I don't know about other drives. Doing this will lengthen the life of your SSD. ..

 

Yes, I remember that I read about this empty (unallocated) space somewhere on the net. I'll keep that in mind. :thumbup2:

 

EDIT: From Intel Community,

"...

Intel Solid State Drives come pre-configured with 7% to 10% over provisioning space. This is beyond the advertised drive capacity and is not visible to the user. For example: 550GB - 7% (38GB) = 512GB.

 

As a result, it is not necessary for users to manually over-provision their Intel SSDs..."


Edited by devilus, 22 March 2018 - 01:30 PM.

Self-built PC, Lian-Li PC-A70B, GA-EX38-DS5, Intel Core 2 Duo 3GHz, Leadtek 9600GT, Kingston 4GB DDR2, Enermax Galaxy 850W

Selective boot (F12):

Vista Ultimate SP2 32bit, installed 2008, Samsung HD502HJ (500GB, SATA)

Windows 7 Ultimate SP1 64bit, installed 2016, Samsung 850 EVO (120GB, SSD)

Linux Mint 18.3 Cinnamon 64 bit, installed 2018, Intel 320 (120GB, SSD)


#15 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 12,373 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:11:35 AM

Posted 22 March 2018 - 03:07 PM

 

Windows uses the swap file a lot more than Linux.  And I don't hear of many Windows users these days moving their swap file to a mechanical HDD which will kill virtual memory performance.

 

Exactly.

 

My SSD came with a 5 year warranty,  It's now 3 years old and there are no problems with it, I also run Vm's on it.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users