The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Partition 1 swap not mounting ? jack2 Filesystems, Disks and Memory 2 03-24-2009 10:42 AM
swap partition showing mounted in df -h pshelke SUN Solaris 1 02-14-2008 02:47 AM
swap partition? byblyk Linux 7 05-28-2004 02:44 PM
Linux Swap Partition primal UNIX for Dummies Questions & Answers 2 01-07-2002 12:37 PM
Swap Partition Space I[X]ION UNIX for Dummies Questions & Answers 1 08-24-2001 11:00 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-16-2009
Scrutinizer Scrutinizer is online now
Registered User
  
 

Join Date: Nov 2008
Posts: 735
Not entirely. Ample paging space may enable you to fit more processes into RAM - even if no actual pageouts occur - while maintaining system stability. This has to do with the nature of demand paging.
  #2 (permalink)  
Old 09-16-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,965
I'm not sure I follow you. How does swap space help demand-paging page in things not swap-related? I know Windows requires every bit of mapped memory to be backed by swap, but didn't think UNIX had this limitation...
  #3 (permalink)  
Old 09-16-2009
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,461
No idea about how Windows work but Unix, at least both modern Unixes & Linux do not require RAM to be backed by swap, hopefully.
  #4 (permalink)  
Old 09-16-2009
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,461
HP-UX has indeed this bizarre approach by default and is the only current Unix lacking virtual swap. This design limitation can be partially overcome by enabling pseudo-swap.

Overcomitting memory is a different and dubious beast.
  #5 (permalink)  
Old 09-18-2009
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,461
You are correct however Scrutinizer and I somewhat derailed the discussion toward HP-UX and Solaris behaviors.
Linux, which is definitely on topic in this thread, is different as it overcommits memory. That means it doesn't care if allocation can be fulfilled when initially asked for by the program, unlike the Unix versions we were talking about.
  #6 (permalink)  
Old 09-18-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,965
Trivial to disable. echo 2 > /proc/sys/vm/overcommit_memory ; echo 100 > /proc/sys/vm/overcommit_ratio

But it's useful, as just demonstrated; there's plenty of environments that don't have disk space to throw away like that. And somehow the world never ended from it despite all predictions No OS can run anything without sufficient memory, in the end it's just another strategy.
  #7 (permalink)  
Old 09-18-2009
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,461
You are right, overcommiting can be disabled with recent enough Linux kernels.

Note that if you do it, you won't be able to efficiently use all of the available RAM in your live-cd Linux configuration.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0