VM Vs Swap space
hi
if somebody can tell me that is this correct?
can i say that swap area created by linux is nothign but virtual memory. is it correct to use the term interchangeably
thanks
ankit
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · Ankit Jain
hi
if somebody can tell me that is this correct?
Quoted 9 lines
(1)can i say that swap area created by linux is nothign but virtual memory. (2)is it correct to use the term interchangeably
thanks
ankit
(1) A swap file or swap partition can be used as virtual memory.
(2) I am not sure. Why one would wish to use 'swap area' interchangeably with 'virtual memory'.
:-|
Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
swap area forms a part of the memory which is used for the memory objects like the stack when executable
starts running. This anonymous segment will grow dependin upon the pattern of the functions calls in ur executable
Quoted 24 lines · chuck gelm
Quoted 4 lines · Ankit Jain
hi
if somebody can tell me that is this correct?
Quoted 9 lines
(1)can i say that swap area created by linux is nothign but virtual memory. (2)is it correct to use the term interchangeably
thanks
ankit
(1) A swap file or swap partition can be used as virtual memory.
(2) I am not sure. Why one would wish to use 'swap area' interchangeably with 'virtual memory'.
:-|
Chuck
Quoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
how will u differentiate virtual memory and swap area
thanks
ankit
Quoted 17 lines · --- chuck gelm
Quoted 5 lines · Ankit Jain
hi
if somebody can tell me that is this correct?
(1)can i say that swap area created by linux is
nothign
Quoted 1 line
but virtual memory. (2)is it correct to use the
term
Quoted 7 lines
interchangeably
thanks
ankit
Quoted 10 lines
(1) A swap file or swap partition can be used as virtual memory.
(2) I am not sure. Why one would wish to use 'swap area'
interchangeably with 'virtual memory'.
:-|
Chuck
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Virtual Memory is a policy. Swap Area is a artifact, u use to implement this policy
Hope makes sense
Quoted 40 lines · Ankit Jain
how will u differentiate virtual memory and swap area
thanks
ankit
Quoted 17 lines · --- chuck gelm
Quoted 5 lines · Ankit Jain
hi
if somebody can tell me that is this correct?
(1)can i say that swap area created by linux is
nothign
Quoted 1 line
but virtual memory. (2)is it correct to use the
term
Quoted 7 lines
interchangeably
thanks
ankit
Quoted 10 lines
(1) A swap file or swap partition can be used as virtual memory.
(2) I am not sure. Why one would wish to use 'swap area'
interchangeably with 'virtual memory'.
:-|
Chuck________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
Quoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
well if we dont have a swap area then shall i say my system dosent have virtual memory
is this correct? because i feel even if this swap area is not there then also virtual memory concept exists?
thanks
ankit
Quoted 30 lines · --- kernel kernel
Virtual Memory is a policy. Swap Area is a
artifact, u use to
implement this policyHope makes sense
Quoted 1 line · Ankit Jain
how will u differentiate virtual memory and swap
area
Quoted 19 lines
thanks
ankit
Quoted 14 lines · --- chuck gelm
Quoted 5 lines · Ankit Jain
hi
if somebody can tell me that is this correct?
(1)can i say that swap area created by linux is
nothign
Quoted 1 line
but virtual memory. (2)is it correct to use the
term
Quoted 4 lines
interchangeably
thanks
Quoted 17 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
ankit
(1) A swap file or swap partition can be used as
virtual memory.
(2) I am not sure. Why one would wish to use'swap
Quoted 9 lines
Quoted 7 lines
area'
interchangeably with 'virtual memory'.
:-|
Chuck
________________________________________________________________________
Quoted 5 lines
Quoted 5 lines
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
Quoted 10 lines
Quoted 2 lines
-
To unsubscribe from this list: send the line"unsubscribe linux-newbie" in
Quoted 2 lines
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Please read the FAQ at
http://www.linux-learn.org/faqs
Quoted 1 line
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · Ankit Jain
well if we dont have a swap area then shall i say my system dosent have virtual memory
Yes, I think so. I think that it is difficult to say that a system has no 'swap area', because a 'swap area' could be a file.
How can you be sure that none of the files on a system are a 'swap file' ?
I think that you can say that a system has no 'swap' or 'virtual memory' if there are no swap areas enabled.
I suggest that the output of 'free' will indicate your swap. If 'free' indicates that you have no swap, then you have no swap.
If 'free' indicates that you have swap, then you have swap.
Quoted 3 lines
is this correct? because i feel even if this swap area is not there then also virtual memory concept exists?
A system can have a swap partition and not use it.
A system can have a swap file and not use it.
Swap can be enabled and disabled on a running kernel. So, at any given instance, a running system can have or have not 'virtual memory'.
Quoted 72 lines
thanks
ankit
Quoted 66 lines · --- kernel kernel
Virtual Memory is a policy. Swap Area is a
artifact, u use to
implement this policyHope makes sense
Quoted 3 lines · Ankit Jain
how will u differentiate virtual memory and swap
area
Quoted 40 lines
thanks
ankit
Quoted 34 lines · --- chuck gelm
Quoted 7 lines · Ankit Jain
hi
if somebody can tell me that is this correct?
(1)can i say that swap area created by linux is
nothign
Quoted 3 lines
but virtual memory. (2)is it correct to use the
term
Quoted 9 lines
interchangeably
thanks
ankit
(1) A swap file or swap partition can be used as
virtual memory.
(2) I am not sure. Why one would wish to use'swap
Quoted 6 lines
Quoted 6 lines
area'
interchangeably with 'virtual memory'.
:-|
Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 2 lines · Ankit Jain
well if we dont have a swap area then shall i say my system dosent have virtual memory
No.
Quoted 2 lines
is this correct? because i feel even if this swap area is not there then also virtual memory concept exists?
Virtual memory is the reason why applications can think they have 4GB of memory while your physical machine might actually have only 32MB. You don't need to have swap in order to have virtual memory, although its very advantageous to have swap with VM.
Virtual memory maps the viurtual pages (from 0 to 4GB) to actually physical memory pages (from 0 to however much RAM you have). Swapping is the process of using the disk to store physical memory pages when they are not in use, and then restoring them when an application accesses them.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 2 lines · Ankit Jain
well if we dont have a swap area then shall i say my system dosent have virtual memory
No.
Quoted 2 lines
is this correct? because i feel even if this swap area is not there then also virtual memory concept exists?
Virtual memory is the reason why applications can think they have 4GB of memory while your physical machine might actually have only 32MB. You don't need to have swap in order to have virtual memory, although its very advantageous to have swap with VM.
Virtual memory maps the viurtual pages (from 0 to 4GB) to actually physical memory pages (from 0 to however much RAM you have). Swapping is the process of using the disk to store physical memory pages when they are not in use, and then restoring them when an application accesses them.
Pratik.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
In That case, also. There is a implicit Swap area and a Explicit area.
Quoted 21 lines · Pratik Solanki
Quoted 2 lines · Ankit Jain
well if we dont have a swap area then shall i say my system dosent have virtual memory
No.
Quoted 2 lines
is this correct? because i feel even if this swap area is not there then also virtual memory concept exists?
Virtual memory is the reason why applications can think they have 4GB of memory while your physical machine might actually have only 32MB. You don't need to have swap in order to have virtual memory, although its very advantageous to have swap with VM.
Virtual memory maps the viurtual pages (from 0 to 4GB) to actually physical memory pages (from 0 to however much RAM you have). Swapping is the process of using the disk to store physical memory pages when they are not in use, and then restoring them when an application accesses them.
Quoted 9 lines
Pratik.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 7 lines · Ankit Jain
how will u differentiate virtual memory and swap area
thanks
ankit
Virtual memory is swap area in use.
Regards, Chuck
Quoted 32 lines
Quoted 29 lines · --- chuck gelm
Quoted 7 lines · Ankit Jain
hi
if somebody can tell me that is this correct?
(1)can i say that swap area created by linux is
nothign
Quoted 3 lines
but virtual memory. (2)is it correct to use the
term
Quoted 9 lines
interchangeably
thanks
ankit
Quoted 9 lines
Quoted 9 lines
(1) A swap file or swap partition can be used as virtual memory.
(2) I am not sure. Why one would wish to use 'swap area'
interchangeably with 'virtual memory'.
:-|
Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 10 lines · chuck gelm
Quoted 7 lines · Ankit Jain
how will u differentiate virtual memory and swap area
thanks
ankit
Virtual memory is swap area in use.
umm. A running system can or cannot have swap. Correct me if I am wrong but you can't disable virtual memory once its enabled, or at the very least it would be extremely tough to do so and I don't know of any system that does it. Virtual memory is enabled when the kernel starts up and stays that way. Swap is a different issue.
Pratik.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
A message that is not in the archive (sent off-list or not yet received): [email protected]
[CCing linux-newbie]
Quoted 4 lines · Ankit Jain
well i dont know exactly but somewhat i feel that there must be some way to disable the virtual memory. yaa of course there should be some way. it is not that sys cant work without it
Yes, you can have a system without virtual memory. Search for MMUless linux kernel and you'll see patches/websites.
My point was that disabling VM after its been enabled would tough (if not impossible). Someone correct me if I am wrong here.
Pratik.
Quoted 43 lines
ankit
--- Pratik Solanki <[email protected]>Quoted 25 lines · wrote:
Quoted 3 lines · chuck gelm
Quoted 1 line · Ankit Jain
how will u differentiate virtual memory and swap
area
Quoted 7 lines
Quoted 6 lines
thanks
ankit
Virtual memory is swap area in use.
umm. A running system can or cannot have swap. Correct me if I am
wrong but you can't disable virtual memory once its enabled, or at the
very least it would be extremely tough to do so and I don't know of
any system that does it. Virtual memory is enabled when the kernel
starts up and stays that way. Swap is a different issue.Quoted 12 lines
Pratik.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.linux-learn.org/faqs
Quoted 5 lines
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 13 lines · Pratik Solanki
[CCing linux-newbie]
Quoted 6 lines · Ankit Jain
well i dont know exactly but somewhat i feel that there must be some way to disable the virtual memory. yaa of course there should be some way. it is not that sys cant work without it
Quoted 8 lines
Yes, you can have a system without virtual memory. Search for MMUless linux kernel and you'll see patches/websites.
My point was that disabling VM after its been enabled would tough (if not impossible). Someone correct me if I am wrong here.
Pratik.
I was thinking that an active swap partition was 'virtual memory'. Why are many folks using capital letters 'VM'. Am I missing something? Is 'VM' == virtual memory or is there a application or service called 'VM' ?
Anywho, the only 'virtual memory' I know of is an active swap file or swap partition and either can be started or stopped in a running kernel.
(I think.)
Regards, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 28 lines · chuck gelm
Quoted 13 lines · Pratik Solanki
[CCing linux-newbie]
Quoted 5 lines · Ankit Jain
well i dont know exactly but somewhat i feel that there must be some way to disable the virtual memory. yaa of course there should be some way. it is not that sys cant work without it
Quoted 8 lines
Yes, you can have a system without virtual memory. Search for MMUless linux kernel and you'll see patches/websites.
My point was that disabling VM after its been enabled would tough (if not impossible). Someone correct me if I am wrong here.
Pratik.
I was thinking that an active swap partition was 'virtual memory'. Why are many folks using capital letters 'VM'. Am I missing something? Is 'VM' == virtual memory or is there a application or service called 'VM' ?
Quoted 6 lines
Anywho, the only 'virtual memory' I know of is an active swap file or swap partition and either can be started or stopped in a running kernel.
(I think.)Regards, Chuck
From "Understanding the Linux Kernel":
"Virtual memory acts as a logical layer between the application memory requests and the hardware Memory Management Unit (MMU)."
It is an abstraction of system memory to provide an architecture-independent memory interface. It allows for a great many things, including swap functionality, but its primary function is to make the details of memory management invisible to application programmers. You just malloc() some memory, and you don't have to worry overmuch about far jumps, hardware cache alignment, or other annoying stuff.
It also allows large malloc() calls to succeed, even if physical memory is completely fragmented, by maintaining a set of page tables that allow virtual-to-physical mapping of memory addresses.
This is one of the most challenging areas of kernel development, and very hardware-specific. I tried to understand how it worked recently, gave myself a splitting headache after 30 minutes, and decided to let it sit for another year or so until I understand kernel internals, computer architecture, and assembler much better than I do now :)
Jim
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 21 lines · chuck gelm
Quoted 19 lines · Pratik Solanki
[CCing linux-newbie]
Quoted 6 lines · Ankit Jain
well i dont know exactly but somewhat i feel that there must be some way to disable the virtual memory. yaa of course there should be some way. it is not that sys cant work without it
Yes, you can have a system without virtual memory. Search for MMUless linux kernel and you'll see patches/websites.
My point was that disabling VM after its been enabled would tough (if not impossible). Someone correct me if I am wrong here.
Quoted 6 lines
Quoted 2 lines
Pratik.
I was thinking that an active swap partition was 'virtual memory'. Why are many folks using capital letters 'VM'. Am I missing something? Is 'VM' == virtual memory or is there a application or service called 'VM' ?
Yes, VM is virtual memory.
Quoted 4 lines
Anywho, the only 'virtual memory' I know of is an active
swap file or swap partition and either can be started or stopped in a running kernel.
(I think.)
Swap can be started or stopped. Virtual memory cannot be started or stopped. Just because you stopped swap does not mean the kernel is not using virtual memory. The kernel always uses virtual memory (except if its MMUless) . Swap is used only when the kernel needs more memory than what's physically available.
Pratik.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs