LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-27-2003, 04:13 AM   #1
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
virtual memory (swap)


Hi. I'm new to Linux and switched to it (Mandrake 9) from Windows xp some time ago now.. After trying to use the search function with no success (maybe I just didn't use proper search word??), I resorted to ask help here..
My question is: How do I increase the virtual memory in Mandrake?
swap partition is now 495 Mb (hda5), but I'd like to increase it to at least to 1 Gb. Is there a safe and easy way to do this? Other than that, I'm very surprised to see the quality and functions in that spesific OS, and will most certainly buy it (or other linux-based) later on.. Thank you in advance,
starquake
 
Old 03-27-2003, 04:19 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Why on earth do you need that much memory? And what's your memory usage been? You'll find Linux generally uses substantially less than Windows. Anyway - you'll need to use parted or similar app to resize the partition. It's generally safe and reasonably easy. Rule of thumb is to always back up no matter what, of course.
 
Old 03-27-2003, 04:30 AM   #3
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Digiot, thanks for replying. Well, I'm just SOOO new to this and got used to Windozes large swap part.. For me things seem to be loading slower at times with Linux, so I thought that increasing virtual memory would help..
 
Old 03-27-2003, 04:41 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, you can issue the 'free' command or run 'top' to get an idea of the usage. And if you are running slow, more physical memory will always be faster - virtual memory's slower than physical. But if you are running out, neither would hurt.

Still, it's kind of odd that things would be slow for you. Sounds like it might be configuration or compilation issues - like things aren't optimized or set up right for your machine. That would depend on the app and you'd need somebody more knowledgeable than me - I'm pretty new at this myself. Good luck.
 
Old 03-27-2003, 05:58 AM   #5
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
total used free shared buffers cached
Mem: 247404 244156 3248 0 4560 99380
-/+ buffers/cache: 140216 107188
Swap: 506008 47044 45896

I'm new to computers in general, does this tell you or anyone if I have enough memory?? I have 514mb physical. Programs run fine, but I wish the start-up to be quicker.. How do I find if I run something I don't need in the background?
Sorry if these are already asked and answered elsewhere..
 
Old 03-27-2003, 06:26 AM   #6
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
Unless it looks a whole lot worse than this, I would certainly not add more swap space, as you are using less than 10% of it, and much of your used memory is in buffers. Obviously though, given the fact you have 47044 kb swap used something was using it initially at which event you could have experienced your slowdown. Note that you still have about 458964 kb left (you left off the last digit in the cut and paste. (Can you tell if the slowdown you are experiencing while the system is swapping -- say with some monitor like xosview?)

Do you have 2 hard drives installed on your system? If so it could be advantageous to add another swap space on it (you could the reduce the size of the current one) and set them up to run in parallel. Also, you can always get more memory so avoid swapping almost altogether.

Note that if you get in a situation where you are running out of swap, it is possible to quickly add swap space location as a file (even the existing windows .swp file or whatever they are using these days if you still have a windows system on your computer on a vfat fs).
 
Old 03-27-2003, 06:39 AM   #7
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks fsbooks and digiot! I guess I'll just go into store to buy more physical memory afterall.. I'm not experiencing real troubles here so Thanks again..
 
Old 03-27-2003, 08:05 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,414

Rep: Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936Reputation: 1936
BTW: You can have more than one swap partition. The max limits are 8 partitions of 2gb each. Just add them to your /etc/fstab. You can also have swap files similar to windows but will be slower then partitions.

I have 768mb of ram and my MDK 9 uses about 239mb and zero swap. But it depends on what you got running.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap Memory xbill311x Linux - Newbie 2 04-11-2005 02:58 PM
Swap being used before memory gone bmiley_ncaa Linux - Hardware 2 09-29-2004 04:53 PM
no memory swap os2 Programming 2 06-11-2004 01:32 PM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 08:58 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 01:50 PM

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

All times are GMT -5. The time now is 12:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration