LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 09-05-2009, 07:04 PM   #1
ler0nldb2
LQ Newbie
 
Registered: Aug 2009
Posts: 28
Thanked: 0
How to configure a swap file


[Log in to get rid of this advertisement]
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.
linuxubuntu ler0nldb2 is offline  
Tag This Post , ,
Reply With Quote
Old 09-05-2009, 07:56 PM   #2
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 72
Thanked: 10
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,
windows_xp_2003 jhcaiced is offline     Reply With Quote
Thanked by:

Reply

Bookmarks


Thread Tools

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
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
swap file vs. swap partition verndog Ubuntu 5 05-09-2008 06:06 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 07:20 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration