LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-05-2009, 07:04 PM   #1
ler0nldb2
LQ Newbie
 
Registered: Aug 2009
Posts: 28

Rep: Reputation: 15
How to configure a swap file


Here is the result of free:

total used free shared buffers cached
Mem: 1024924 666304 358620 0 35024 341772
-/+ buffers/cache: 289508 735416
Swap: 0 0 0

Result of sudo fdisk -l:

Disk /dev/sda: 15.4 GB, 15408046080 bytes
255 heads, 63 sectors/track, 1873 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f8ba6ae

Device Boot Start End Blocks Id System
/dev/sda1 1 3 24066 de Dell Utility
/dev/sda2 * 4 1873 15020775 83 Linux

Please recommend if a swap file is needed to improve performance. If yes, please show me the steps.

Thank you.
 
Old 09-05-2009, 07:56 PM   #2
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
Hi,

You appear to have enough free memory at the time, but in case you
need to make use of more intensive applications the following
URL has a tutorial on how to add swap on a file:

http://www.cyberciti.biz/faq/linux-a...ap-file-howto/

Your other alternative of course is create a partition for your
swap, but you may need to resize your partitions if you don't
have unallocated space.

Best regards,
 
  


Reply

Tags
file, performance, swap


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
swap file vs. swap partition verndog Ubuntu 16 07-09-2012 09:49 PM
Can swap file or a swap partition be mounted and read? Mr-Bisquit Linux - General 3 06-08-2009 03:16 PM
swap file or swap space? simonb1975uk Linux - General 11 08-15-2008 03:39 PM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 03:02 AM
Need Help Increasing Swap by creating a swap file froggo Red Hat 3 06-13-2006 09:04 AM


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

Main Menu
Advertisement
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