LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-22-2004, 11:54 PM   #1
Santosh_d
LQ Newbie
 
Registered: Mar 2004
Location: Pune,India
Distribution: RedHat 8.0
Posts: 14

Rep: Reputation: 0
how to use swap more than the physical memory


hi all,
my problem is that i want to use more of the swap space instead of the physical memory...the normal operation is -- first the system uses the physical memory and once all memory is consumed, the swap space is used....i want to somehow change this default behaviour and use the swap more.
is this possible?? and how??

thanx
Regards
 
Old 03-23-2004, 12:01 AM   #2
tiger7007
Member
 
Registered: Aug 2003
Distribution: RedHat9/FedoraCore1
Posts: 73

Rep: Reputation: 15
linux isnt like windows where u can config the swap memory and it will uses the window$ c: d: partion's linux creates a swap partion for better access insted the way it works is that when u install linux ,linux creates swap partion that doubles ur memory for example i have 256 physical memory so my swap partion is 500mb so for what i know so far ull have to create the partion's all over agian to make the swap partion bigger unless u have unused space on the hard drive wich in this case u can use parted or fdisk to recreate the swap partion. goodluck

Last edited by tiger7007; 03-23-2004 at 12:02 AM.
 
Old 03-23-2004, 12:04 AM   #3
arrruken
Member
 
Registered: Apr 2003
Distribution: gentoo
Posts: 238

Rep: Reputation: 30
You wouldnt want the system using more swap than memory, the reason:
most hard drives transfer around 30-40 mbp/s, vs. ddr 2700 memory transfering at 2.7 gbp/s.

Last edited by arrruken; 03-23-2004 at 08:21 AM.
 
Old 03-23-2004, 12:20 AM   #4
Santosh_d
LQ Newbie
 
Registered: Mar 2004
Location: Pune,India
Distribution: RedHat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
the thing is...i want to make some applications(postfix) use swap instead of physical memory so that this memory can be utilised by other applications that really need fast memory...thats all..is this possible??

thanx
 
Old 03-23-2004, 12:55 AM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Dude - unless you're trying to reduce your system performance to be as slow as possible, you will want to let your RAM handle as much work as possible, and only use the swap as a last resort. As arrruken states, data transfer rates on a hard drive are measured in Megs per second, but in RAM they are measured in Gigs per second. With all due respect, trying to set up your system to use swap as the default memory source simply isn't a good idea.

Keep in mind that swap only comes into play when physical memory is exhausted, and the system needs to swap out the least used pages. Unless your system is operating at maximum capacity at all times, you would want RAM to do the work, not force swap to do it as the default. -- J.W.
 
Old 03-23-2004, 01:02 AM   #6
Brane Ded
Member
 
Registered: Nov 2003
Location: over there
Distribution: Debian Testing
Posts: 191

Rep: Reputation: 30
If you're getting freaked out because of a memory monitor, don't sweat it. A large portion of your used memory is just cached stuff that's freed up when other programs need it. You shouldn't worry about swap unless you actually see your swap space being used regularly, and in large amounts.
 
Old 03-23-2004, 01:57 AM   #7
Santosh_d
LQ Newbie
 
Registered: Mar 2004
Location: Pune,India
Distribution: RedHat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
ok
thnax a lot!!!
Regards
 
Old 03-23-2004, 04:56 AM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Thanks Brane Ded,I did not understand,but you made it simple for me to understand,I had rebooted after a few day because I thought<dangerous>something was wrong because I was using so much memery,but swap has never been used,if you could explain a little more would be great,thanks david
 
Old 03-23-2004, 05:09 AM   #9
mjolnir
Member
 
Registered: Apr 2003
Posts: 661

Rep: Reputation: 68
Here is a nice link on linux memory:
http://www.xenotime.net/linux/doc/swap-mini-howto.txt
 
Old 03-24-2004, 02:51 PM   #10
Crazy Travis
Member
 
Registered: Feb 2004
Location: Knoxville TN
Distribution: gentoo
Posts: 104

Rep: Reputation: 15
linux doesn't allocate memory like windows. if you see memory not acting like windows most of the time you don't have to worry about it.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Less physical memory? ariek Debian 5 07-21-2005 02:23 PM
Fedora Core swap with other OS, no physical access. Installation possibilities? r00tsec Linux - Software 1 02-07-2005 02:07 AM
get Physical memory in C/C++ Dreampainter Programming 1 10-30-2004 08:54 PM
How Much Physical Memory ? tied2 Linux - Newbie 3 06-17-2002 01:30 AM
swap drive, physical memory glock19 Linux - General 6 03-08-2002 04:29 PM


All times are GMT -5. The time now is 03:03 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