LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-06-2007, 08:52 AM   #1
Hawky
Member
 
Registered: Oct 2004
Distribution: Ubuntu (Desktops), CentOS (Servers)
Posts: 69

Rep: Reputation: 15
How do you ajust Virtual Memory?


My wife's laptop is very, VERY slow running openSUSE 10.2 due to a low RAM size.

To adjust the virtual memory size in windows is a 2 second job, but I can't seem to find it in SUSE. Any ideas?

Thanks
 
Old 03-06-2007, 09:10 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
To adjust the virtual memory size in windows is a 2 second job, but I can't seem to find it in SUSE. Any ideas?
Linux's "Virtual Memory" is called "swap", and is the size of your swap partition. Your /etc/fstab will tell you which partition is your swap partition.

Increasing swap space is unlikely to help you, because it is slow.

So you can improve performance by:
Adding more RAM
Stopping unnecessary "services" running in the background.
Running a lightweight distro,
Running a lightweight window manager
 
Old 03-06-2007, 09:44 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by tredegar
Linux's "Virtual Memory" is called "swap"
More precisely, virtual memory is (roughly) the sum of RAM and swap space (made of swap partitions and/or swap files).

You are true telling increasing the swap won't help improving performance.

The only point of adding swap space with Linux is to improve reliability in case of virtual memory exhaustion.
Otherwise, random processes may crash because of the "OOM killer".
 
Old 03-06-2007, 09:48 AM   #4
Hawky
Member
 
Registered: Oct 2004
Distribution: Ubuntu (Desktops), CentOS (Servers)
Posts: 69

Original Poster
Rep: Reputation: 15
ah, so that's what the swap is. I've always created one whenever I install a distro, but I've never really looked into what it actually does.
I keep telling her to buy some more RAM, but she won't have it. I guess I'll have to buy her an early Christmas present.

Thanks guys.
 
Old 03-06-2007, 10:50 AM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
In addition to adjusting the virtual memory “size”, you can also adjust the amount that gets used. There is a kernel parameter called “vm.swappiness” which holds a number between 0 and 100 and indicates to the kernel how conservative you want your swap usage to be (0 = no usage, 100 = very liberal usage).
 
  


Reply



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
virtual memory newbiesforever Linux - General 11 06-29-2006 01:07 PM
C and virtual memory abdobl Programming 3 10-04-2004 12:14 PM
anyone using xfce4..screensaver ajust name_in_use450 Linux - General 4 08-29-2004 08:02 PM
Virtual Memory? mikeshn Linux - General 11 01-15-2004 01:47 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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