LinuxQuestions.org
Help answer threads with 0 replies.
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 09-29-2011, 10:37 AM   #1
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Rep: Reputation: Disabled
Virtual Memory


Well how would I setup virtual mem in Kubuntu? PS I don't have Internet. Posting from iPod.
 
Old 09-29-2011, 11:05 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Virtual memory is always in use in Linux. If you mean swap space, most distributions enable that by default on installation. You can check in a terminal with the 'free' command:
Code:
$ free
             total       used       free     shared    buffers     cached
Mem:       8179520    5034952    3144568          0     348256    2102964
-/+ buffers/cache:    2583732    5595788
Swap:      4193276          0    4193276
The above shows a 4GB swap configuration.
 
Old 09-29-2011, 04:17 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,557

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Just in case, I'll ask. What do you mean virtual memory? Normally it is this.

http://www.redhat.com/magazine/001nov04/features/vm/

Dunno how much of this is still current but I think it is useful.

http://citeseerx.ist.psu.edu/viewdoc...=rep1&type=pdf


I get the feeling you might mean what macemoneta says about swap file since it is close to the windows name.

You might be asking about ramdisks too?

Last edited by jefro; 09-29-2011 at 09:24 PM.
 
Old 09-29-2011, 06:01 PM   #4
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Original Poster
Rep: Reputation: Disabled
No/Yes Like in win xp : computer proErtys , advanced , performance, advanced, virtual memory; that's the sort of control I want is there anything like that?
 
Old 09-29-2011, 06:38 PM   #5
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
You make a swap partition, then you turn that partition into swap space, and turn on the swap space. You can use the "free" or "top" commands, read the values for "swap" that they show.

For example, on my computer, top shows this line:

Swap: 7340024k total, 326764k used, 7013260k free, 152088k cached

free shows this:

Swap: 7340024 326748 7013276

Last edited by snooly; 09-29-2011 at 06:39 PM.
 
Old 09-29-2011, 08:36 PM   #6
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,087

Rep: Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110
Quote:
Originally Posted by Zssfssz View Post
Like in win xp : computer proErtys , advanced , performance, advanced, virtual memory
That lets you set the size of the page file on each partition, or let Windows control it.

XP page file serves the same purpose as Linux swap space. You can set up swap space as swap partitions or as swap files on whatever filesystem partition you like (more flexibility than Windows) but there is no direct option to have a dynamically sized swap file similar to Windows page files.
 
Old 09-29-2011, 08:47 PM   #7
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,749

Rep: Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462
To build on what johnsfine said, Linux by default does not handle swap the way Windows does.

Linux swaps to a partition of a fixed size dedicated to that purpose, so the swap file size, location, and other controls in Windows are meaningless to Linux.

(Occasionally on very small hard drives with non-standard installs, you might see a swap file instead of a swap partition, but it is a little used and little useful choice.)
 
Old 09-29-2011, 09:26 PM   #8
jefro
Guru
 
Registered: Mar 2008
Posts: 11,557

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
By default many distro's make a swap partition. Many people never need any of it or use it.

Try top command too for current list of resources.
 
Old 09-29-2011, 11:26 PM   #9
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Original Poster
Rep: Reputation: Disabled
Thanks just wanted to know I only have 256 megs of ram and rely heavily on virtual memory.
 
  


Reply

Tags
memory


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
Application Virtual address space memory allocation - memory does not get free chamara82 Linux - General 4 01-01-2011 08:19 PM
pthreads virtual memory usage -- memory is not freed after thread exit minimol Linux - General 2 05-26-2009 01:19 AM
Linux shared memory segment access problem and x86 Virtual Memory layout. regmee Linux - Kernel 1 08-23-2008 12:11 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
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


All times are GMT -5. The time now is 03:41 PM.

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