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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-23-2004, 12:54 AM
|
#1
|
LQ Newbie
Registered: Mar 2004
Location: Pune,India
Distribution: RedHat 8.0
Posts: 14
Rep:
|
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
|
|
|
03-23-2004, 01:01 AM
|
#2
|
Member
Registered: Aug 2003
Distribution: RedHat9/FedoraCore1
Posts: 73
Rep:
|
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 01:02 AM.
|
|
|
03-23-2004, 01:04 AM
|
#3
|
Member
Registered: Apr 2003
Distribution: gentoo
Posts: 238
Rep:
|
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 09:21 AM.
|
|
|
03-23-2004, 01:20 AM
|
#4
|
LQ Newbie
Registered: Mar 2004
Location: Pune,India
Distribution: RedHat 8.0
Posts: 14
Original Poster
Rep:
|
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
|
|
|
03-23-2004, 01:55 AM
|
#5
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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.
|
|
|
03-23-2004, 02:02 AM
|
#6
|
Member
Registered: Nov 2003
Location: over there
Distribution: Debian Testing
Posts: 191
Rep:
|
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.
|
|
|
03-23-2004, 02:57 AM
|
#7
|
LQ Newbie
Registered: Mar 2004
Location: Pune,India
Distribution: RedHat 8.0
Posts: 14
Original Poster
Rep:
|
ok
thnax a lot!!!
Regards
|
|
|
03-23-2004, 05:56 AM
|
#8
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
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
|
|
|
03-23-2004, 06:09 AM
|
#9
|
Member
Registered: Apr 2003
Posts: 883
Rep:
|
|
|
|
03-24-2004, 03:51 PM
|
#10
|
Member
Registered: Feb 2004
Location: Knoxville TN
Distribution: gentoo
Posts: 104
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|