- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is there any difference between virtual memory and...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2010 07:21 AM
тАО07-12-2010 07:21 AM
I would like to know whether there is any difference between virtual memory and swap memory.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2010 10:07 AM
тАО07-12-2010 10:07 AM
Solutionor ram and swap. The physical memory is where the programs are running, and
swap is the "spill over". Swap devices are usually parts of a physical hard
drive. Swap allows the total number of processes to exceed the amount of
physical ram, and can be allocated as needed.
Swap refers to a physical memory management strategy (predating UNIX) where entire processes are moved between main memory and secondary storage. Modern virtual memory systems today no longer swap entire processes, but rather use a paging scheme, where individual pages of data and instructions can be paged in from secondary storage as needed, or paged out again to free up memory for other uses. This is backed up by a deactivation scheme that allows whole processes to be pushed out if
the system is desperately short of memory. However, the secondary storage dedicated to storing paged out data is still referred to as "swap space".
In practice, there's no difference or anything that should affect your development due to the subtleties of paging vs. swapping. Unless you have sufficient privilege to ensure part or all of your working set can't be paged, the process can be deactivated/swapped if the system decides it has to do so, the process simply isn't run for a while from its point of view.
rgds...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2010 08:25 PM
тАО07-12-2010 08:25 PM
Re: Is there any difference between virtual memory and swap memory
As the earlier thread briefs, there is no difference. Conceptually Virtual memory is an addressing scheme and Swap is being used by operating systems to provide virtual memory.
HTH
Muru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2010 10:45 PM
тАО07-12-2010 10:45 PM
Re: Is there any difference between virtual memory and swap memory
Swap slices are used as virtual memory storage areas when the system does not have enough physical memory to handle current processes.
The virtual memory system maps physical copies of files on disk to virtual addresses in memory. Physical memory pages which contain the data for these mappings can be backed by regular files in the file system, or by swap space. If the memory is backed by swap space it is referred to as anonymous memory because there is no identity assigned to the disk space backing the memory.
rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2010 10:48 PM
тАО07-12-2010 10:48 PM
Re: Is there any difference between virtual memory and swap memory
Check the below links:
http://en.wikipedia.org/wiki/Virtual_memory
http://www.softpanorama.org/Solaris/Processes_and_memory/swap_space_management.shtml
http://computer.howstuffworks.com/virtual-memory.htm
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-swapspace.html
http://docs.hp.com/en/B2355-90672/ch06s02.html
Rgds-Kranti