Open tysonliddell opened 10 months ago
It appears that the --asize
argument determines the range of random virtual addresses that are generated. Since not all of these generated addresses will lie in the "address space" of the underlying processes (as determined by the base/limit registers), perhaps the CLI argument -a
should be renamed to something like "generated virtual address range" to avoid confusion.
Run
relocation.py
with the following arguments:and it reports that the address space does not fit into physical memory.
Run it with these arguments:
and it does not report an error.
This is confusing. Is the address space size defined by the limit register or the value of
--asize
/-a
(address space size CLI argument)? In the examples above, since the address space size is explicitly set to 4 with the-a
argument, I would expect both to throw the same error. Both are too close to the end of physical memory to fit an address space size of 4.