LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-11-2014, 09:35 PM   #1
IwannaSlack
Member
 
Registered: Jul 2008
Location: Maryland
Distribution: Failing at Linux
Posts: 106

Rep: Reputation: 15
Slackware Partitioning Question


These are questions I always never really got a question for that although simple maybe someone can give me some insight? The Swap partition how big is to big how small is to small? For example if I had 16gigs of ram would I even need a swap? If I had 1gig of ram could I make a 15gig swap?! Is that a waste? Would a 3gig swap with 1gig of ram be bad? How big should

root/Boot/Home be? I see some people have partitions for usrs and so forth why is this needed? I just want someone to explain these things.

-Thanks
 
Old 04-11-2014, 09:53 PM   #2
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 245

Rep: Reputation: 26
some info here about system layouts, not much about swap size, I have 16 gigs of ram and use this to disable swap
echo 0 > /proc/sys/vm/swappiness

found this somewhere: Linux won't use swap at all unless physical memory is completely filled.
 
Old 04-11-2014, 09:59 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,469

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
RAM has gotten so plentiful that it has turned a lot of the old swap "rules of thumb" (for example, swap = 2 x RAM) on their heads.

If you have 16 GB RAM, you might not "need" a swap partition. However, if this is a machine that you would want to hibernate, you should have a swap partition that is slightly larger than the amount of RAM, as hibernate saves RAM to swap. If you have one GB RAM, two GB swap would likely be plenty (the amount of RAM is small enough that the old rule comes into play).

I have a machine with eight GB RAM and 500 GB HDD. I gave it 9 GB swap because of the "hibernate" feature--I hardly ever use it, but I like to have it available. On another machine that has four GB RAM, I set up four GB swap, and the system seldom uses more that one GB of that.

If "hibernate" is not a feature you would use and you have umpty-ump GB of RAM, you still might want a gig or two of swap, so the swapping does not take place to the active partition.

A separate "home" partition is nice, but not essential, in that you can install a new/updated OS and not touch the data files in /home. This article should tell you more. http://www.howtogeek.com/howto/35676...your-linux-pc/

I have never created a separate "boot" partition on my own, but some distros will do so automatically if you use their automatic partitioning tools.

Hope this helps.

Last edited by frankbell; 04-11-2014 at 10:04 PM.
 
Old 04-11-2014, 10:37 PM   #4
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, Slackware-14.1, PCBSD-10.0
Posts: 2,920
Blog Entries: 15

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
Most compiling projects will require a swap space of at least 4-8 GB but if you have 6+GB of RAM you can actually limit swap to 4 GB to be perfectly safe. If you're running a server system and have high RAM you should at least have 25-50% of your RAM as an emergency stop-gap. If a desktop/workstation you should use at least 4-8 GB depending on how much you'll be compiling and re-compiling. You should never go without a swap though even on modern systems.
 
Old 04-12-2014, 10:43 AM   #5
metaschima
Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 992

Rep: Reputation: Disabled
I go without swap on a modern system and nothing bad happens. I have 8GB of RAM and I've never run out so far. I used to run out when I had 2GB on my previous system and I compiled something massive with '-j4'. However, with '-j2' or '-j3' it compiled fine.

The reason I hate swap is because the computer slows to crawl when some buggy program decides to hog all the RAM. It takes me much longer to kill the program than it does the OOM killer. Go OOM killer !
 
Old 04-12-2014, 12:40 PM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,011

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
The swap part has been covered (I have 8 GB RAM and a 10 GB swap partition, no problems with large, complex compilation or anything else).

I create a bunch of partitions, one for root, one for /home, one for /usr/local, one for /opt, one for /var/lib/mysql, one for /var/lib/pgsql, one for /var/lib/virtual, one /spares.

All of them are 20 GB except /var/lib/virtual (92 GB), /spares (92 GB) and /var/lib/pgsql (173 GB).

That's on this machine, I have other servers where the data base systems are separate drives altogether, but all my systems follow the same partitioning.

Why? Well, the root file system is what gets installed by a new Slackware release (I do a full install rather than upgrading) but the rest of them don't get touched by the installation (you simply don't format a partition when you're adding it to fstab). I copy /etc to /spares so I can get configuration back where needed, I install a lot stuff in /usr/local and in /opt that I don't want to have to back off somewhere and then reinstall. /var/lib/virtual contains at least one virtual machine, Win7, and you can imagine the PITA it is to reinstall Win7 from scratch (I don't use it for much of anything but damned if I want to have to reinstall that abortion again).

One desktop, two data base servers and a lap top get a clean install of Slackware up and running in about 20 minutes.

Works for me.

Hope this helps some.
 
1 members found this post helpful.
Old 04-12-2014, 01:09 PM   #7
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64, LFS, Crux
Posts: 192

Rep: Reputation: 25
Quote:
/var/lib/virtual contains at least one virtual machine, Win7, and you can imagine the PITA it is to reinstall Win7 from scratch (I don't use it for much of anything but damned if I want to have to reinstall that abortion again).
This seems so apt a description, I couldn't help getting a chuckle from it. Thanks! I like your partitioning scheme. Mine is currently not nearly so well refined, but I may base my next install somewhat on ideas spawned from reading about yours. Again, Thanks.

I wish I'd thought to ask around about partitioning more when I was new to linux. Good insights in the thread. This could be a good sticky in "Slackware - Installation" sub-thread.

Last edited by j_v; 04-12-2014 at 01:15 PM.
 
Old 04-12-2014, 02:27 PM   #8
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,045

Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
@IwannaSlack: it's hard to give you a sound advice not knowing what is your hardware (how many hard disks? what capacity?), what you want to install on it and what are the intended usages of your system(s).

Without that information the best answers you can get are like "this is my layout, that I have chosen for such reasons, and that works here". But what's good for me may not be good for you, because there is no general and definitive answer to your question, in other words no "one size fits all" here.

Last edited by Didier Spaier; 04-12-2014 at 03:48 PM.
 
1 members found this post helpful.
Old 04-12-2014, 03:35 PM   #9
Loomx
LQ Newbie
 
Registered: Sep 2012
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
At the other extreme from @tronayne, for simplicity I sometimes use only one partition for everything, then create a swap file.

http://https://wiki.archlinux.org/in..._file_creation

You don't need to worry about one of your partitions filling up, but damage from a runaway log, etc will be less confined. Swings and roundabouts.

Also, hibernation is much more difficult to do (although possible, I believe)
 
Old 04-12-2014, 03:51 PM   #10
IwannaSlack
Member
 
Registered: Jul 2008
Location: Maryland
Distribution: Failing at Linux
Posts: 106

Original Poster
Rep: Reputation: 15
Man I love you guys. Okay so here is the run down.

Main system
Power Supply: Antec NeoECO 620w
Motherboard: ASUS M5A97 R2.0 AM3+
CPU: AMD FX-8350 Vishera 4.0GHz (4.2GHz Turbo)
Operating System : Windows 8.1 64bit Professional
Graphics Card: XFX Core Edition Radeon HD 7850 1GB
Ram: 8GB
Hard Drive: 4TB =(not including a 120gig ssd)

eventually I am trying to dual boot win 8.1 and slackware?

On a older much worse laptop I have 1gig of ram 120gig hdd and intel core 2. I feel like I need only two partions Swap and hDD but I always see people run at least 3. From a VM slackware seems to run fine from a cd in the past it seemed to install fine but now I can't get it to install via flash drive on to the laptops hardrive.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Partitioning Slackware hcolares Linux - Newbie 4 07-09-2010 11:34 PM
Dual Booting Slackware, best Slackware based Distro, and Partitioning...? Novatian Slackware 6 06-07-2010 08:09 PM
Upgrading Slackware; partitioning scheme question introuble Slackware 4 01-21-2006 07:49 PM
Slackware Partitioning. liguorir Linux - Software 1 05-28-2003 07:26 AM


All times are GMT -5. The time now is 04:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration