| Author |
Message |
|
|
Post subject: Swap File?
Posted: Apr 24, 2008 - 05:28 AM
|
|
New Member
Joined: Feb 06, 2008
Posts: 2
|
|
|
|
|
 |
|
|
Post subject: RE: Swap File?
Posted: Apr 24, 2008 - 11:37 AM
|
|
QNX Master
Joined: Sep 01, 2002
Posts: 2917
|
|
| There is no swap file. Something is wrong in your test program. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Swap File?
Posted: Apr 24, 2008 - 03:24 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1099
|
|
Be careful when you read the documentation. QNX does use Virtual memory. It does page memory to disk. Memory references are virtual because the connection between your virtual references and the "Real" memory are made by page tables, segment tables, via the processor.
I recall that QNX may not allocate all the real memory to the stack initially, but instead allocate it as you get faults, but you should never be able to allocate more memory than the system has in real. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Swap File?
Posted: Apr 24, 2008 - 08:20 PM
|
|
Senior Member
Joined: Sep 17, 2004
Posts: 252
|
|
| Mitchell probably meant to say that ... "It does NOT page memory to disk". |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Swap File?
Posted: Apr 25, 2008 - 02:11 AM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1099
|
|
| Ken, that's right, sorry. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Swap File?
Posted: Apr 25, 2008 - 03:51 AM
|
|
QNX Master
Joined: Sep 01, 2002
Posts: 2917
|
|
page memory to disk is actually somewhat true because you can memory map a file. However memory doesn't get to be swapped with a page file  |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: Swap File?
Posted: Apr 25, 2008 - 06:47 AM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1099
|
|
|
mario wrote:
page memory to disk is actually somewhat true because you can memory map a file. However memory doesn't get to be swapped with a page file
When you memory map a file, doesn't it all get loaded into memory? Or does it get loaded on demand? I thought it was the former. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: Swap File?
Posted: Apr 29, 2008 - 01:29 AM
|
|
New Member
Joined: Feb 06, 2008
Posts: 2
|
|
Hi guys,
Thanks a lot for your replies, they were most helpful.
Turns out the test program was fine, the machine had 2GB of ram after all!
Stupid me.
Cheers,
Matt |
|
|
| |
|
|
|
 |
|
|