[Previous] [Contents] [Next]

ramtrap

Automatically add memory beyond what the BIOS reports (QNX)

Syntax:

Print additional memory found:

    ramtrap [options] [query]

Add the additional memory found to the pool of memory available to the system:

    ramtrap [options] add

Options:

-e end_addr
Scan end address. Use 0x for hex. End in K (*1024) or M (*1024*1024). The default is end address is 128M.
-m max
Set scan end address to scan start_addr + max. End in K (*1024) or M (*1024*1024). The default for max is 128M.
-q
Suppress status messages.
-s start_addr
Scan start address. Use 0x for hex. End in K (*1024) or M (*1024*1024). The default is to figure it out from the osinfo structure.
add
Add the additional memory found to the pool of memory available to the system.
query
Print the additional memory found, but do not add it to the system. (Default)

Description:

The ramtrap utility scans the machine it is run on for additional RAM memory which was not reported by the BIOS at the time the machine was booted. If add is not specified, the utility will write a list of the memory found to the standard output. If add is specified, ramtrap will add the memory found to the pool of memory available to the operating system for use.


Note: ramtrap may be run only by root.

Some computers may place memory for video cards directly after main memory. In this case ramtrap may confuse video memory with extended main memory which will crash the machine. You can use the -s option to step over the video memory area before scanning for additional extended memory.

Many Compaq computers require use of ramtrap to locate memory above 16 megabytes.

Files:

The standard input is unused.

If -q is not specified, a diagnostic message regarding the physical addresses being scanned will be written to the standard output. Information regarding the memory found is also written to the standard output.

If ramtrap is not run by root, or invalid command line parameters are supplied, a diagnostic message will be written to standard error and ramtrap will exit with a non-zero exit status.

Exit status:

>0
Could not run due to not being root or being supplied with invalid command-line parameters.
0
Successfully detected any available RAM (could be none)

See also:

disktrap, inputtrap, mousetrap, nettrap, pcmciatrap, Proc


[Previous] [Contents] [Next]