Date: Thu, 15 Apr 1999 13:38:01 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: yjtseng cc: djgpp AT delorie DOT com Subject: RE: cwsdpr0.exe 4/13/99 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 13 Apr 1999, yjtseng wrote: > What will happen if virtual memory is disabled (as is in cwsdpr0.exe), > paging is enabled (as shown in CR0 I read), and pages need to be swapped > out? As explained here by others, the paging bit has nothing to do with swapping pages out. The paging bit simply indicates whether the page tables and page directrories are used by the CPU to map logical addresses to physical addresses. As for your question, pages need to be swapped out when there's not enough physical RAM to satisfy some memory request. When VM is disabled, the memory request simply fails (e.g., you get NULL from `malloc'), and no swapping ever happens.