LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-15-2009, 05:57 AM   #1
xXCanisLupusXx
LQ Newbie
 
Registered: Jan 2009
Location: The Hell That Is England
Distribution: Ubuntu Server, OpenSolaris
Posts: 23

Rep: Reputation: 16
Unhappy Ubuntu Server Won't Use Swap File


Hi, Basically I'm Still New To Linux, And I Seem To Be Having A Problem With Ubuntu Server Not Using My Swap File(Not Partition), And I Have No Idea Why, Iv Tryed Making A New One And It Still Doesn't Use It,

So I Thought Who Better To Ask Then You Guys =]!
I Know It'l Be Something Small Or Silly.

http://92.13.2.57/871532/swap.png
http://92.13.2.57/871532/ram.png

Thanks In Advance
 
Old 02-15-2009, 06:00 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps it doesn' need to swap, since there is enough memory?
 
Old 02-15-2009, 06:14 AM   #3
xXCanisLupusXx
LQ Newbie
 
Registered: Jan 2009
Location: The Hell That Is England
Distribution: Ubuntu Server, OpenSolaris
Posts: 23

Original Poster
Rep: Reputation: 16
I Guess But Isn't The Whole Point In A Swap File To Take Information Out Of Memory That Isn't Being Used Very Often?, Or Does It Only Kick In When Its At A Certain Point?.

Forgive Me I'm An Ex-Microsoft User.
 
Old 02-16-2009, 09:06 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Swap doesn't always get used. I have a system with 768MB ram that I use as a desktop system and the swap is hardly touched.
Code:
free
             total       used       free     shared    buffers     cached
Mem:        775988     461840     314148          0      27576     233800
-/+ buffers/cache:     200464     575524
Swap:       506036          0     506036

Last edited by reddazz; 02-16-2009 at 10:45 AM. Reason: typos
 
Old 02-16-2009, 09:24 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Hi,

Take a look at
http://www.xenotime.net/linux/doc/swap-mini-howto.txt
 
Old 02-16-2009, 09:34 AM   #6
metrofox
Member
 
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
There isn't any need of a swap. Don't worry, my swap doesn't do its job, too. It doesn't need to work lucky...
 
Old 02-16-2009, 10:20 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by xXCanisLupusXx View Post
I Guess But Isn't The Whole Point In A Swap File To Take Information Out Of Memory That Isn't Being Used Very Often?, Or Does It Only Kick In When Its At A Certain Point?.

Forgive Me I'm An Ex-Microsoft User.
Swap indeed only gets active when the kernel "thinks" it
can make better use of the RAM for other purposes. Not
having active swap is a good thing - it means there's
plenty of RAM for caching/buffering available, and there's
no need to try and make any use of RAM other processes
are still holding on to.

Code:
$ free
             total       used       free     shared    buffers     cached
Mem:       1021100     966832      54268          0     216144     258680
-/+ buffers/cache:     492008     529092
Swap:       996020          0     996020
Mine would eventually grow to a few 100K after a few
days of browsing w/o reboot, and viewing images and/or
watching movies.
 
  


Reply

Tags
server, swapfile, ubuntu, using



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
LXer: Running A File- And Print-Server With eBox On Ubuntu 8.04 Server LXer Syndicated Linux News 0 08-28-2008 06:20 PM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 02:02 AM
Need Help Increasing Swap by creating a swap file froggo Red Hat 3 06-13-2006 08:04 AM
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
Fast Question: SWAP-file in Ubuntu disabled by default? Waerner Ubuntu 2 07-14-2005 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 PM.

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
Open Source Consulting | Domain Registration