Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Disk image use
PostPosted: Wed Feb 29, 2012 8:04 am 
Offline
Senior Newbie

Joined: Wed Feb 29, 2012 7:51 am
Posts: 16
Hi all,

Just wanted to check if there is a best practice on how to split the storage?

For example, I have:

Total: 20480 MB
Disk 1: Ubuntu 11.04 LTS Disk Image - 15384 MB, ext3
Disk 2: Swap (1000 MB, swap)

Free: 4096 MB

Now, I would like to re-evaluate the partition in order to ensure that no data is lost when upgrading OS etc. So I am considering creating a new disk just for that and then changing configurations etc. to use that.

Any recommendation?


Top
   
 Post subject: Re: Disk image use
PostPosted: Sat Mar 03, 2012 3:05 am 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
skn wrote:
Disk 2: Swap (1000 MB, swap)

Your swap is way to much, 256 is the recommended size for Linode.

--
Travis


Top
   
 Post subject: Re: Disk image use
PostPosted: Sat Mar 03, 2012 3:09 am 
Offline
Senior Member

Joined: Mon Sep 12, 2011 3:29 am
Posts: 63
ICQ: 1081190
Website: http://kyhwana.org
AOL: kyhwana
Location: New Zealand
skn wrote:
Hi all,

Jus
Total: 20480 MB
Disk 1: Ubuntu 11.04 LTS Disk Image - 15384 MB, ext3
Disk 2: Swap (1000 MB, swap)


You've got too much for flash, go for 256MB or so..


Top
   
 Post subject: Swap = 2*RAM?
PostPosted: Sat Mar 03, 2012 3:36 am 
Offline
Senior Newbie

Joined: Wed Feb 29, 2012 7:51 am
Posts: 16
Isn't the usual recommendation (non virtualised world) to have swap = twice RAM? I am on on Linode 152.


Top
   
 Post subject: Re: Swap = 2*RAM?
PostPosted: Sat Mar 03, 2012 5:49 am 
Offline
Senior Member

Joined: Fri Dec 10, 2010 6:45 pm
Posts: 63
skn wrote:
Isn't the usual recommendation (non virtualised world) to have swap = twice RAM? I am on on Linode 152.

That's the old rule of thumb, but it was conceived a long time ago when RAM was more scarce and memory managers not as evolved. For a server you don't want any swapping ever, but the space should be just large enough that you don't get horrendous disk thrashing if it does happen. The default is probably a good balance, since disk space is at a premium.


Top
   
 Post subject: Re: Swap = 2*RAM?
PostPosted: Sat Mar 03, 2012 9:44 am 
Offline
Junior Member

Joined: Fri Apr 22, 2011 11:53 pm
Posts: 29
skn wrote:
Isn't the usual recommendation (non virtualised world) to have swap = twice RAM? I am on on Linode 152.


You'd be fine with a 1:1 ratio on ram:swap space.


Top
   
 Post subject: closure
PostPosted: Fri Mar 30, 2012 5:35 am 
Offline
Senior Newbie

Joined: Wed Feb 29, 2012 7:51 am
Posts: 16
Just to close this thread. I decide on this setup finally:

Disk 1: Ubuntu 11.04 LTS Disk Image (5120 MB, ext3)
Disk 2: Swap (512 MB, swap)
Disk 3: Content (14848 MB, ext3)

"Content" contains all my /home and data for serving "www" applications running on nginx, sinatra etc.

I used this guide to move my /home from Disk 1 to Disk 2, specifically the "The hard way (multiple directories on same partition)" section
http://linux.chrissweeney.co.uk/topic.php?t=16


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group